MyBB Community Forums
Add colours to background post of user groups - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Add colours to background post of user groups (/thread-162677.html)

Pages: 1 2 3 4 5


RE: Add colours to background post of user groups - SvePu - 2015-01-13

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 */

   


RE: Add colours to background post of user groups - iAmPandi - 2015-01-13

(2015-01-13, 10:36 PM)SvePu Wrote: -post-

Still not working Sad

[Image: 3f6df8785451f0ca6364f2c48fc7d1d6.png]


RE: Add colours to background post of user groups - SvePu - 2015-01-13

This Style is for usergroup 1 - that are guests, right

Is it guests allowed to write posts?


RE: Add colours to background post of user groups - iAmPandi - 2015-01-13

(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?


RE: Add colours to background post of user groups - Icon - 2015-01-13

(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


RE: Add colours to background post of user groups - iAmPandi - 2015-01-13

(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


RE: Add colours to background post of user groups - SvePu - 2015-01-13

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



RE: Add colours to background post of user groups - iAmPandi - 2015-01-13

One last question, do you know how I can fade/turn down opacity on the background colour?


RE: Add colours to background post of user groups - Icon - 2015-01-13

http://www.w3schools.com/cssref/css3_pr_opacity.asp


RE: Add colours to background post of user groups - SvePu - 2015-01-13

(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)