MyBB Tutorials

Color All Post Backgrounds of a Usergroup

Submitted by Blowjob, , Thread ID: 627

Thread Closed

RE: Color All Post Backgrounds of a Usergroup

OP
#11
01-02-2015, 10:37 PM
AndresXZ09 Wrote:
01-02-2015, 08:28 PM
Hug Wrote:
01-02-2015, 10:31 AM
Vstrech Wrote:
This is nice and all but I use this

<span style="background: url(http://i.imgur.com/7F70N.gif) no-repeat scroll 0% 0% transparent; color: red; text-shadow: 0px 0px 5px rgb(70, 135, 134);">{username}</span>

I don't recommend that but yeah you can use it if you want

Hug can you tell me what is the code for multiple user groups?

if you're group uid is 6 then add .post6 { background: #FDB5FF; } to you're CSS.

if its 71 then add .post71 { background: #FDB5FF; } to you're CSS... ecte :8

RE: Color All Post Backgrounds of a Usergroup

#12
Is there a way to do it on the theme forumkorner?

There is not the line to change.

The templates are:

Postbit: http://pastebin.com/ZyfENxdR
Postbit Classic: http://pastebin.com/VN17czgx

Hope you can help me out

RE: Color All Post Backgrounds of a Usergroup

#13
05-02-2015, 12:52 AM
AndresXZ09 Wrote:
Is there a way to do it on the theme forumkorner?

There is not the line to change.

The templates are:

Postbit: http://pastebin.com/ZyfENxdR
Postbit Classic: http://pastebin.com/VN17czgx

Hope you can help me out

Didn't test it, just looked at it.
Try to replace:

Code:
<div class="post_body scaleimages" id="pid_{$post['pid']}">

With:

Code:
<div class="post_body scaleimages post{$usergroup['gid']}" id="pid_{$post['pid']}">

RE: Color All Post Backgrounds of a Usergroup

#14
05-02-2015, 03:53 AM
linkz Wrote:
05-02-2015, 12:52 AM
AndresXZ09 Wrote:
Is there a way to do it on the theme forumkorner?

There is not the line to change.

The templates are:

Postbit: http://pastebin.com/ZyfENxdR
Postbit Classic: http://pastebin.com/VN17czgx

Hope you can help me out

Didn't test it, just looked at it.
Try to replace:


Code:
<div class="post_body scaleimages" id="pid_{$post['pid']}">

With:


Code:
<div class="post_body scaleimages post{$usergroup['gid']}" id="pid_{$post['pid']}">

Sadly, it doesn't works :noh:

RE: Color All Post Backgrounds of a Usergroup

OP
#15
06-02-2015, 10:29 PM
PanInferno Wrote:
This is awesome, i will add this to my forum :D

Your welcome

Users browsing this thread: 1 Guest(s)