The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Words before nick problem

Go down

Solved Words before nick problem

Post by Ikerepc on Tue Aug 20 2013, 20: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 Aug 26 2013, 17:46; edited 1 time in total
avatar
Ikerepc
Active Poster

Male Posts : 1150
Reputation : 155
Language : Croatian, HTML, HTML5, CSS, CSS3, jQuery, PHP, SQL, Bascom, Python, C, C++, FBD & LAD for PLC and more... Little English :D
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 on Tue Aug 20 2013, 21:01

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


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

avatar
SLGray
Administrator
Administrator

Male Posts : 42733
Reputation : 3010
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Words before nick problem

Post by Ikerepc on Tue Aug 20 2013, 21:10

avatar
Ikerepc
Active Poster

Male Posts : 1150
Reputation : 155
Language : Croatian, HTML, HTML5, CSS, CSS3, jQuery, PHP, SQL, Bascom, Python, C, C++, FBD & LAD for PLC and more... Little English :D
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 on Wed Aug 21 2013, 22:35

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

Male Posts : 1150
Reputation : 155
Language : Croatian, HTML, HTML5, CSS, CSS3, jQuery, PHP, SQL, Bascom, Python, C, C++, FBD & LAD for PLC and more... Little English :D
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 on Sat Aug 24 2013, 12:58

So can somebody help me?
avatar
Ikerepc
Active Poster

Male Posts : 1150
Reputation : 155
Language : Croatian, HTML, HTML5, CSS, CSS3, jQuery, PHP, SQL, Bascom, Python, C, C++, FBD & LAD for PLC and more... Little English :D
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 on Sat Aug 24 2013, 13: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');
});
avatar
levy
Hyperactive

Male Posts : 2587
Reputation : 346
Language : Romanian, English
Location : criticize artwork, not people!

http://help.forumotion.com/

Back to top Go down

Solved Re: Words before nick problem

Post by Ikerepc on Sat Aug 24 2013, 13:31

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

Your code don't helping me.
avatar
Ikerepc
Active Poster

Male Posts : 1150
Reputation : 155
Language : Croatian, HTML, HTML5, CSS, CSS3, jQuery, PHP, SQL, Bascom, Python, C, C++, FBD & LAD for PLC and more... Little English :D
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 on Sat Aug 24 2013, 13: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;
}
avatar
levy
Hyperactive

Male Posts : 2587
Reputation : 346
Language : Romanian, English
Location : criticize artwork, not people!

http://help.forumotion.com/

Back to top Go down

Solved Re: Words before nick problem

Post by Ikerepc on Mon Aug 26 2013, 17:46

Thanks, solved
avatar
Ikerepc
Active Poster

Male Posts : 1150
Reputation : 155
Language : Croatian, HTML, HTML5, CSS, CSS3, jQuery, PHP, SQL, Bascom, Python, C, C++, FBD & LAD for PLC and more... Little English :D
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 on Mon Aug 26 2013, 19:16

Topic Solved & Locked


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

avatar
SLGray
Administrator
Administrator

Male Posts : 42733
Reputation : 3010
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Back to top


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