The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Usernames with multiple colors. [SOLVED]

View previous topic View next topic 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: http://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>');
});






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.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

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

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.


SLGray
Administrator
Administrator

Male Posts : 35661
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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