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.
The forum of the forums
3 posters

    Words before nick problem

    Ikerepc
    Ikerepc
    Active Poster


    Male Posts : 1187
    Reputation : 167
    Language : Who cares...
    Location : Where web help & support is needed

    Solved Words before nick problem

    Post by Ikerepc August 20th 2013, 7:38 pm

    Hi all,

    I'm writte and using this code for word before nick (on rpg, for general, admirals...) but word is bold like nick. I would like to it be normall, and nick bold, I'm try code <tt>, but then I have space between letters. Does anybody know how to fix that?

    Code:
    $(function() {
     if($('a[href="/u120"] span strong')){
     Â            $('a[href="/u120"] span strong').before('<font color=#ffffff size=1>General </font>');
     Â    }
     });
    Thanks in advice


    Last edited by Zyon on August 26th 2013, 4:46 pm; edited 1 time in total
    SLGray
    SLGray
    Administrator
    Administrator


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

    Solved Re: Words before nick problem

    Post by SLGray August 20th 2013, 8:01 pm

    Please post a link to a post that guests can see that has an username with a word before.



    Words before nick problem Slgray10

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


    Male Posts : 1187
    Reputation : 167
    Language : Who cares...
    Location : Where web help & support is needed

    Solved Re: Words before nick problem

    Post by Ikerepc August 20th 2013, 8:10 pm

    Ikerepc
    Ikerepc
    Active Poster


    Male Posts : 1187
    Reputation : 167
    Language : Who cares...
    Location : Where web help & support is needed

    Solved Re: Words before nick problem

    Post by Ikerepc August 21st 2013, 9:35 pm

    Bump, have there way to do that, or not, if have can somebody help me? I really need help with that.
    Ikerepc
    Ikerepc
    Active Poster


    Male Posts : 1187
    Reputation : 167
    Language : Who cares...
    Location : Where web help & support is needed

    Solved Re: Words before nick problem

    Post by Ikerepc August 24th 2013, 11:58 am

    So can somebody help me?
    levy
    levy
    Hyperactive


    Male Posts : 2631
    Reputation : 350
    Language : English, Romanian
    Location : Romania

    Solved Re: Words before nick problem

    Post by levy August 24th 2013, 12:05 pm

    In any "if" need to be and "else" and you don't have that , my suggestion is tu use only jQuery :

    Code:
    jQuery(document).ready(function() {
    $('a[href="/u2"] span strong ').before('General');
    });
    Ikerepc
    Ikerepc
    Active Poster


    Male Posts : 1187
    Reputation : 167
    Language : Who cares...
    Location : Where web help & support is needed

    Solved Re: Words before nick problem

    Post by Ikerepc August 24th 2013, 12:31 pm

    I know that, but I want "General" not be strong.

    Your code don't helping me.
    levy
    levy
    Hyperactive


    Male Posts : 2631
    Reputation : 350
    Language : English, Romanian
    Location : Romania

    Solved Re: Words before nick problem

    Post by levy August 24th 2013, 12:39 pm

    Code:
    jQuery(document).ready(function() {
    $('a[href="/u2"] span strong ').before('<div class="gen">General</div>');
    });
    and that in your css stylesheet

    Code:
    .gen{
    display:inline;
    font-weight:400!important;
    }
    Ikerepc
    Ikerepc
    Active Poster


    Male Posts : 1187
    Reputation : 167
    Language : Who cares...
    Location : Where web help & support is needed

    Solved Re: Words before nick problem

    Post by Ikerepc August 26th 2013, 4:46 pm

    Thanks, solved
    SLGray
    SLGray
    Administrator
    Administrator


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

    Solved Re: Words before nick problem

    Post by SLGray August 26th 2013, 6:16 pm

    Topic Solved & Locked



    Words before nick problem Slgray10

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

      Current date/time is November 11th 2024, 7:56 pm