Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Site Supporter Button in Postbit - Primary/Additional Usergroups supported Details »»
Site Supporter Button in Postbit - Primary/Additional Usergroups supported
Version: 1.00, by 713JunctionP 713JunctionP is offline
Developer Last Online: Feb 2009 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.7 Rating:
Released: 05-31-2007 Last Update: Never Installs: 85
Template Edits
 
No support by the author.

This mod will probably work in other versions but was only coded and tested on vBulletin 3.6.7

If you've got members who have donated to your forums and you would like them to be recognized, this simple mod will add a nice 'Site Supporter' button underneath the member's messenger icons. However, you can place this piece of code anywhere you'd like. The option is up to you. This is just the way I thought looked best. Enjoy.

Installation:

1) Choose which button you want to use (supporter.gif or supporter2.gif) and upload it to your 'images/misc' folder in your forums directory.

2) Create a NEW usergroup. Go to ADMINCP -> Usergroups -> Add New Usergroup and name it whatever you want, just remember, this new usergroup needs to represent your 'Site Supporter' group, so remember the usergroup ID (uID) for this after you set all the permissions, etc.

3) Open your postbit OR postbit_legacy, whichever one you use, and...

FIND THIS CODE:
Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
			</div>

AFTER, ADD THIS:
Code:
<!-- Site Supporter Code -->
<br /><if condition="$post[usergroupid] == X"><img src="images/misc/supporter.gif"></if>
<!-- / Site Supporter Code -->
The 'X' above needs to be changed to the usergroup ID number (uID) corresponding to your new 'Site Supporter' usergroup that you created in STEP 2.

PLEASE REMEMBER TO CLICK INSTALLED IF YOU USE THIS MOD!

This is my first mod so please be nice.

Supporters / CoAuthors

Show Your Support

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

Comments
  #52  
Old 03-13-2008, 04:41 AM
Sothside40 Sothside40 is offline
 
Join Date: Feb 2008
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is exactly how i have it ....

Quote:
<div><center>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</center></div>
<!-- Rank -->
<br /><if condition="$post[usergroupid] == 17"><center><img src="images/misc/vip3-1.gif"></center></if>
<!-- / Rank --><!-- Rank -->
<br /><if condition="$post[usergroupid] == 11"><center><img src="images/misc/vip3-1.gif"></center></if>
<!-- / Rank --><!-- Rank -->
<br /><if condition="$post[usergroupid] == 6"><center><img src="images/misc/vip3-1.gif"></center></if>
<!-- / Rank --><!-- Rank -->
<br /><if condition="$post[usergroupid] == 7"><center><img src="images/misc/vip3-1.gif"></center></if>
<!-- / Rank --><!-- Rank -->
<br /><if condition="$post[usergroupid] == 5"><center><img src="images/misc/vip3-1.gif"></center></if>
<!-- / Rank --><!-- Rank -->
<br /><if condition="$post[usergroupid] == 18"><center><img src="images/misc/vip3-1.gif"></center></if>
<!-- / Rank --><!-- Rank -->
<br /><if condition="$post[usergroupid] == 15"><center><img src="images/misc/vip3-1.gif"></center></if>
<!-- / Rank --></div>
Reply With Quote
  #53  
Old 03-13-2008, 05:29 AM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sothside40 View Post
this is exactly how i have it ....
can i see a live demo or somthing
Reply With Quote
  #54  
Old 03-13-2008, 03:29 PM
Sothside40 Sothside40 is offline
 
Join Date: Feb 2008
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

......Original Image

Usergroup ID: #5


Usergroup ID: #6


Usergroup ID: #7


Usergroup ID: #11


Usergroup ID: #15


Usergroup ID: #18
Reply With Quote
  #55  
Old 03-13-2008, 04:27 PM
griffinzx10 griffinzx10 is offline
 
Join Date: Sep 2005
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so how would i make that work for me? Just use taht one line of code and edit it for my user groups? And where does it go?
Reply With Quote
  #56  
Old 03-17-2008, 04:52 PM
griffinzx10 griffinzx10 is offline
 
Join Date: Sep 2005
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

????????
Reply With Quote
  #57  
Old 03-20-2008, 02:18 PM
griffinzx10 griffinzx10 is offline
 
Join Date: Sep 2005
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump... HELP< and bump
Reply With Quote
  #58  
Old 09-23-2008, 02:21 PM
Joey Link Joey Link is offline
 
Join Date: Aug 2008
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this mod no longer supported?

I have different levels of supporting members with different primary groups. Can this display different images depending on the users primary group?
Reply With Quote
  #59  
Old 09-28-2008, 12:48 PM
SVTCobraLTD SVTCobraLTD is offline
 
Join Date: Jul 2007
Location: PA
Posts: 841
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Joey Link View Post
Is this mod no longer supported?

I have different levels of supporting members with different primary groups. Can this display different images depending on the users primary group?
Yes and its pretty simple
Reply With Quote
  #60  
Old 02-22-2011, 04:31 PM
Big-K Big-K is offline
 
Join Date: Feb 2005
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone know what the right conditional for this would be in VB4?

Code:
<if condition="$post[usergroupid] == X"><img src="images/misc/supporter.gif"></if>
<!-- / Site Supporter Code -->
I tried the following but it inserts the image for everyone
Code:
<vb:if condition="is_member_of($bbuserinfo,X)"><img src="images/misc/supporter.gif"></vb:if>
Reply With Quote
  #61  
Old 03-23-2011, 10:29 PM
RedPoint RedPoint is offline
 
Join Date: Oct 2007
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Big-K View Post
Does anyone know what the right conditional for this would be in VB4?

Code:
<if condition="$post[usergroupid] == X"><img src="images/misc/supporter.gif"></if>
<!-- / Site Supporter Code -->
I tried the following but it inserts the image for everyone
Code:
<vb:if condition="is_member_of($bbuserinfo,X)"><img src="images/misc/supporter.gif"></vb:if>
Hi, i use this and is run

PHP Code:
<vb:if condition="$post[usergroupid] == 2 and is_member_of($post, 34)"><img src="images/ranks/ranksupporter.gif"></vb:if>
<
vb:if condition="$post[usergroupid] == 19 and is_member_of($post, 34)"><img src="images/ranks/ranksupporter.gif"></vb:if>
<
vb:if condition="$post[usergroupid] == 29 and is_member_of($post, 34)"><img src="images/ranks/ranksupporter.gif"></vb:if>
<
vb:if condition="$post[usergroupid] == 30 and is_member_of($post, 34)"><img src="images/ranks/ranksupporter.gif"></vb:if> 
I save my picture in ranks/picturename.gif - you must change this with your way to picture.
Reply With Quote
Reply


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 10:23 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.04388 seconds
  • Memory Usage 2,328KB
  • Queries Executed 28 (?)
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
  • (6)bbcode_code
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete