The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Color coded usergroups
Good morning to you all.
I am wanting to know how i would add a color code section to the Currently Active Users: 2 (1 members and 1 guests) section. Something similar to either Administrators Super Moderators Moderators VIP Member Registered Users or Administrators | Moderators | Punished Member | Super Moderators | VIP Member But with each group a different color. I am running 3.8.7 Thanks in advance for the help |
#2
|
|||
|
|||
$vbulletin->usergroupcache[] has the information for each group, so in a plugin you could do something like:
PHP Code:
or if you want to control the groups or order of the included groups, you could use this instead: PHP Code:
(BTW, I haven't tried these so there could be typos...). |
#3
|
||||
|
||||
Quote:
I am a extreme novice at all of this. can you break this down "barney style?" |
#4
|
|||
|
|||
Well, a couple of things: the code I posted would only build the legend part, and it only works if you've already entered html markup in the usergroup manager to color code usernames by group. But assuming you've done that, create a new plugin using hook location forumhome_complete and this code:
PHP Code:
Then in your FORUMHOME template, put $usergroup_legend where you want it to appear. When I tried it it came out fairly large, so you might want to put a <span>..</span> around it or something to control the font size. |
#5
|
||||
|
||||
Quote:
Which, if you did a search for legend there are already several mods for this |
#7
|
||||
|
||||
That makes two of us..... Sucks being the uber-novice!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|