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.

Words before nick problem

3 posters

Go down

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
Ikerepc
Ikerepc
Active Poster

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

http://admins.forumotion.com

Back to top Go down

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51463
Reputation : 3519
Language : English
Location : United States

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

Back to top Go down

Solved Re: Words before nick problem

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

Ikerepc
Ikerepc
Active Poster

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

http://admins.forumotion.com

Back to top Go down

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 : 1186
Reputation : 167
Language : Who cares...
Location : Where web help & support is needed

http://admins.forumotion.com

Back to top Go down

Solved Re: Words before nick problem

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

So can somebody help me?
Ikerepc
Ikerepc
Active Poster

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

http://admins.forumotion.com

Back to top Go down

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');
});
levy
levy
Hyperactive

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

https://portofolio.goodforum.net/

Back to top Go down

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.
Ikerepc
Ikerepc
Active Poster

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

http://admins.forumotion.com

Back to top Go down

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;
}
levy
levy
Hyperactive

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

https://portofolio.goodforum.net/

Back to top Go down

Solved Re: Words before nick problem

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

Thanks, solved
Ikerepc
Ikerepc
Active Poster

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

http://admins.forumotion.com

Back to top Go down

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51463
Reputation : 3519
Language : English
Location : United States

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

Back to top Go down

Back to top


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