Helpful Information
 
 
Category: vBulletin 2.x Beta Releases
Username Color 2

_/¯\_/¯\_/¯\_/¯\_/¯\_/¯\_/¯\_/¯\_/¯\_

Username Color Hack
Version 2.0

By Hwulex
[Hwulex(at)Hwulex(dot)com]

¯\_/¯\_/¯\_/¯\_/¯\_/¯\_/¯\_/¯\_/¯\_/¯


History
========
Version 1 of this hack was born from a request by an admin on a forum I mod. Well, we were having some problems with usergroups and the colours, so I re-wrote it as version 2. This hack has probably been done before, but it was sitting in my hacks directory, so thought I'd stick it out there.

This is essentially an update to version 1.0 of my hack which changed username's colours dependant on usergroupids. Useful for identifying administrators and moderators on your forum. This version does much the same thing, only with much better code, using vB's functions to identify users instead of by usergroupid (which isn't always consistent between boards).

What this version does, as default, is change the colour of the username next to a user's post. Admin and SuperMods are displayed in red, whilst moderators are (mostly) displayed in blue. I say mostly, because if a thread is being viewed in a forum that the moderator moderates, their name will be enclosed in green square brackets.


Notes
=====
Moderator's names will only display in blue if they are actually listed as moderating a forum (on the forum index).
Admin CP -> Forums & Moderators


Contents
========
Contained in the .zip file are an example image, and instructions.txt (this file)
- instructions.txt -> Instructions for hack installation
- example.gif -> Shows how the hack is used on the forum


Use
===
Tested on vBulletin 2.3.2

Files to modify:
- admin/functions.php

Templates to add:
- usercolor_supadmin
- usercolor_forummod
- usercolor_mod

Templates to modify:
- postbit
- headinclude

Replacements to add:
- {supadmincolor}
- {modcolor}
- {forummodcolor}

Estimated Install Time: 5 minutes


Support:
==========
I am a full time university student reading computing so I'm not always available, but I will offer support as much as possible.


Contact:
=========
Email: vbhacks(at)hwulex(dot)com


Updates
========
None yet.


NB: If you do install this hack, please click on the INSTALL button. You will receive updates in your e-mail whenever I add new features to it. Also post a reply with your comments, they are appreciated.

Well I have that kind of hack installed, basicallyt Im looking for a hack that I can use any usergroup name for color, could you explain that?

If you just want to be able to assign a colour to a usergroup, you could do that. Would be an easy hack to make. Is that what you mean?

yes that is what I meant.

I've followed the instructions, but I'm not seeing the colors. I am using vbportal, but this should still work when displaying forums, right?

This hack only takes effect in the postbit template; ie, when you're viewing a thread (see example image in the zip). I guess it could be altered to be forum-wide, but I didn't feel it neccessary when making it for our forum.

Just installed it on 2.2.9 works just fine and intime cuz I needed it .. I was gonna mess with it manualy till I seen this...


Thanks mate










privacy (GDPR)