Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Site Supporter Button in Postbit - Primary/Additional Usergroups supported Details »
Site Supporter Button in Postbit - Primary/Additional Usergroups supported
Mod Version: 1.00, by 713JunctionP (Member) 713JunctionP is offline
Developer Last Online: Feb 2009 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.7 Rating: (8 votes - 4.63 average) Installs: 85
Released: 01 Jun 2007 Last Update: Never Downloads: 17
Not Supported Template Edits  

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


AFTER, ADD THIS:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View 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.

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	contribute_example.png
Views:	1258
Size:	17.4 KB
ID:	65021  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Mini Mods Site Supporter button in postbit! Bratz-Designs Modification Graveyard 15 01 Jun 2007 09:41

Comments
  #2  
Old 01 Jun 2007, 05:04
713JunctionP 713JunctionP is offline
 
Join Date: Mar 2007
An issue has arisen with the 'Site Supporter' graphic not showing up for members belonging to two usergroups (a primary usergroup and an additional usergroup).

Using the code originally mentioned in the post above will only recognize members who's PRIMARY USERGROUP = 'Site Supporter'. Here is a quick fix that will help recognize members who belong to two usergroups (with 'Site Supporter' usergroup being the ADDITIONAL usergroup):

EXAMPLE:

- Member's PRIMARY USERGROUP = Moderators / ADDITIONAL USERGROUP = Site Supporter

- In order for the 'Site Supporter' graphic to appear without altering any changes in a member's PRIMARY usergroup you must use the following code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

the words 'PRIMARYID' and 'ADDITIONALID' need to be substituted out for their corresponding uID #'s.

Make sure the 'Site Supporter' usergroup is always set as a member's ADDITIONAL usergroup, never primary. It's just easier that way.

This should help fix the problems associated with the graphic not showing up if 'Site Supporter' is a member's ADDITIONAL usergroup.

Last edited by 713JunctionP; 01 Jun 2007 at 17:08.
Reply With Quote
  #3  
Old 01 Jun 2007, 06:43
713JunctionP 713JunctionP is offline
 
Join Date: Mar 2007
Originally Posted by MARKETPROFITS View Post
Thanks mate!
*Installed*
thank you for being my first install!

if you need any help, give me a buzz.
Reply With Quote
  #4  
Old 01 Jun 2007, 10:48
fpattberg fpattberg is offline
 
Join Date: Jan 2007
Real name: Fabian
Hi.

I can seem to get to show the picture.

I have uploaded the pics to the folder, created the additional usergroup (registered usergroup 2 and sitesupporter 9) and insert this code in post legacy:

<!-- Site Supporter Code -->
<if condition="$post[usergroupid] == PRIMARYid2 and is_member_of($post, ADDITIONALid9)"><img src="images/misc/supporter.gif"></if>
<!-- / Site Supporter Code -->

I am no coder and not really good at HTML. Is there a problem in my code?

Thanks.
Fabian
__________________
My Blog:
www.fabianpattberg.com
Reply With Quote
  #5  
Old 01 Jun 2007, 16:56
713JunctionP 713JunctionP is offline
 
Join Date: Mar 2007
Fabian,

Yes, there is a problem in your code. I'm sorry you misunderstood me. Your code needs to look like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

you were supposed to take the words 'PRIMARYid' and 'ADDITIONALid' and substitute them out with the actual ID #'s.

I hope this clears up any confusion for you.

Last edited by 713JunctionP; 01 Jun 2007 at 19:44.
Reply With Quote
  #6  
Old 02 Jun 2007, 11:23
fpattberg fpattberg is offline
 
Join Date: Jan 2007
Real name: Fabian
Thanks 713junctionP.

I have got in the postbit now and works like a charm!

Thanks for the patience and tutorial!

INSTALLED


Fabian
__________________
My Blog:
www.fabianpattberg.com
Reply With Quote
  #7  
Old 02 Jun 2007, 17:42
pds's Avatar
pds pds is offline
 
Join Date: Apr 2003
Can I have multiple usergroups listed for the "PRIMARYid2" variable? if so, would they simply be separated by commas?

My "Site Supporter" usergroup is always the secondary group. I want the site supporter button to show up no matter what their primary group is. Now that i type this out i wonder if i am misunderstanding something and this is a terribly stupid question?!?
Reply With Quote
  #8  
Old 02 Jun 2007, 17:56
713JunctionP 713JunctionP is offline
 
Join Date: Mar 2007
Originally Posted by pds View Post
Can I have multiple usergroups listed for the "PRIMARYid2" variable? if so, would they simply be separated by commas?

My "Site Supporter" usergroup is always the secondary group. I want the site supporter button to show up no matter what their primary group is. Now that i type this out i wonder if i am misunderstanding something and this is a terribly stupid question?!?

I'm sorry but I'm not quite understanding what you're telling me. maybe you're saying you have a few different primary groups and you want the site supporter button to show up for each of those members who belong to different primary groups? in that case, you will need to create an <if></if> statement for each condition. Here's an example of mine on my forums:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

anyway, you should be able to seperate ADDITIONAL usergroups with commas like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by 713JunctionP; 02 Jun 2007 at 18:02.
Reply With Quote
  #9  
Old 02 Jun 2007, 18:48
pds's Avatar
pds pds is offline
 
Join Date: Apr 2003
Sorry for not being clear.

My "Site Supporter" user group is always an additional usergroup. I want the graphic to show up when there additional usergroup = "Site Supporter" regardless of their primary usergroup.

I would also prefer not to have to list every possible primary usergroup in the code. The way the code is now, if I ever added a primary usergroup, I would have to go in and add the ID to the code.
Reply With Quote
  #10  
Old 02 Jun 2007, 23:00
713JunctionP 713JunctionP is offline
 
Join Date: Mar 2007
I think I understand what you want. Try this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

XX = additional usergroup ID#

as far as having to list every primary usergroup, that's the only other way I can think of to do it. maybe another coder will come in here and help.

Last edited by 713JunctionP; 02 Jun 2007 at 23:03.
Reply With Quote
  #11  
Old 03 Jun 2007, 00:16
R1lover's Avatar
R1lover R1lover is offline
 
Join Date: Apr 2006
Location: Northern Ca
This is built into VB why was a hack needed?
Reply With Quote
  #12  
Old 03 Jun 2007, 00:32
713JunctionP 713JunctionP is offline
 
Join Date: Mar 2007
Originally Posted by R1lover View Post
This is built into VB why was a hack needed?

try it.
Reply With Quote
  #13  
Old 03 Jun 2007, 00:34
R1lover's Avatar
R1lover R1lover is offline
 
Join Date: Apr 2006
Location: Northern Ca
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
  #14  
Old 03 Jun 2007, 00:39
R1lover's Avatar
R1lover R1lover is offline
 
Join Date: Apr 2006
Location: Northern Ca
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?
Attached Images
File Type: jpg site.jpg (30.0 KB, 88 views)
Reply With Quote
  #15  
Old 03 Jun 2007, 06:14
713JunctionP 713JunctionP is offline
 
Join Date: Mar 2007
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.

Last edited by 713JunctionP; 03 Jun 2007 at 06:20.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 11:07.

Layout Options | Width: Wide Color: