Add Pm Button, Find Post By User Button, And User To Contacts Button, To Postbit
This modification is in the archives.
This code does what it says on the tin - it will add a PM Button, Find Post By User Button and Add user to Contacts Button, to your postbit( to the left of your reply/ quote buttons) All you have to do is upload 3 attached images to your forum images folder and insert some code, easy as that . OPEN POSTBIT LEGACY TEMPLATE AND FIND : Code:
<!-- controls --> Code:
<span style="float:left"> <a href="private.php?$session[sessionurl]do=newpm&u=$post[userid]" rel="nofollow"><img class="inlineimg" src="http://www.yoursite.co.uk/forums/images/pm.gif" alt="Send a private message to $post[username]" border="0" /></a> <a href="search.php?$session[sessionurl]do=finduser&u=$post[userid]" rel="nofollow"<img class="inlineimg" src="http://www.yoursite.co.uk/forums/images/find.gif" alt="Find more posts by $post[username]" border="0" /></a> <a href="profile.php?$session[sessionurl]do=addlist&userlist=friend&u=$post[userid]"><img class="inlineimg" src="http://www.yoursite.co.uk/forums/images/add_contact.gif" alt="Add $post[username] to Your Contacts" border="0" /></a> </span> when you are done the control section of code within your post bit legacy should look something like this : Code:
<!-- controls --> <span style="float:left"> <a href="private.php?$session[sessionurl]do=newpm&u=$post[userid]" rel="nofollow"><img class="inlineimg" src="http://www.yoursite.co.uk/forums/images/pm.gif" alt="Send a private message to $post[username]" border="0" /></a> <a href="search.php?$session[sessionurl]do=finduser&u=$post[userid]" rel="nofollow"<img class="inlineimg" src="http://www.yoursite.co.uk/forums/images/find.gif" alt="Find more posts by $post[username]" border="0" /></a> <a href="profile.php?$session[sessionurl]do=addlist&userlist=friend&u=$post[userid]"><img class="inlineimg" src="http://www.yoursite.co.uk/forums/images/add_contact.gif" alt="Add $post[username] to Your Contacts" border="0" /></a> </span> <if condition="$post['editlink']"><td> <img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" /> <a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a> </td></if> <if condition="$post['forwardlink']"><td> <a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a> </td></if> <if condition="$post['replylink']"><td> <a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a> </td></if> <if condition="$show['multiquote_post']"><td> <a href="$post[replylink]" rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]" border="0" id="mq_$post[postid]" /></a> </td></if> <if condition="$show['quickreply'] AND !$show['threadedmode']"><td> <a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a> </td></if> <td>$template_hook[postbit_controls]</td> <td><img src="$stylevar[titleimage]/bb_right.gif" /></td> </tr></table> <if condition="$show['moderated']"> <img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" /> </if> <if condition="$show['spam']"> <img src="$stylevar[imgdir_misc]/spam_detected.png" alt="$vbphrase[spam_post]" border="0" /> </if> <if condition="$show['deletedpost']"> <if condition="$show['managepost']"> <a href="postings.php?$session[sessionurl]do=managepost&p=$post[postid]"><img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[manage]" border="0" /></a> <else /> <img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" /> </if> </if> <if condition="$show['redcard']"> <a href="infraction.php?$session[sessionurl]do=view&p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a> <else /> <if condition="$show['yellowcard']"> <a href="infraction.php?$session[sessionurl]do=view&p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a> </if> </if> <!-- / controls --> SCREN : P.S I AM NOT A GREAT CODER AND I AM SURE SOMEONE COULD CLEAN UP THE CODE A LITTLE, BUT IT DOES WORK :-) Download No files for download. Supporters / CoAuthors
Screenshots
|
Similar Mods
In Postbit Legacy "User Home" Button [With Small İcon] | vBulletin 3.6 Template Modifications |
User Home Button On Postbit | vBulletin 3.6 Template Modifications |