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
  #12  
Old 06-02-2007, 11:16 PM
R1lover's Avatar
R1lover R1lover is offline
 
Join Date: Apr 2006
Location: Northern Ca
Posts: 428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is built into VB why was a hack needed?
Reply With Quote
  #13  
Old 06-02-2007, 11:32 PM
713JunctionP 713JunctionP is offline
 
Join Date: Mar 2007
Location: Houston, TX
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by R1lover View Post
This is built into VB why was a hack needed?

try it.
Reply With Quote
  #14  
Old 06-02-2007, 11:34 PM
R1lover's Avatar
R1lover R1lover is offline
 
Join Date: Apr 2006
Location: Northern Ca
Posts: 428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 713JunctionP View Post
try it.

I have been using the built in version of this for a few years.... I'm still confused why you needed a hack for this lol
Reply With Quote
  #15  
Old 06-02-2007, 11:39 PM
R1lover's Avatar
R1lover R1lover is offline
 
Join Date: Apr 2006
Location: Northern Ca
Posts: 428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is the placement with the built in "User Ranks" version. Of course you can place the image in any location as well.

It's all automated as well, when a user signs up for a site supporter package it changes there user group and adds the image for that rank.

So really, I'm not trying to bust your balls here, I'm interested to know why you don't' just use the User Ranks?
Reply With Quote
  #16  
Old 06-03-2007, 05:14 AM
713JunctionP 713JunctionP is offline
 
Join Date: Mar 2007
Location: Houston, TX
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by R1lover View Post
Here is the placement with the built in "User Ranks" version. Of course you can place the image in any location as well.

It's all automated as well, when a user signs up for a site supporter package it changes there user group and adds the image for that rank.

So really, I'm not trying to bust your balls here, I'm interested to know why you don't' just use the User Ranks?
if you have more than one rank set up it's not necessarily an easy task to get them all placed in various spots within your postbit or postbit_legacy.

also, you need to pay very close attention to the thread and realize why this is all needed. there are numerous code conflicts that occur between user ranks and primary/usergroups. especially when users want to be part of a 'Site Supporter' group but they don't want to change their primary group (ie moderators who are also site supporters but may also have another rank set up at the same time).

please pay more attention before assuming you know what certain code is doing. there are reasons for this thread and why people want it.
Reply With Quote
  #17  
Old 06-03-2007, 10:38 AM
TheProphet TheProphet is offline
 
Join Date: Apr 2004
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice work m8.. *installed*
Reply With Quote
  #18  
Old 06-03-2007, 01:49 PM
R1lover's Avatar
R1lover R1lover is offline
 
Join Date: Apr 2006
Location: Northern Ca
Posts: 428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 713JunctionP View Post
if you have more than one rank set up it's not necessarily an easy task to get them all placed in various spots within your postbit or postbit_legacy.

also, you need to pay very close attention to the thread and realize why this is all needed. there are numerous code conflicts that occur between user ranks and primary/usergroups. especially when users want to be part of a 'Site Supporter' group but they don't want to change their primary group (ie moderators who are also site supporters but may also have another rank set up at the same time).

please pay more attention before assuming you know what certain code is doing. there are reasons for this thread and why people want it.
The issues you are talking about are not issues if you know how to set up your user groups.

Trust me, everything you are doing with this is built into VB.... no need to all this work, but hey if you have the time then that's your issue not mine.

p.s. Your issue above is controlled by setting their primary display user group setting.

As for knowing this code and what it does, if I didn't I would not have posted. Your modification does nothing that is not there already it's as simple as that. I didn't want to bust your balls here and tell you that when I posted so I thought I would be nice and ask first.
Reply With Quote
  #19  
Old 06-03-2007, 04:31 PM
713JunctionP 713JunctionP is offline
 
Join Date: Mar 2007
Location: Houston, TX
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^ TRUST ME, you are still not comprehending what I'm saying and I do not have time to argue with you about it.

if you don't want to use the hack then please stay out of the thread.
Reply With Quote
  #20  
Old 06-03-2007, 09:57 PM
morrow's Avatar
morrow morrow is offline
 
Join Date: Mar 2002
Location: NJ
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and working, no problems.

I do have one question though. Is there a way to limit this to only the first post in a thread? It's annoying to see this icon numerous times through-out a thread.
Reply With Quote
  #21  
Old 06-03-2007, 10:45 PM
pds pds is offline
 
Join Date: Apr 2003
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by R1lover View Post
I have been using the built in version of this for a few years.... I'm still confused why you needed a hack for this lol
Some people prefer this in a hack because they want the "supporter" button to show up in a different place from where the "ranks" function does.

I understand this can be done with user ranks, and frankly it is easier to control doing so.

In my case user ranks currently gives them different icons based upon how many posts they have, and this appears right under the username. I want the site supporter button to appear lower in the postbit_legacy. (In fact the sample image of the postbit for this hack was taken from my site...even though I am not yet using the hack...must have been some creative photoshoping)
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 11:21 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.08049 seconds
  • Memory Usage 2,316KB
  • 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
  • (5)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