The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Site Supporter Button in Postbit - Primary/Additional Usergroups supported Details »» | |||||||||||||||||||||||||||
Site Supporter Button in Postbit - Primary/Additional Usergroups supported
Developer Last Online: Feb 2009
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 --> PLEASE REMEMBER TO CLICK INSTALLED IF YOU USE THIS MOD! This is my first mod so please be nice. Supporters / CoAuthors Show Your Support
|
Comments |
#32
|
|||
|
|||
Any1?
|
#33
|
|||
|
|||
Why is a hack needed for this? A simple user rank will do the same and is built right into vB!?!
|
#34
|
|||
|
|||
Quote:
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. |
#35
|
||||
|
||||
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. |
#36
|
|||
|
|||
Sorry Zachery, no offense was intended, just a simple phraseology error.
|
#37
|
|||
|
|||
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.
|
#38
|
|||
|
|||
Quote:
Anyone know how to do this? SVT |
#39
|
|||
|
|||
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 |
#40
|
|||
|
|||
HA got it, thanks anyway....
|
#41
|
|||
|
|||
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?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|