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
  #32  
Old 09-22-2007, 03:40 PM
BulletNow BulletNow is offline
 
Join Date: Apr 2007
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any1?
Reply With Quote
  #33  
Old 10-03-2007, 07:56 PM
WoodiE WoodiE is offline
 
Join Date: May 2002
Posts: 317
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why is a hack needed for this? A simple user rank will do the same and is built right into vB!?!
Reply With Quote
  #34  
Old 10-06-2007, 07:50 AM
TigerWare TigerWare is offline
 
Join Date: Feb 2007
Location: England, UK
Posts: 282
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WoodiE View Post
Why is a hack needed for this? A simple user rank will do the same and is built right into vB!?!
The built-in user rank system is fine, but what if you want to add a token image to postbit/postbit_legacy to specifically identify a certain type of user/usergroup?

Example. I use this hack to add postbit_legacy images to specific secondary usergroups (article writers and contributors in my forum). This identifies those group members "in addition to" any ranking system I have employed. It is a simple and very effective hack IMO. In addition, I use this hack to identify user #1 with a special 'Site Owner' image too.
Reply With Quote
  #35  
Old 10-06-2007, 04:19 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Basicly all this is is a conditional, and one that could be considerably better.

<if condition="is_member_of($post, X)">

Where X is your usergroupid, it will check both their primary and secondary groups agasint this. Some people need to learn to use conditionals.

This is a template modification, not a hack.
Reply With Quote
  #36  
Old 10-06-2007, 08:35 PM
TigerWare TigerWare is offline
 
Join Date: Feb 2007
Location: England, UK
Posts: 282
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TigerWare View Post
I use this hack to add postbit_legacy images
Quote:
Originally Posted by Zachery View Post
This is a template modification, not a hack.
Sorry Zachery, no offense was intended, just a simple phraseology error.
Reply With Quote
  #37  
Old 11-09-2007, 05:07 PM
SVTCobraLTD SVTCobraLTD is offline
 
Join Date: Jul 2007
Location: PA
Posts: 841
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed but one thing... anyone know how to remove the User Title for a certain user group? I added this image under the user name but want to be able to remove the user title and how this in its place.
Reply With Quote
  #38  
Old 11-19-2007, 05:05 PM
SVTCobraLTD SVTCobraLTD is offline
 
Join Date: Jul 2007
Location: PA
Posts: 841
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SVTCobraLTD View Post
Installed but one thing... anyone know how to remove the User Title for a certain user group? I added this image under the user name but want to be able to remove the user title and have this in its place.

Anyone know how to do this?

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

Hello, I posted this in my POSTBIT section of my site, right after the suggested point. 21 Represents my group called Contributor and the image is loaded into the correct location. I have my test member's primary group as Contrbutor, and their secondary group as registered. But I am not seeing the image...

<!-- Site Supporter Code -->
<br /><if condition="$post[usergroupid] == 21"><img src="images/misc/supporter.gif"></if>
<!-- / Site Supporter Code -->

And suggestions would be greatly appreciated.

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

HA got it, thanks anyway....
Reply With Quote
  #41  
Old 02-27-2008, 04:02 PM
griffinzx10 griffinzx10 is offline
 
Join Date: Sep 2005
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
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 04:36 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.05576 seconds
  • Memory Usage 2,312KB
  • 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
  • (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
  • (4)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