Words before nick problem 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.
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 Tue 20 Aug - 19:38

    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 Mon 26 Aug - 16:46; edited 1 time in total
    SLGray
    SLGray
    Administrator
    Administrator


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

    Solved Re: Words before nick problem

    Post by SLGray Tue 20 Aug - 20:01

    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 Tue 20 Aug - 20:10

    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 Wed 21 Aug - 21:35

    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 Sat 24 Aug - 11:58

    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 Sat 24 Aug - 12:05

    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 Sat 24 Aug - 12:31

    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 Sat 24 Aug - 12:39

    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 Mon 26 Aug - 16:46

    Thanks, solved
    SLGray
    SLGray
    Administrator
    Administrator


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

    Solved Re: Words before nick problem

    Post by SLGray Mon 26 Aug - 18:16

    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.