The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Usernames with multiple colors. [SOLVED]

4 posters

Go down

Solved Usernames with multiple colors. [SOLVED]

Post by cat2006house 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
avatar
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 TheCrow 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>');
});


Usernames with multiple colors. [SOLVED] Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: Usernames with multiple colors. [SOLVED]

Post by Ange Tuteur 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
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Usernames with multiple colors. [SOLVED]

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

Works perfectly!

I must have accidentally added 0 between u and 1.

Thank you both!
avatar
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 January 25th 2014, 10:18 am

Topic Solved & Locked


Usernames with multiple colors. [SOLVED] Slgray10

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

Male Posts : 51567
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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