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
Add this to showthread.css then it works:
/* post content backgound color for usergroup 4 */
.post_4 {
background: yellow;
}

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

/*etc */

[attachment=33510]
(2015-01-13, 10:36 PM)SvePu Wrote: [ -> ]-post-

Still not working Sad

[Image: 3f6df8785451f0ca6364f2c48fc7d1d6.png]
This Style is for usergroup 1 - that are guests, right

Is it guests allowed to write posts?
(2015-01-13, 10:48 PM)SvePu Wrote: [ -> ]This Style is for usergroup 1 - that are guests, right

Is it guests allowed to write posts?

Bare in mind, I'm incredibly new to all of this, how do I know the user group numbers?
(2015-01-13, 11:00 PM)iAmPandi Wrote: [ -> ]
(2015-01-13, 10:48 PM)SvePu Wrote: [ -> ]This Style is for usergroup 1 - that are guests, right

Is it guests allowed to write posts?

Bare in mind, I'm incredibly new to all of this, how do I know the user group numbers?

admin cp> users and groups> groups > click on a group and then look at the end of the link
(2015-01-13, 11:11 PM)Patchy the Pirate Wrote: [ -> ]
(2015-01-13, 11:00 PM)iAmPandi Wrote: [ -> ]
(2015-01-13, 10:48 PM)SvePu Wrote: [ -> ]This Style is for usergroup 1 - that are guests, right

Is it guests allowed to write posts?

Bare in mind, I'm incredibly new to all of this, how do I know the user group numbers?

admin cp> users and groups> groups > click on a group and then look at the end of the link

Thank you guys, it's working Big Grin
MyBB 1.8 default user groups:
  • Guests = user group ID 1
  • Registered = user group ID 2
  • Super Moderators = user group ID 3
  • Administrators = user group ID 4
  • Awaiting Activation = user group ID 5
  • Moderators = user group ID 6
  • Banned= user group ID 7
One last question, do you know how I can fade/turn down opacity on the background colour?
(2015-01-13, 11:20 PM)iAmPandi Wrote: [ -> ]One last question, do you know how I can fade/turn down opacity on the background colour?

You could use rgba color codes instead of hex colors

e.g.: red (#ff0000) with 50% opacity = rgba(255, 0, 0, 0.5)
Pages: 1 2 3 4 5