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
  #42  
Old 03-02-2008, 03:09 AM
griffinzx10 griffinzx10 is offline
 
Join Date: Sep 2005
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by griffinzx10 View Post
actually I do have a question.. I have this working when my Site Contributors group is the Primary group. Now can I leave that set up the way it is, but also incorporate the fix for haveing this work as a secondary group? So I can have it work both ways?

Bump, can anyone answer this?
Reply With Quote
  #43  
Old 03-07-2008, 01:59 PM
griffinzx10 griffinzx10 is offline
 
Join Date: Sep 2005
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump bump I could really use some help with this.. Anyone?
Reply With Quote
  #44  
Old 03-12-2008, 12:40 AM
Sothside40 Sothside40 is offline
 
Join Date: Feb 2008
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

damn, i guess I dont have a chance in getting this question answered, nor the guy before me...smh
Reply With Quote
  #45  
Old 03-12-2008, 06:14 PM
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is their away to get this to show up in memberinfo as well? Thanks.
Reply With Quote
  #46  
Old 03-12-2008, 06:43 PM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TCE Killa View Post
Is their away to get this to show up in memberinfo as well? Thanks.
ya you put the code in your member info template where you want it
Reply With Quote
  #47  
Old 03-12-2008, 07:14 PM
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MiahBeSmokin420 View Post
ya you put the code in your member info template where you want it

Nah I know that, but their isn't away to make it show up under location or anything. Where ever you put it, it just shows up under the templates etc...
Reply With Quote
  #48  
Old 03-12-2008, 10:01 PM
griffinzx10 griffinzx10 is offline
 
Join Date: Sep 2005
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by griffinzx10 View Post
actually I do have a question.. I have this working when my Site Contributors group is the Primary group. Now can I leave that set up the way it is, but also incorporate the fix for haveing this work as a secondary group? So I can have it work both ways?

seriously can anyone answer this?????

Please I need it answered????

Can this be done for 2 groups.
Set up as the primary group, and it works, but I want to set this up so I can have my site supporter group as a secondary group, and still have the image show.. I need this for my mods and admins, who's primary groups are mods/admins and their effective rights are based on that..

PLEASE???
Reply With Quote
  #49  
Old 03-13-2008, 12:11 AM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im not going to give support on this cause its not my modification

but here is my code that i use in the post bit and member info

so if you can figure it out then have a ball

if not then ooh well then let the creator help you

HTML Code:
<!-- Site Supporter Code -->
<if condition="$post[usergroupid] == 5 and is_member_of($post, 17)"><img src="images/misc/supporter.gif"><BR></if>
<if condition="$post[usergroupid] == 6 and is_member_of($post, 17)"><img src="images/misc/supporter.gif"><BR></if>
<if condition="$post[usergroupid] == 7 and is_member_of($post, 17)"><img src="images/misc/supporter.gif"><BR></if>
<if condition="$post[usergroupid] == 9 and is_member_of($post, 17)"><img src="images/misc/supporter.gif"><BR></if>
<if condition="$post[usergroupid] == 16 and is_member_of($post, 17)"><img src="images/misc/supporter.gif"><BR></if>
<!-- / Site Supporter Code -->
thats just how i did it for the secondary user groups
Reply With Quote
  #50  
Old 03-13-2008, 01:12 AM
Sothside40 Sothside40 is offline
 
Join Date: Feb 2008
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this correct for more than one usergroup, bcuz when i use this...... the usergroup that is on the bottom has their image all the way on the bottom of their profile and it stretches the page...

Quote:
<!-- 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
  #51  
Old 03-13-2008, 04:32 AM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sothside40 View Post
is this correct for more than one usergroup, bcuz when i use this...... the usergroup that is on the bottom has their image all the way on the bottom of their profile and it stretches the page...
look for the setting in the <div tag before </div>

thats probally whats messing that up
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 09:48 AM.


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.05043 seconds
  • Memory Usage 2,317KB
  • 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
  • (2)bbcode_code
  • (1)bbcode_html
  • (6)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
  • (3)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_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