PDA

View Full Version : Glowing User Names


Mr L
09-30-2003, 10:00 PM
I know that there are several hacks around for glowing user names but I could not find one that fitted my requirments which was all users had no glow unless selected.

Here is a very quick and easy to install hack that I knocked up this morning. Tested on vBulletin 2.3.0.

To install, this requires one file and one template edit, along with a custom profile field.

To use, users simply set the colour they require in their profile.

Please click "Install" if you use this.

MaDCaT75
10-01-2003, 08:33 PM
Nice hack but this defeats the purpouse of the store hack :p

MindTrix
10-01-2003, 11:50 PM
Nice job, wont install cus i aint got no need for it yet, but if people moan for it ill install urs

BladeZz
10-03-2003, 03:56 AM
Works great! Thanx

Mr L
10-04-2003, 04:19 PM
]Works great! Thanx

Execellent. Thank you for installing. :)

Phoenix_Fighter
10-23-2003, 11:31 PM
Well done ^_^ *clicks install*

PranK
11-03-2003, 07:25 AM
nice one bruv.

*clicks install*

?????p?x????
12-01-2003, 06:36 PM
Shiggity.

PRECISELY what I have been looking for! All other glow hacks gave the average joe a red glow by default, but not now. I want the glow all to my own. You know how it is. ;)

Thank you much, man. I've clicked that Install button for ya.

M@rkus
12-02-2003, 01:03 PM
great hack. how can i let the usernames in the "Users Online" glow also?!

Kruppa
12-06-2003, 02:18 AM
Really cool hack, my users love it. :)

I do have a problem with one user who sees everything distorted where the name is glowing. The only thing I've been able to find is that she's on a Macintosh. Is it possible it's the problem and if so is there a way around this?

It does it in all the style sets I have.

GMfullsize
12-07-2003, 06:29 AM
I installed it but nothing happens after I put the number in. I put in 000000 for black and nothing changed. Also how do I know what field # it is? Thanks

Mr L
12-07-2003, 07:18 AM
I installed it but nothing happens after I put the number in. I put in 000000 for black and nothing changed. Also how do I know what field # it is? Thanks

Go into the Control Panel and move the cursor over edit on the group you have selected. In the status bar on IE at the end of the URL it should show...

action=edit&usergroupid=7

...obviously the trailing number could be diffierent for you, but that is the number you need.

Mr L
12-07-2003, 07:24 AM
great hack. how can i let the usernames in the "Users Online" glow also?!

Thanks for the comments. Making the online users was beyond the scope of this small hack as there are many other hacks that do that and the chances of conflicting with them would be high.

Saying this, if anyone wants to make an addon or enhance this, they are welcome to use this as a base.

Mr L
12-07-2003, 07:26 AM
Really cool hack, my users love it. :)

I do have a problem with one user who sees everything distorted where the name is glowing. The only thing I've been able to find is that she's on a Macintosh. Is it possible it's the problem and if so is there a way around this?

It does it in all the style sets I have.

Would it help if I looked at writing a piece of code that excluded that user from this?

This is a brower issue and I doubt any changes to the code would actually fix this for one user so perhaps the best issue is to remove them from viewing it?

Kruppa
12-07-2003, 11:43 AM
Would it help if I looked at writing a piece of code that excluded that user from this?

This is a brower issue and I doubt any changes to the code would actually fix this for one user so perhaps the best issue is to remove them from viewing it?If it wouldn't be too much trouble that would be great. She's one of my moderators and it's hard because if she doesn't recofnize the member by his/her avatar she has to click in the profile to see who it is. Thanks for your help! :)

Mr L
12-07-2003, 12:07 PM
If it wouldn't be too much trouble that would be great. She's one of my moderators and it's hard because if she doesn't recofnize the member by his/her avatar she has to click in the profile to see who it is. Thanks for your help! :)

Okay...

...in forums/admin/functions.php find...

//GLOW NAME
if (trim($post[fieldXXXXX])!="") {

...and replace with...

//GLOW NAME
if (trim($post[fieldXXXXX])!="" and $bbuserinfo[userid] <> YYYYY) {

...with YYYYY = the id number of this moderator.

They will not see any "Glow" names, while everyone else will. Please let me know if it works ok for you, it did on my test board.

Kruppa
12-07-2003, 01:18 PM
Ok I'll change it and get back to you once the person having trouble comes online next.

Also, do you know if anyone has had trouble getting the colour codes displaying the right colour? I've had a couple of people tell me they tried a certain colour code and gave them something else. For example the colour "teal" with this code: #008080 gives a kind of blue instead of the kind of green it's supposed to give.

I've tried this code in the glow text hack I have for the posts and it works fine. It's no big deal, I gave him a lighter teal that works but just wondering if it's a problem others had or just me. I don't recall seeing it in this thread.

Cryo
12-09-2003, 07:47 AM
Ok, I want to alter this so it only works for admins... I tried the following...

if ($bbuserinfo['usergroupid']==6) {
$post[username] = "<font style='filter:glow(color=#CC00FF, strength=3);height=1px'><b>$post[username]</font>";
}
else {

$post[username] = "$post[username]";

}

It didn't seem to work though. Any suggestions? Thanks!

Mr L
12-09-2003, 08:48 AM
Yeah, quite easy to adapt. Install the hack excatly as shown in the instructions, but set the "Field Editable" to "No" for the new profile field.

That way only Admin's or Mod's can view that field. Rather then put your colour "CC00FF" in the code, put it in the new profile field via the Admin CP.

This will allow the board Admin to control who has what colours be it just themselves, or a standard user if required. The colour not being hard coded allows for a quick change if required as well.

Cryo
12-09-2003, 02:46 PM
Hrm, never even thought of that. ;) Thanks for the assistance.

BTW, I should mention that I've been looking for a hack like this for awhile. We had something like this on our old system, but lost it when we upgraded. I'm very glad to have it back!

Kruppa
12-09-2003, 04:20 PM
They will not see any "Glow" names, while everyone else will. Please let me know if it works ok for you, it did on my test board.Yeah it works great, thanks a lot for your help! :)

P???t?l??k
12-13-2003, 09:16 AM
Looks intresting gonna try in a few.

Kruppa
01-19-2004, 08:19 AM
I wonder if there is a way to make this option visible and editable only to certain usergroups. I have a group of premium members who are allowed to have this glow while the rest of the members can't. Since I've installed this hack I've used a thread in a hidden forum for the premium members so they can post their code and I set it up for them.

But there are many premium members and some of them change often or even propose 3 different codes they want to try one after the other. I was wondering if it could be possible for me to make the profile feild visible for them (so they can do it themselves) and editable but keep it hidden from the regular members. Or if you prefer keep it hidden from everyone but visible to the premium members.

Hope someone can help me! :)

Mr L
01-19-2004, 03:55 PM
Kruppa,

Would a dedicated page for them be of any use?

I am thinking of the lines that they could have the URL of that page and do it from there. If a non-Premium member tired, they'd be dumped back to the forum home page.

Kruppa
01-22-2004, 01:36 PM
Kruppa,

Would a dedicated page for them be of any use?

I am thinking of the lines that they could have the URL of that page and do it from there. If a non-Premium member tired, they'd be dumped back to the forum home page.I suppose that would do the trick. Although I was thinking less overkill. :D

Like you gave me the code for making the glow hack invisible for a specific user based on the user id. What about making he profile feild for the glow code visible based on the group id? Is that even possible?

If not the dedicated page would be cool. :)

FunaGuy
08-03-2006, 02:03 AM
can u please release this new version for vb3.5.x

Shazz
08-03-2006, 02:10 AM
you uped a one year old thread...