Color All Post Backgrounds of a Usergroup
#27
(2016-11-29, 05:15 PM)Zaqre Wrote: Does this not work for 1.8.8? I've looked at 3 different themes and they all are missing <td blablabla> they only have <div bla babla>


Try this:

Add to your global.css
/** Staff Post Post BG Colors Post **/

.staff_post3 { 
  background: #E6E8FA !important; 
}
.staff_post4 { 
  background: #E6E8FA !important; 
}
.staff_post6 { 
  background: #E6E8FA !important; 
}

/** Staff Post BG Colors Head and Foot **/

.staff_post_bg3 { 
  background:  #F9E5F9 !important; 
}
.staff_post_bg4 { 
  background:  #DEEFB7 !important; 
}
.staff_post_bg6 { 
  background-color: #DEEF75 !important; 
}

Replace postbit with:

{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post staff_post{$usergroup['gid']} {$unapproved_shade}" style="{$post_visibility}" id="staff_post_{$post['pid']}">
 <div class="post_author staff_post_bg{$usergroup['gid']}">
    {$post['useravatar']}
    <div class="author_information">
            <strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
            <span class="smalltext">
                {$post['usertitle']}<br />
                {$post['userstars']}
                {$post['groupimage']}
            </span>
    </div>
    <div class="author_statistics">
        {$post['user_details']}
    </div>
</div>
<div class="post_content">
    <div class="post_head">
        {$post['posturl']}
        {$post['icon']}
        <span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
        {$post['subject_extra']}
    </div>
    <div class="post_body scaleimages" id="pid_{$post['pid']}">
        {$post['message']}
    </div>
    {$post['attachments']}
    {$post['signature']}
    <div class="post_meta" id="post_meta_{$post['pid']}">
        {$post['quick_quote']}{$post['iplogged']}
    </div>
</div>
<div class="post_controls staff_post_bg{$usergroup['gid']}">
    <div class="postbit_buttons author_buttons float_left">
        {$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
    </div>
    <div class="postbit_buttons post_management_buttons float_right">
        {$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
    </div>
</div>
</div>


Replace postbit_classic with:

{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post classic  staff_post{$usergroup['gid']} {$unapproved_shade}" style="{$post_visibility}" id="staff_post_{$post['pid']}">
 <div class="post_author scaleimages staff_post_bg{$usergroup['gid']}">
    {$post['useravatar']}
    <div class="author_information">
            <strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
            <span class="smalltext">
                {$post['usertitle']}<br />
                {$post['userstars']}
                {$post['groupimage']}
            </span>
    </div>
    <div class="author_statistics">
        {$post['user_details']}{$post['usercountry']}<br />{$post['usermood']}
    </div>
</div>
<div class="post_content">
    <div class="post_head">
        {$post['posturl']}
        {$post['icon']}
        <span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
    {$post['subject_extra']}
    </div>
    <div class="post_body post{$usergroup['gid']} scaleimages" id="pid_{$post['pid']}">
        {$post['message']}
    </div>
{$post['simplelikes']}
    {$post['attachments']}
    {$post['signature']}
    <div class="post_meta" id="post_meta_{$post['pid']}">
        
    </div>
</div>
<div class="post_controls staff_post_bg{$usergroup['gid']}">
    <div class="postbit_buttons author_buttons float_left">
            {$post['quick_quote']}
        {$post['quick_quote']}
        {$post['quick_quote']}
    {$post['iplogged']}{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
    </div>
    <div class="postbit_buttons post_management_buttons float_right">
        {$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}{$post['button_like']}
    </div>
</div>
</div>
* This allows the option to color  2 different colors for 3 sections of the post by user group.


Classic Postbit example:

[Image: 35d6idc.png]


Postbit Example:

[Image: spuidt.jpg]



OR.........

If you want to control all three sections seperately..., we can change it up slightly to do so:

/** Staff Post BG Colors Head and Foot **/

.staff_post_head_bg3 { background:  #F9E5F9 !important; }
.staff_post_head_bg4 { background:  #DEEFB7 !important; }
.staff_post_head_bg6 { background-color: #DEEF75 !important; }

/** Staff Post Post BG Colors Post **/

.staff_post_bg3 { background: #E6E8FA !important; }
.staff_post_bg4 { background: #E6E8FA !important; }
.staff_post_bg6 { background: #E6E8FA !important; }

/** Staff Post BG Colors Head and Foot **/

.staff_post_foot_bg3 { background:  #F9E5F9 !important; }
.staff_post_foot_bg4 { background:  #DEEFB7 !important; }
.staff_post_foot_bg6 { background-color: #DEEF75 !important; }



Replace your postbit with:

{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post staff_post_bg{$usergroup['gid']} {$unapproved_shade}" style="{$post_visibility}" id="staff_post_bg{$post['pid']}">
 <div class="post_author staff_post_head_bg{$usergroup['gid']}">
    {$post['useravatar']}
    <div class="author_information">
            <strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
            <span class="smalltext">
                {$post['usertitle']}<br />
                {$post['userstars']}
                {$post['groupimage']}
            </span>
    </div>
    <div class="author_statistics">
        {$post['user_details']}
    </div>
</div>
<div class="post_content">
    <div class="post_head">
        {$post['posturl']}
        {$post['icon']}
        <span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
        {$post['subject_extra']}
    </div>
    <div class="post_body scaleimages" id="pid_{$post['pid']}">
        {$post['message']}
    </div>
    {$post['attachments']}
    {$post['signature']}
    <div class="post_meta" id="post_meta_{$post['pid']}">
        {$post['quick_quote']}{$post['iplogged']}
    </div>
</div>
<div class="post_controls staff_post_foot_bg{$usergroup['gid']}">
    <div class="postbit_buttons author_buttons float_left">
        {$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
    </div>
    <div class="postbit_buttons post_management_buttons float_right">
        {$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
    </div>
</div>
</div>

replace your postbit_classic with:

{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post classic  staff_post_bg{$usergroup['gid']} {$unapproved_shade}" style="{$post_visibility}" id="staff_post_bg{$post['pid']}">
 <div class="post_author scaleimages staff_post_head_bg{$usergroup['gid']}">
    {$post['useravatar']}
    <div class="author_information">
            <strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
            <span class="smalltext">
                {$post['usertitle']}<br />
                {$post['userstars']}
                {$post['groupimage']}
            </span>
    </div>
    <div class="author_statistics">
        {$post['user_details']}{$post['usercountry']}<br />{$post['usermood']}
    </div>
</div>
<div class="post_content">
    <div class="post_head">
        {$post['posturl']}
        {$post['icon']}
        <span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
    {$post['subject_extra']}
    </div>
    <div class="post_body post{$usergroup['gid']} scaleimages" id="pid_{$post['pid']}">
        {$post['message']}
    </div>
{$post['simplelikes']}
    {$post['attachments']}
    {$post['signature']}
    <div class="post_meta" id="post_meta_{$post['pid']}">
        
    </div>
</div>
<div class="post_controls staff_post_foot_bg{$usergroup['gid']}">
    <div class="postbit_buttons author_buttons float_left">
            {$post['quick_quote']}
        {$post['quick_quote']}
        {$post['quick_quote']}
    {$post['iplogged']}{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
    </div>
    <div class="postbit_buttons post_management_buttons float_right">
        {$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}{$post['button_like']}
    </div>
</div>
</div>
* This allows the option to color 3 different colors for 3 sections of the post by user group.
Reply


Messages In This Thread
RE: Color All Post Backgrounds of a Usergroup - by User 6029 - 2016-11-29, 08:45 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)