Colored b/ strong text in postbody
5 posters
Page 1 of 1
Colored b/ strong text in postbody
Hello! I'm trying my best at designing CSS for my forum in #ModernBB style. I'd like to know what code should I use for colouring bold text in posts by groups.
For example:
Group A have colour green so bold text in Group A post is green
Group B have colour blue - bold text in Group B post is blue
For example:
Group A have colour green so bold text in Group A post is green
Group B have colour blue - bold text in Group B post is blue
- Code:
.GroupAGroup .postbody strong {color: #colorcode;}
Niko likes this post
Re: Colored b/ strong text in postbody
skouliki wrote:hello
did you see this feature to another forumotion forum ?
Hi! I know that the code above was used in other forums and it worked but it was on phpBB2 if I remember well. That's why I'm curious is there another code or way to make it works on ModernBB too.
Re: Colored b/ strong text in postbody
Hello
Please note that most codes from phpBB2 forums will never work on ModernBB forums as the coding is not the same at all.
EDIT: You can do the following to find out the code needed to use in the group.
Using your browser hover over the group at the bottom of your forum.
Then right click on one of them go down and click on inspect
it should then open up something like this then look for this part of the code.
if you see the part that has the text
that will be the part that you would use to pin point each group.
Please note that most codes from phpBB2 forums will never work on ModernBB forums as the coding is not the same at all.
EDIT: You can do the following to find out the code needed to use in the group.
Using your browser hover over the group at the bottom of your forum.
Then right click on one of them go down and click on inspect
it should then open up something like this then look for this part of the code.
if you see the part that has the text
|
Re: Colored b/ strong text in postbody
I made an edit in my last post for you to see how the codes are not the same.
TonnyKamper likes this post
Re: Colored b/ strong text in postbody
Ape wrote:Hello
Please note that most codes from phpBB2 forums will never work on ModernBB forums as the coding is not the same at all.
EDIT: You can do the following to find out the code needed to use in the group.
Using your browser hover over the group at the bottom of your forum.
Then right click on one of them go down and click on inspect
it should then open up something like this then look for this part of the code.
if you see the part that has the textthat will be the part that you would use to pin point each group.
- Code:
href-''/g4-gurpa1
Thank you for your answer!
The same part is on the forum (on phpBB2) with groups too. This is why I wonder what code could work for making the bold text in post the same group as the colour of group, in which is the author.
I know it's enough to use code:
- Code:
.postbody b strong: {color: #colorcode;}
Re: Colored b/ strong text in postbody
If I understand what you want, I believe you will need a JavaScript to get the ID for each group that you want to have this ability. You want that each group when posting bold text that it would be the color of the group, correct?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Colored b/ strong text in postbody
SLGray wrote:If I understand what you want, I believe you will need a JavaScript to get the ID for each group that you want to have this ability. You want that each group when posting bold text that it would be the color of the group, correct?
Yes, correct. If it is the only way to have a coloured bold text by a colour of the group in ModernBB then I'll need a JS.
Re: Colored b/ strong text in postbody
i have not seen any scripts about this so i guess you have to wait for a member with javascript skills to answer your request
Last edited by skouliki on April 3rd 2022, 11:24 am; edited 1 time in total
the60s likes this post
Re: Colored b/ strong text in postbody
Coucou,
I saw @Ape tagged me ^^
So if I well understood, you would like that the bold text of an user becomes of the same color of his/her username?
For example Ape's bold text would be red, skouliki's bold text would be green, etc...? Is this what you mean?
Let me know
I saw @Ape tagged me ^^
So if I well understood, you would like that the bold text of an user becomes of the same color of his/her username?
For example Ape's bold text would be red, skouliki's bold text would be green, etc...? Is this what you mean?
Let me know
TonnyKamper and the60s like this post
Re: Colored b/ strong text in postbody
Niko wrote:Coucou,
I saw @Ape tagged me ^^
So if I well understood, you would like that the bold text of an user becomes of the same color of his/her username?
For example Ape's bold text would be red, skouliki's bold text would be green, etc...? Is this what you mean?
Let me know
Hello! Yes, indeed this is what I meant
Re: Colored b/ strong text in postbody
@the60s Sorry for the question, Maybe I haven't properly read the previous messages... but haven't you already achieved the result?
Cause I see the bold text colored according to the username color, and this script added to your forum:
Am I missing something?
Cause I see the bold text colored according to the username color, and this script added to your forum:
- Code:
$(function(){
groupMod('#20A896','Grupa1Group');
function groupMod(color,classname){
$('.post:has(span[style="color:'+color+'"] strong)').addClass(classname);
}
});
Am I missing something?
skouliki and TonnyKamper like this post
Similar topics
» 2 Colored text?
» How To Get Colored Text In A Chart
» How do I make different colored text (see pic)
» HTML Colored text will not show.
» pics & colored text not displayed but see HTML code
» How To Get Colored Text In A Chart
» How do I make different colored text (see pic)
» HTML Colored text will not show.
» pics & colored text not displayed but see HTML code
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum