Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
Add Pm Button, Find Post By User Button, And User To Contacts Button, To Postbit Details »»
Add Pm Button, Find Post By User Button, And User To Contacts Button, To Postbit
Version: 1.00, by technom8t technom8t is offline
Developer Last Online: Mar 2012 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.7.x Rating:
Released: 03-27-2009 Last Update: Never Installs: 11
Template Edits
Re-useable Code  
No support by the author.

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 :


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

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-28-2009, 05:38 PM
Hasann's Avatar
Hasann Hasann is offline
 
Join Date: Aug 2005
Location: Germany
Posts: 897
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What's the different from this hack MyBB Style Postbit
Reply With Quote
  #3  
Old 03-28-2009, 05:42 PM
technom8t technom8t is offline
 
Join Date: Oct 2007
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 03-29-2009, 12:30 AM
PaintballHQ PaintballHQ is offline
 
Join Date: Nov 2003
Location: Bunker Hill, WV
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hasann View Post
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!
Reply With Quote
  #5  
Old 03-29-2009, 01:24 AM
zombietom's Avatar
zombietom zombietom is offline
 
Join Date: May 2008
Location: ky
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I used a combo of both of them ..thanks to both of you guys.
Reply With Quote
  #6  
Old 03-29-2009, 10:59 AM
technom8t technom8t is offline
 
Join Date: Oct 2007
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im Glad it went to some use, thanks guy's :-)
Reply With Quote
  #7  
Old 03-30-2009, 04:32 AM
ZexTasy ZexTasy is offline
 
Join Date: Jan 2008
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Shouldn't this be placed in the forum vBulletin 3.7 Template Modifications ?
Reply With Quote
  #8  
Old 04-26-2009, 04:43 AM
Forumi Shqiptar's Avatar
Forumi Shqiptar Forumi Shqiptar is offline
 
Join Date: Aug 2005
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tagged this modification and i need some other buttons like:

Adding someone into the ignore list
Forwarding guests to the profile of the user
Reply With Quote
  #9  
Old 08-31-2010, 01:17 PM
Amalion Amalion is offline
 
Join Date: Sep 2008
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you. Me and my users like it very much.

I used for "find" and for the "PM".
Reply With Quote
  #10  
Old 08-21-2013, 03:18 AM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:43 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04892 seconds
  • Memory Usage 2,297KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete