With help from Palmer of Shinra, we have adapted this to work on 2.2.1...
Find this:
PHP Code:
// ###################### Start buildpostbit #######################
function getpostbit($post) {
// sorts through all the stuff to return the postbit template
// user
global $bbuserinfo,$session,$ignore,$cookietimeout;
// showthread
global $counter,$firstnew,$sigcache,$highlight,$postid,$forum;
// global options
global $showdeficon,$displayemails,$enablepms,$allowsignatures,$wordwrap,$dateformat,$timeformat,$logip,$replacewords,$postsperday,$avatarenabled,$registereddateformat,$viewattachedimages;
And add this below it:
PHP Code:
// begin glowing admin
$post[specialusername] = $post[username];
$usergroupid=$post[usergroupid];
if ($usergroupid == 6) { $post[specialusername] = "<table style=\"filter:glow(color=red, strength=6)\"><tr><td><font size='-1' color='white'><b>$post[username]</b></font></td></tr></table>"; }
if ($usergroupid == 5) { $post[specialusername] = "<table style=\"filter:glow(color=orange, strength=8)\"><tr><td><font size='-1' color='white'><b>$post[username]</b></font></td></tr></table>"; }
if ($usergroupid == 7) { $post[specialusername] = "<table style=\"filter:glow(color=blue, strength=8)\"><tr><td><font size='-1' color='white'><b>$post[username]</b></font></td></tr></table>"; }
// end glowing admins
Then go edit your postbit template and change this:
[username]
to this:
[specialusername]
________________________________________________
This makes your usernames glow as follows:
Mods glow in blue
Super Mods in orange
Admins in red.
(I'm going to post this in Finshed hacks with credits due to Palmer of Shinra and everyone else who has put input into this hack)