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


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


SLGray
Administrator
Administrator

Male Posts : 36679
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Words before nick problem

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


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 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
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 August 24th 2013, 11:58 am

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 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
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 August 24th 2013, 12:31 pm

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 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
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 August 26th 2013, 4:46 pm

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 August 26th 2013, 6:16 pm

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 : 36679
Reputation : 2445
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