Change admin post layout
#4
(2020-01-31, 09:15 AM)TheRazvy Wrote: Hello,

a simple request (not sure if possible or not).
Is it possible to change post formatting (background color/font color) of posts made by admin?

In practice... everytime Admin create/reply a topic, his posts will appear different from other posts/reply... automatically.

Is there any trick/php-modification to make this?


I saw that in phpbb3 you can, I guess it can be done here but I don't know how.


You could use my Group Post CSS plugin like .m. suggested or if you don't want a plugin and would like a manual way to do so, you can use one of my old instructions to do this also like so:



add to global.css

/** Staff Post BG Colors by GID by: Vintagedaddyo **/

/** Staff Post BG Colors Head **/

.staff_post_head_bg3 {
    background: #F9E5F9 !important;
}

.staff_post_head_bg4 {
    background: #DEEFB7 !important;
}

.staff_post_head_bg6 {
    background-color: #DEEF75 !important;
}

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

.staff_post_foot_bg3 {
    background: #F9E5F9 !important;
}

.staff_post_foot_bg4 {
    background: #DEEFB7 !important;
}

.staff_post_foot_bg6 {
    background-color: #DEEF75 !important;
}

in postbit template find:

<div class="post {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">

change to:

<div class="post staff_post_bg{$usergroup['gid']} {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">

still in postbit template find:

<div class="post_author">

change to:

<div class="post_author staff_post_head_bg{$usergroup['gid']}">

still in posbit template find:

<div class="post_controls">

change to:

<div class="post_controls staff_post_foot_bg{$usergroup['gid']}">

in posbit_classic template find:

<div class="post classic {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">

change to:

<div class="post classic  staff_post_bg{$usergroup['gid']} {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">

in posbit_classic template find:

<div class="post_author scaleimages">

change to:

<div class="post_author scaleimages staff_post_head_bg{$usergroup['gid']}">

in posbit_classic template find:

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

change to:

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

in posbit_classic template find:

<div class="post_controls">

change to:

<div class="post_controls staff_post_foot_bg{$usergroup['gid']}">

MyBB default staff "gids" are:

 
 [ 3 ] _ Super Moderators
 [ 4 ] _ Administrators
 [ 6 ] _ Moderators
Reply


Messages In This Thread
Change admin post layout - by TheRazvy - 2020-01-31, 09:15 AM
RE: Change admin post layout - by .m. - 2020-01-31, 09:50 AM
RE: Change admin post layout - by TheRazvy - 2020-01-31, 10:18 AM
RE: Change admin post layout - by User 6029 - 2020-01-31, 11:09 AM
RE: Change admin post layout - by TheRazvy - 2020-01-31, 04:25 PM
RE: Change admin post layout - by User 6029 - 2020-02-01, 12:20 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)