PDA

View Full Version : Postbit information question?


oz_girl
01-25-2009, 05:10 AM
You no the options that show as a drop down menu when you click on a persons name, ie; send private message to, view public profile, view all posts by, add to favorites ...
How can you have some of those links added to the post-bit area?

glennybee
01-25-2009, 08:06 AM
Simply put the links in the postbit template or postbit_legacy template where you want them to appear.

View profile
<if condition="$show['profile']"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></if>

Send PM
<if condition="$show['pmlink']"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a>

Send Email
<if condition="$show['emaillink']"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a>

One change I have made to my forum is...where it normally shows the members post count, I have made that clickable to take you to the persons posts.

Search for:

$vbphrase[posts]: $post[posts]

Replace with:

$vbphrase[posts]: <a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow">$post[posts]</a>

Hope this helps! :)