Usernames with multiple colors. [SOLVED]

Go down

Solved Usernames with multiple colors. [SOLVED]

Post by cat2006house on January 24th 2014, 6:12 pm

Hello guys,

I have read this tutorial thoroughly: https://help.forumotion.com/t129844-username-in-multiple-colors#870453 , and I have enabled javascript code management, but it doesn't work for me,

My code is as follow:

Code:
$(function(){
$('a[href="/u01"]').not(function(){return $("img",this)[0]}).html('<strong><font color="#99CC66">Ad</font><font color="#307A9C">min™</font></strong>');
});

I am not sure why this doesn't work at all. Thanks in advance for all the help!


Last edited by cat2006house on January 25th 2014, 10:08 am; edited 1 time in total

cat2006house
New Member

Posts : 10
Reputation : 1
Language : English and Chinese

http://www.simstar.worldgoo.com

Back to top Go down

Solved Re: Usernames with multiple colors. [SOLVED]

Post by Luffy on January 24th 2014, 6:16 pm

The first user is /u1 and not u01.

Try adding this and check it:
Code:
$(function(){
$('a[href="/u1"]').not(function(){return $("img",this)[0]}).html('<strong><font color="#99CC66">Ad</font><font color="#307A9C">min™</font></strong>');
});
avatar
Luffy
Manager
Manager

Male Posts : 5511
Reputation : 607
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Usernames with multiple colors. [SOLVED]

Post by Ange Tuteur on January 24th 2014, 7:45 pm

Hello,

Doing as Marios has mentioned above should make the code work. For the first members the numbers are one digit. The two X's are to represent any number, so placing what exactly is at the end of that members address bar will make the code work proper. Wink
avatar
Ange Tuteur
Forumaster

Male Posts : 13202
Reputation : 2917
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: Usernames with multiple colors. [SOLVED]

Post by cat2006house on January 25th 2014, 10:04 am

Works perfectly!

I must have accidentally added 0 between u and 1.

Thank you both!

cat2006house
New Member

Posts : 10
Reputation : 1
Language : English and Chinese

http://www.simstar.worldgoo.com

Back to top Go down

Solved Re: Usernames with multiple colors. [SOLVED]

Post by SLGray on January 25th 2014, 10:18 am

Topic Solved & Locked


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 43480
Reputation : 3090
Language : English
Location : United States

http://fmthemesdesignteam.forumotion.com/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum