vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   New Posting Features - Add Pm Button, Find Post By User Button, And User To Contacts Button, To Postbit (https://vborg.vbsupport.ru/showthread.php?t=209711)

technom8t 03-27-2009 10:00 PM

Add Pm Button, Find Post By User Button, And User To Contacts Button, To Postbit
 
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 -->
ADD AFTER :

Code:

<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 :
Code:

<!-- 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

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

Quote:

Originally Posted by Hasann (Post 1779118)
What's the different from this hack MyBB Style Postbit

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 ?

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 for "find" and http://img3.imagebanana.com/img/jmf0yn96/envelope.png for the "PM".

Max Taxable 08-21-2013 03:18 AM

Reserved.


All times are GMT. The time now is 01:14 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01034 seconds
  • Memory Usage 1,754KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete