PDA

View Full Version : Username doesn't change color


dai-kun
03-11-2006, 04:10 PM
Bought the color 'red' in the store for username color change but it doesn't show up. It works for the usertitle though. I've looked at the code and made sure it's right also.

username12
03-11-2006, 05:19 PM
Your style tag is overriding the font tag.

Ski-Whiz
03-20-2006, 05:31 PM
CMX,

Is there any way for VbBux to override the style tag, except in the forum home? Most I'm assuming user the "Who Visited in the last XXX hours".

That's pretty much where I use it (style tag for users), however in the postbit I could care less what color they have. Just long long as I see what color they have (based on the permissions for the usergroup, in the forum home)....

So in a nut shell, can vbbux override the style tag everywhere EXCEPT the forum home?

CMX_CMGSCCC
03-21-2006, 07:06 PM
Which style tag does it need to override?

-CMX

Ski-Whiz
03-23-2006, 10:14 PM
I'm not 100% sure..

Basically it's the HTML Usergroup markup that is set in the Usergroup section...

Most sites use this for seeing why types of usergroups are online, but when you set the HTML markup for each usergroup, they are unable to change their color of their username for their postbit areas.. :D

Mattikana
03-24-2006, 12:46 PM
I'm not 100% sure..

Basically it's the HTML Usergroup markup that is set in the Usergroup section...

Most sites use this for seeing why types of usergroups are online, but when you set the HTML markup for each usergroup, they are unable to change their color of their username for their postbit areas.. :D
yea.. imo there should be an option to make it override the username html markup specefied in the usergroup manager... right now it doesn't make sense if you buy a username color when there already is a color specifeid in the username html markup.

CMX_CMGSCCC
03-25-2006, 12:58 AM
What do u have entered for your username HTML markup?

-CMX

Ski-Whiz
03-25-2006, 01:11 AM
Here's an example:

<font color="#000066; 14px verdana";> and obviously the </font> to close the tage.

Basically every entry in the usergroup area overrides the postibit, forumhome, whois, etc..

I looked to find the style tag, but didn't have much luck.. :(

CMX_CMGSCCC
03-25-2006, 02:52 PM
I'll have to look into this markup and see if there's a way to override it.

EDIT: I found a way to fix it, it will be fixed in v1.5.4

-CMX

Ski-Whiz
03-25-2006, 05:16 PM
Thanks!

CMX_CMGSCCC
03-26-2006, 12:21 AM
It was a pain in the a$$, but I had to reorder some of the plugin edits and add this code to 2 of my plugins:


// remove the html code from $userinfo['musername']
$userinfo['musername'] = preg_replace("/\<[a-zA-Z0-9 \:\;\"\'\,\.\?\/\~\`\!\@\#\$\%\^\&\*\(\)\_\-\+\=]*\>/", "", $userinfo['musername']);


But it seems to work, in case u r wondering, the above preg_replace should strip out ALL HTML.

-CMX