album.pl Support > Tips and Tricks

Adding Profile, Send PM, and other buttons

(1/1)

Mike Bobbitt:
It's possible in album.pl to add a link to the profile of the user who uploaded a specific pic, or who owns an specific album (in per_member_upload=1). Just add the following lines to your templates. (Where you add them will determine when and where they show up - experimentation is good!)

YaBB:


--- Code: ---<a href="http://perl.bobbitt.ca/yabb/YaBB.pl?action=viewprofile;username=CONFIG=owner####">See ####CONFIG=owner####'s Profile</a>
--- End code ---

YaBB  SE:


--- Code: ---<a href="http://perl.bobbitt.ca/yabbse/index.php?board=4;action=viewprofile;user=####CONFIG=owner####">See ####CONFIG=owner####'s Profile</a>
--- End code ---

UBB:


--- Code: ---<a href="http://cdnarmy.ca/cgi-bin/ultimatebb.cgi?ubb=get_profile;u=####CONFIG=owner####">See this user's Profile</a>
--- End code ---

This, of course, also opens the door to other things, such as adding a link to send the user a PM... Here's a UBB example for that:


--- Code: ---<a href="http://cdnarmy.ca/cgi-bin/ultimatebb.cgi?ubb=private_message;u==####CONFIG=owner####">Send this user a PM</a>
--- End code ---

There's more that can be done, just tinker! :)

Cheers

matt_rogers:
COOL!!!

Slammer:
WOW! I like this idea, I added the two you mentioned into my album.pl plus a "See this member's recent board posts" link


--- Code: ---<a href="http://www.worldwideretro.net/cgi-bin/yabb/YaBB.cgi?board=;action=usersrecentposts;username=####CONFIG=owner####"><img src="http://www.worldwideretro.net/yabbimages/guest.gif" border=0><font size="-1"> See ####CONFIG=owner####'s R.A.N.T.s!</font></a>

--- End code ---

Mike Bobbitt:
Nice! Love to see new examples popping up! :)

PSS-Mag:

--- Quote from: Mike Bobbitt on January 18, 2003, 09:07:49 ---It's possible in album.pl to add a link to the profile of the user who uploaded a specific pic, or who owns an specific album (in per_member_upload=1). Just add the following lines to your templates. (Where you add them will determine when and where they show up - experimentation is good!)

YaBB:


--- Code: ---<a href="http://perl.bobbitt.ca/yabb/YaBB.pl?action=viewprofile;username=CONFIG=owner####">See ####CONFIG=owner####'s Profile</a>
--- End code ---

--- End quote ---

I used this one with Yabb2.2
Click on it and it says


--- Quote ---Error: Sorry, this service is for registered members only!
--- End quote ---

I'm in no way a programmer, or web designer. I just attempt to follow the directions..... I don't know a thing... so any ideas?

Navigation

[0] Message Index

Go to full version