Usernames with multiple colors. [SOLVED] Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
4 posters

    Usernames with multiple colors. [SOLVED]

    avatar
    cat2006house
    New Member


    Posts : 10
    Reputation : 1
    Language : English and Chinese

    Solved Usernames with multiple colors. [SOLVED]

    Post by cat2006house Fri Jan 24, 2014 5: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 Sat Jan 25, 2014 9:08 am; edited 1 time in total
    TheCrow
    TheCrow
    Manager
    Manager


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

    Solved Re: Usernames with multiple colors. [SOLVED]

    Post by TheCrow Fri Jan 24, 2014 5: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!
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Usernames with multiple colors. [SOLVED]

    Post by Ange Tuteur Fri Jan 24, 2014 6: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
    cat2006house
    New Member


    Posts : 10
    Reputation : 1
    Language : English and Chinese

    Solved Re: Usernames with multiple colors. [SOLVED]

    Post by cat2006house Sat Jan 25, 2014 9:04 am

    Works perfectly!

    I must have accidentally added 0 between u and 1.

    Thank you both!
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Usernames with multiple colors. [SOLVED]

    Post by SLGray Sat Jan 25, 2014 9: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.