PDA

View Full Version : New Posting Features - Add Pm Button, Find Post By User Button, And User To Contacts Button, To Postbit


technom8t
03-27-2009, 10:00 PM
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 :
<!-- controls -->

ADD AFTER :

<span style="float:left">
<a href="private.php?$session[sessionurl]do=newpm&amp;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&amp;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&amp;userlist=friend&amp;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>
***Make sure you change the directories IN GREEN above to match your site images folder ***

when you are done the control section of code within your post bit legacy should look something like this :
<!-- controls -->


<span style="float:left">
<a href="private.php?$session[sessionurl]do=newpm&amp;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&amp;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&amp;userlist=friend&amp;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&amp;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&amp;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&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
</if>
</if>
<!-- / controls -->
You may also create your own imags to match your forum style ofcourse

SCREN :
http://i39.tinypic.com/t9f4up.jpg

P.S I AM NOT A GREAT CODER AND I AM SURE SOMEONE COULD CLEAN UP THE CODE A LITTLE, BUT IT DOES WORK :-)

Hasann
03-28-2009, 05:38 PM
What's the different from this hack MyBB Style Postbit (https://vborg.vbsupport.ru/showthread.php?t=187090)

technom8t
03-28-2009, 05:42 PM
apparently not much LOL, sorry didnt know this was availible, i spent some time trying to get this to work aswell, oh well shit happens LOL its there if anyone wants it

PaintballHQ
03-29-2009, 12:30 AM
What's the different from this hack MyBB Style Postbit (https://vborg.vbsupport.ru/showthread.php?t=187090)

That seems to be for the postbit where this one that technom8t just posted is for postbit legacy.



I used this in 3.8.1 and it works just fine. Still tweaking my postbit layout before I officially launch my site.

Thanks!

zombietom
03-29-2009, 01:24 AM
I used a combo of both of them ..thanks to both of you guys.

technom8t
03-29-2009, 10:59 AM
Im Glad it went to some use, thanks guy's :-)

ZexTasy
03-30-2009, 04:32 AM
Shouldn't this be placed in the forum vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229) ?

Forumi Shqiptar
04-26-2009, 04:43 AM
tagged this modification and i need some other buttons like:

Adding someone into the ignore list
Forwarding guests to the profile of the user

Amalion
08-31-2010, 01:17 PM
Thank you. Me and my users like it very much.

I used http://img3.imagebanana.com/img/9yfq7cqy/lupe.png (http://www.imagebanana.com/) for "find" and http://img3.imagebanana.com/img/jmf0yn96/envelope.png (http://www.imagebanana.com/) for the "PM".

Max Taxable
08-21-2013, 03:18 AM
Reserved.