Log in

View Full Version : Username Glow Problem.


Ambex Net
02-10-2002, 10:58 PM
Ok in admin/functions.php

find:
// user
global $bbuserinfo,$session,$ignore,$cookietimeout;
// showthread
global $counter,$firstnew,$sigcache,$highlight,$postid,$f orum;
// global options
global $showdeficon,$displayemails,$enablepms,$allowsigna tures,$wordwrap,$dateformat,$timeformat,$logip,$re placewords,$postsperday,$avatarenabled,$registered dateformat,$viewattachedimages;

after I have

// begin glowing admin
$post[specialusername] = $post[username];

$usergroupid=$post[usergroupid];
if ($usergroupid == 6) { $post[specialusername] = "<table style=\"filter:glow(color=#0066CC, 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=#669999, strength=8)\"><tr><td><font size='-1' color='white'><b>$post[username]</b></font></td></tr></table>"; }
// end glowing admins

What do I have to add in there to make registered users or anyone who isn't a mod, supermod, or admin glow a certain color? Anyone know????

okrogius
02-11-2002, 10:54 AM
You also have to change $post[username] to $post[specialusername] in postbit template...

Ambex Net
02-12-2002, 12:22 AM
I have that added.

Ambex Net
02-12-2002, 07:50 PM
^bump^

traekwon
06-02-2002, 03:48 AM
After

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>"; }

Immediately add

if ($usergroupid == 2) { $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>"; }

This will make all registered (normal) users names glow red. Change 'red' to whatever color you like.

asweetdeal
06-10-2002, 12:18 AM
hey guys where can I find this hack? I've been looking and there are references all over but no luck on the original hack. Thanks!

ASweetDeal

Medivith
12-05-2002, 04:08 AM
Also if you want to add glow for only one or two users, and to add glow by userid this is the code to do that.

In addition to the above:

$userid=$post[userid];
if ($userid== XXXX) { $post[specialusername] = "<table style=\"filter:glow(color=#0066CC, strength=4)\"><tr><td><font size='-1' color='white'><b>$post[username]</b></font></td></tr></table>";
}


Replace XXXX with the userid of the person who should have the glow in thier username.

Pretty simple edit, but I found it useful and figured I should post it.

stan111
01-25-2007, 11:25 PM
is there a code for only one username to be glow?

DuyNguyen
02-05-2007, 03:28 AM
which php file should I add? I had searched for the phrase but it's not exist in all php files

Bratz-Designs
02-05-2007, 03:57 PM
note that it wont work in firefox, just in Ie ;)

stinger2
02-05-2007, 08:17 PM
https://vborg.vbsupport.ru/showthread.php?t=100851

this hack is very simple............no other modification needed....try it