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

View previous topic View next topic Go down

Solved Words before nick problem

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

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

Solved Re: Words before nick problem

Post by SLGray on Tue 20 Aug 2013, 20: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.


SLGray
Administrator
Administrator

Male Posts : 37284
Reputation : 2505
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Words before nick problem

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


Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

Solved Re: Words before nick problem

Post by Ikerepc on Wed 21 Aug 2013, 21:35

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

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

Solved Re: Words before nick problem

Post by Ikerepc on Sat 24 Aug 2013, 11:58

So can somebody help me?

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

Solved Re: Words before nick problem

Post by levy on Sat 24 Aug 2013, 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');
});

levy
Hyperactive

Male Posts : 2582
Reputation : 345
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 24 Aug 2013, 12:31

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

Your code don't helping me.

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

Solved Re: Words before nick problem

Post by levy on Sat 24 Aug 2013, 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;
}

levy
Hyperactive

Male Posts : 2582
Reputation : 345
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 26 Aug 2013, 16:46

Thanks, solved

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

Solved Re: Words before nick problem

Post by SLGray on Mon 26 Aug 2013, 18:16

Topic Solved & Locked


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


SLGray
Administrator
Administrator

Male Posts : 37284
Reputation : 2505
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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