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.

Bold Code?

+2
levy
E-Mad™
6 posters

Go down

Bold Code? Empty Bold Code?

Post by E-Mad™ March 10th 2012, 8:17 pm

Is there any code available that allows certain usernames to have a coloured name but not be in bold even though they are part of a group, for example.

XciteAdmin™ < from that to this > XciteAdmin™

If anyone can help me with this that would be great.
avatar
E-Mad™
Forumember

Posts : 139
Reputation : 2
Language : English

http://www.chat-central.darkbb.com

Back to top Go down

Bold Code? Empty Re: Bold Code?

Post by levy March 10th 2012, 8:22 pm

Yes is posible,when you make a rank don't use <b> </b> and is a simple rank not bolded
levy
levy
Hyperactive

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

https://portofolio.goodforum.net/

Back to top Go down

Bold Code? Empty Re: Bold Code?

Post by E-Mad™ March 10th 2012, 8:24 pm

I'm not talking about ranks, I am talking about usernames.
avatar
E-Mad™
Forumember

Posts : 139
Reputation : 2
Language : English

http://www.chat-central.darkbb.com

Back to top Go down

Bold Code? Empty Re: Bold Code?

Post by levy March 10th 2012, 9:58 pm

Username :-? Is imposible I Think.
levy
levy
Hyperactive

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

https://portofolio.goodforum.net/

Back to top Go down

Bold Code? Empty Re: Bold Code?

Post by Guest March 10th 2012, 10:04 pm

i think you want this CSS code

Code:
.strong, b {
font-weight: lighter;
}
avatar
Guest
Guest


Back to top Go down

Bold Code? Empty Re: Bold Code?

Post by Ape March 11th 2012, 3:27 pm

Respect_Me wrote:i think you want this CSS code

Code:
.strong, b {
font-weight: lighter;
}
placed that code in the CSS and it don't do nothing Confused
we want the user name to be less bold !!
Ape
Ape
Administrator
Administrator

Male Posts : 19084
Reputation : 1988
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Bold Code? Empty Re: Bold Code?

Post by Guest March 11th 2012, 3:42 pm

Code:
strong, b {
font-weight: lighter;
}

Maybe this , without "."
avatar
Guest
Guest


Back to top Go down

Bold Code? Empty Re: Bold Code?

Post by Ape March 11th 2012, 3:58 pm

Respect_Me wrote:
Code:
strong, b {
font-weight: lighter;
}

Maybe this , without "."
That worked for some names but others stayed bold What the fuck ?!?
is there away that we can do it by groups there in so say the admin stay bold the members stay bold but the mods and chat room staff go less bold !!

I mean like this
Admin = Bold
Chat Mods = Unbold
Forum Mods = Bold
Ape
Ape
Administrator
Administrator

Male Posts : 19084
Reputation : 1988
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Bold Code? Empty Re: Bold Code?

Post by mioshi11 March 11th 2012, 4:33 pm

Code:
<b>Admin</b>
try this!
mioshi11
mioshi11
Forumember

Male Posts : 153
Reputation : 4
Language : english
Location : Philippines

http://lovefx.forumtl.com

Back to top Go down

Bold Code? Empty Re: Bold Code?

Post by Ape March 11th 2012, 9:01 pm

no that would only work for the ranks we mean members name not ranks


Bold Code? Left1212Bold Code? Center11Bold Code? Right112
Bold Code? Ape_b110
Bold Code? Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19084
Reputation : 1988
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Bold Code? Empty Re: Bold Code?

Post by enlil March 11th 2012, 11:51 pm

Hi,


You could target a group with the color in css :

Code:
a span[style="color:#D13800"] strong { font-weight: normal; }
There is a table of compatibility there :
https://developer.mozilla.org/en/CSS/Attribute_selectors#Browser_compatibility

If it's not enought compatible for you, you will need to use a script, for example :

Code:
$(function(){
  $("a span[style^='color:#']").each(function(){
    $(this).addClass("groupColor"+$(this).attr("style").replace(/^color:#([A-Fa-f0-9]{0,6})?.*?$/,'$1').toUpperCase());
  });
});
Then you will be able to use in your css :

Code:
.groupColorD13800 strong { font-weight: normal; }
Cordially.
avatar
enlil
New Member

Posts : 16
Reputation : 5
Language : c

Back to top Go down

Bold Code? Empty Re: Bold Code?

Post by Niko March 13th 2012, 6:42 pm

Hi!

sure you can... Set up this code with the member link and the color:
Code:
a[href="/u71863"] {
    font-weight: bold;
}

this code will work for my account because I set it down with /u71863; Just change it Mr. Green
And it will work easy...

Friendly,
Niko
Niko
Helper
Helper

Male Posts : 3100
Reputation : 244
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

Back to top

- Similar topics

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