Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 4 Years, 4 Months ago Add colours to background post of user groups
#11
Solved: 4 Years, 4 Months ago
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 */
Greetings Sven (ps: Sorry for my bad english!!)

My plugins - [email protected]
Reply
#12
Solved: 4 Years, 4 Months ago
(01-13-2015, 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.
Reply
#13
Solved: 4 Years, 4 Months ago
I've tested it before posting - it works! Wink

       
Greetings Sven (ps: Sorry for my bad english!!)

My plugins - [email protected]
Reply
#14
Solved: 4 Years, 4 Months ago
(01-13-2015, 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?
Reply
#15
Solved: 4 Years, 4 Months ago
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.
Greetings Sven (ps: Sorry for my bad english!!)

My plugins - [email protected]
Reply
#16
Solved: 4 Years, 4 Months ago
(01-13-2015, 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
Reply
#17
Solved: 4 Years, 4 Months ago
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 */
Greetings Sven (ps: Sorry for my bad english!!)

My plugins - [email protected]
Reply
#18
Solved: 4 Years, 4 Months ago
(01-13-2015, 10:19 PM)SvePu Wrote: -text-

Already tried that, still didn't work:

[Image: 0b51424e81050537705688cf8fd5406a.png]
Reply
#19
Solved: 4 Years, 4 Months ago
Could you post an URL to your forum pls?
Greetings Sven (ps: Sorry for my bad english!!)

My plugins - [email protected]
Reply
#20
Solved: 4 Years, 4 Months ago
(01-13-2015, 10:27 PM)SvePu Wrote: Could you post an URL to your forum pls?

Sure, here it is:

http://www.cragaming.com/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)