MyBB Community Forums

Full Version: Add colours to background post of user groups
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
You can also change the whole post content color like here in forum.

Search in theme postbit/postbit_classic template:
<div class="post_content>

Replace all with:
<div class="post_content post_{$usergroup['gid']}">

Save changes!

Also add to theme showthread.css your desired color changes like:
/* post content backgound color for usergroup 4 */
.post_content.post_4 {
background: yellow;
}

/* post content backgound color for usergroup 2 */
.post_content.post_2 {
background: lime;
}

/*etc */
(2015-01-13, 07:38 PM)SvePu Wrote: [ -> ]You can also change the whole post content color like here in forum.

Search in theme postbit/postbit_classic template:

<div class="post_content>

Replace all with:

<div class="post_content post_{$usergroup['gid']}">

Save changes!

Also add to theme showtread.css your desired color changes like:

/* post content backgound color for usergroup 4 */
.post_content.post_4 {
background: yellow;
}

/* post content backgound color for usergroup 2 */
.post_content.post_2 {
background: lime;
}

/*etc */

Just tried it and it didn't work Sad

Thanks though.
I've tested it before posting - it works! Wink

[attachment=33507] [attachment=33508]
(2015-01-13, 08:11 PM)SvePu Wrote: [ -> ]I've tested it before posting - it works! Wink

Not for me Sad

[Image: 6ebac96db235794207bdc5c7c1d8ac33.png]

[Image: 5039867cd2c5fd374b2038aff83dfd1a.png]

Is it a posibility that my theme is stopping it from working?
You pasted the css rule on wrong place. - Remove these css changes.

Open theme showthread.css in advanced mode.- Place the posted css code at button of that file and save changes.
(2015-01-13, 09:52 PM)SvePu Wrote: [ -> ]You pasted the css rule on wrong place. - Remove these css changes.

Open theme showthread.css in advanced mode.- Place the posted css code at button of that file and save changes.

You know how to do the WHOLE body (like the postbit details as well)

http://puu.sh/etJux/c25affb47c.jpg
If you want change the background color inclusive bg under user info then open the theme template postbit_classic and search for:
<div class="post classic {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">

Replace the whole line with:
<div class="post classic post_{$usergroup['gid']} {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">

Finally add to theme showthread.css
/* post content backgound color for usergroup 4 */
.post_4 {
background: yellow;
}

/* post content backgound color for usergroup 2 */
.post_2 {
background: lime;
}

/*etc */
(2015-01-13, 10:19 PM)SvePu Wrote: [ -> ]-text-

Already tried that, still didn't work:

[Image: 0b51424e81050537705688cf8fd5406a.png]
Could you post an URL to your forum pls?
(2015-01-13, 10:27 PM)SvePu Wrote: [ -> ]Could you post an URL to your forum pls?

Sure, here it is:

http://www.cragaming.com/
Pages: 1 2 3 4 5