Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Custom User Status by Usergroup [Final] Details »
Custom User Status by Usergroup [Final]
Mod Version: 1.00, by Jen (Member) Jen is offline
Developer Last Online: Jun 2018 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 20
Released: 16 Jul 2002 Last Update: Never Downloads: 4
Not Supported  

I could not find a way to add an additional user status field based on usergroup other than setting a override, which got rid of the normal usertitle based on post count and I didn't want that. This is my solution.

This hack adds an additional field to the usergroup table and allows you to display that custom group status field in addition to the normal usertitle that is defined either custom for the user or normally by number of posts without overriding the usertitle variable.

The end result gives you something like this (depending on how you edit your postbit template) for the output:

Jen
Tyro Hacker
[Custom Group Status Here]
[Users Avatar]
[Users other details]

The custom group status is set within the cp from the user group modify function for each group you want to add this additional status field to.

Questions, Problems, etc.. ask here as I am unable to provide support via email. This hack has been tested on vB 2.2.6.

Download Now

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

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Custom User Status by Usergroup Jen vBulletin 2.x Beta Releases 9 02 Nov 2002 12:29

Comments
  #2  
Old 16 Jul 2002, 20:29
Jen's Avatar
Jen Jen is offline
 
Join Date: Apr 2002
Here's a preview of how this hack is used and displays on my board.

For those wondering why you would want such a hack.. I use it for the paid memberships system that I wrote to work with vBulletin. I don't require membership to view/use the board, but do accept contributions towards site operating costs. This hack was part of the solution to adding that membership system and giving users 'status' based on their contributions to the site.
Attached Images
File Type: gif postdisplay.gif (13.9 KB, 781 views)
Reply With Quote
  #3  
Old 16 Jul 2002, 21:54
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Real name: Mike
There is another hack similar to this made by JJR512, although his uses a custom field other than creating a new table. I'm not sure if his is all that similar in code, but they seem to do the same thing.

Reference:
http://www.vbulletin.org/forum/showt...threadid=34968
Reply With Quote
  #4  
Old 16 Jul 2002, 22:17
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Real name: Dean Clatworthy
great hack...
__________________
Dean Clatworthy - Web Developer/Designer
Reply With Quote
  #5  
Old 16 Jul 2002, 22:19
Jen's Avatar
Jen Jen is offline
 
Join Date: Apr 2002
Actually, they are quite different:

"Basically, all it does is show both a custom title, selected by the user, and the user's standard title"

This hack keys the custom title off of the users usergroup and it is only configurable thru the admin and can't be set by the user.

The other hack allows the user to set their custom title and has nothing at all to do with the user groups that the user is assigned to.
Reply With Quote
  #6  
Old 17 Jul 2002, 01:43
CeleronXL's Avatar
CeleronXL CeleronXL is offline
 
Join Date: Nov 2001
Nice hack, but are you sure it hasn't been done before? Because at a forum I go to they've had a userselectable field, and then another field just like this and it's been there for a while. Only the admins get the second field, however, and they put stuff like "Coolness Admin, Cheese Eating Admin" and stupid stuff like that . But was this made before? I don't think the site creator is good enough with PHP to make his own.
__________________
[ StarCraft Sector | Forum Sector ]
Reply With Quote
  #7  
Old 17 Jul 2002, 02:13
Jen's Avatar
Jen Jen is offline
 
Join Date: Apr 2002
I do not believe that this hack has been done before (keyed off usergroup like this).

I searched the forums extensively before I wrote it, I found some similar, but none that did exactly what I was trying to do: Assign a custom title to each user within a specific user group and still keep the posters standard post count based user title. I suppose it could have been done (as has been done previously) with a 'hidden' user profile field that the admin sets, but I didn't want the hastle of setting this user field and like the ability to see who my contributing members are (and at what level) based on their usergroup.

My reason for needing this was to implement my paid membership system which has 5 different levels above standard member (Contributor, Bronze, Silver, Gold, Platinum) each based on the amount of $ sent in by the user and each getting a custom 'group' title in addition to their normal user title. The entire system is automated so all I have to do is enter the funds as they are received and the rest is handled within my membership system / vBulletin. The custom status is assigned as soon as the member is switched to a contributor user group.

And for those wondering, yes, I have a fully working and operational membership system tied into vB that tracks money sent in, expiration dates, totals, membership status, limits avatar dimensions and display based on usergroup (another reason for this hack), the whole nine yards, and it's completely automated once I enter the funds into the system. It took three existing hacks, this hack and two other hacks I wrote but have not yet published to create.

Last edited by Jen; 17 Jul 2002 at 02:19.
Reply With Quote
  #8  
Old 17 Jul 2002, 04:37
ZiRu$'s Avatar
ZiRu$ ZiRu$ is offline
 
Join Date: Jan 2002
i shall install....SOON
Reply With Quote
  #9  
Old 17 Jul 2002, 06:20
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Real name: Dan
Originally posted by Velocd
There is another hack similar to this made by JJR512, although his uses a custom field other than creating a new table. I'm not sure if his is all that similar in code, but they seem to do the same thing.

Reference:
http://www.vbulletin.org/forum/showt...threadid=34968
I would have to say this would be better to use since it doesnt require another table for such a small thing.
Reply With Quote
  #10  
Old 17 Jul 2002, 06:37
Jen's Avatar
Jen Jen is offline
 
Join Date: Apr 2002
There's no extra table created, only a modification to the usergroup table to add an extra field which contains the custom usergroup title if you want to use one.

The two hacks are different. This one is set by the admin and sets a custom usergroup title based on what usergroup the user is in. This is usefull if you want every member of that usergroup to have the same custom title and yet still keep the original user title based on post count.

The other hack referenced adds an additional profile field that allows the USER to set their own custom title in addition to their title based on post count.

If you want to allow the users to set their own custom titles or if you want to use the admin to set a custom title for individual users, then the other hack is probably what you want. If you want to set a custom title for all users within a specific usergroup and not override their user title, then this is the hack to use.

Basically, two differing ways of doing the same thing, just depends on what you're trying to do and how you want to control it.

Last edited by Jen; 17 Jul 2002 at 06:40.
Reply With Quote
  #11  
Old 18 Jul 2002, 03:38
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Real name: Justin J. Rebbert
I've read the explanation of what this hack does, and although both our hacks involve custom titles, I believe that how the custom titles are assigned, and the purposes behind the custom titles, are different enough that there is no reason for any concern. Thanks for thinking of me, Velocd, and thanks for the PM, Jen.
__________________
-Justin J. "JJR512" Rebbert
www.JJR512.com: Chat about anything!
Reply With Quote
  #12  
Old 18 Jul 2002, 12:13
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Real name: Chris Murphy, BSc
JJR512's hacks can actually be used in the same way as this - All you have to do is set it editable by user to no, and bingo!

I know its not Usergroup based, but still similar...

Satan
Reply With Quote
  #13  
Old 21 Aug 2002, 05:48
Allstar DC Allstar DC is offline
 
Join Date: Apr 2002
is it possible to let it show an image instead of text???
Reply With Quote
  #14  
Old 21 Aug 2002, 10:34
Jen's Avatar
Jen Jen is offline
 
Join Date: Apr 2002
While I haven't tested this, you should be able to just add standard html IMG tags to the custom status field to show an image for every user of a particular usergroup.
Reply With Quote
  #15  
Old 22 Aug 2002, 00:22
Allstar DC Allstar DC is offline
 
Join Date: Apr 2002
and how would i do that?
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 07:25.

Layout Options | Width: Wide Color: