MyBB Community Forums

Full Version: Adding a link in postbit to Album?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi Smile

how would i add a link in the post bit next to where it says posts, rep, warning etc so i can have it link to there profile album?

ie: link says "My Album" & it would direct them to the users album?
Go To Admin CP > Templates & Style > Templates > YOURTHEME Templates > Postbit Templates > Postbit > Find Below Code:

{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
(^It's somewhere near the bottom)

Replace With Following Code:

{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}<a href="http://www.yoursite.com/yourlink/edit_this"><img src="The_Url_Of_The_Image_Of_The_Button" alt="Album" />

Hope I helped! Questions? Just Ask.
but that will just link to the link i specify?

i want it so when the member clicks the link in the postbit it will direct them to that posters album Smile
here we go ive added a pic to show better what i mean Smile

i want to put a link called something like "View My Album" in the redbox, so when a user clicks that link it will take them to that posters album Smile
ive managed to put a link in the box, but i can only get it to link to my own album, not sure what the code is so it points to that posters album :s
i figured it out.. this is the code to add to postbit_author_user in your template:

<a href="member.php?action=albums&uid={$post['uid']}">{$lang->gallery_text_myimages}</a>
I have a similar problem, I'd like to have textual link (text to be read from a custom field) that leads to a link a user puts in another custom field.

I know where to put the code, but unfortunately I don't know the correct code. For example the text read from {$post['fid4']} should be a link to the link user left in {$post['fid6']}. Is there a way to do this?