• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Different Post Body Background For Admin And Mods

Admin

Well-Known Member
Staff member
Administrator
Hi all !!

Here is a small modification you can do to have a different background in posts, set to users in your Admin and moderator groups, in postbit legacy.

Meaning, you can have a background in the posts for your admins, and a different one for your mods.

First lets add the css.

Styles & Templates --> Style Manager --> Choose which style you want to work with, then choose Edit Templates,scroll down till you see CSS Templates, double click on that, then double click on additional.css

It that template add the following at the end:
Code:
/* Mod/Admin Post Background */

//For Admins
.postbitlegacy .postbody_admin, .eventbit .eventdetails .eventbody 
{
    margin-{vb:stylevar left}: {vb:stylevar postbitlegacy_userinfo_width};
    border-{vb:stylevar left}: {vb:stylevar postbit_userinfo_border};
    background: url(images/[COLOR=Red]chain_gradient.jpg[/COLOR]); repeat;
    padding-bottom: 1em;
}

//For Mods
.postbitlegacy .postbody_mods, .eventbit .eventdetails .eventbody 
{
    margin-{vb:stylevar left}: {vb:stylevar postbitlegacy_userinfo_width};
    border-{vb:stylevar left}: {vb:stylevar postbit_userinfo_border};
    background: url(images/[COLOR=Red]chain_gradient.jpg[/COLOR]); repeat;
    padding-bottom: 1em;
}
/* Mod/Admin Post Background */
Then click on Save.

Load your background images that you want to use to your images folder. I used the one attached to test on my local machine.

You need to load two images, one for your Admins, and one for your Moderators

Make sure the proper image name is put in the above code, background: url(images/chain_gradient.jpg);

There is two instances of this in the above code, the first one is what the images is for your admins, the second is what the images is for your moderators.

Now for the template edit. In the same style search for Postbit Templates, double click on that and then find postbit_legacy, and double click on that.

In that template find the following bit of code:
Code:
<div class="postbody">
And replace it with this code:
Code:
                <!-- ADMIN GROUPS -->
        <vb:if condition="is_member_of($post, [COLOR=Red]X[/COLOR])">
                        <div class="postbody_admin">
                <!-- MODERATOR GROUPS -->               
        <vb:elseif condition="is_member_of($post,[COLOR=Red] [COLOR=Blue]X[/COLOR][/COLOR],)" />
                        <div class="postbody_mods">
        <vb:else />
                        <div class="postbody">
        </vb:if>
Replacing the X with the group id's of your admin groups, and the X with the group id's of your moderator groups. You can add as many group id's as you want, just as long as you separate each userid with a comma ,

Then click on Save.

I don't have any screenshots at the moment, I'll try to get some. Or if some of you use this mod, please share a screenshot of what you have done.
 

Facebook Comments

New posts New threads New resources

Back
Top