• 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

Similar threads
Thread starter Title Forum Replies Date
Admin 15 different MASK style avatars collection by ITD Vbulletin 1
Admin Custom fonts for different usergroups Vbb tutorial 0
Admin Giữ nguyên giá trị khi gửi form php - keep form values after post php PHP 0
Admin Not Your Average Adblock Detecting Mod (hide images in post) Add-ons 0
Admin [OzzModz] Post Number BBCode Xenforo 0
Admin Yilmaz - Post New Thread Button To Showthread vB5 Add-ons 0
Admin [OzzModz] Link To Moderator That Last Edited The Post Xenforo 0
Admin Yilmaz - [hide] Hack incl post Like (Compatible 5.6.x) Add-ons 0
Admin [OzzModz] Move Edit Post Before Report Xenforo 0
Admin German translation for [OzzModz] Email Staff When New Post/Thread In Mod Queue Xenforo 0
Admin Post Flood Permissions xenforo 2 Xenforo 0
Admin [thread] and [post] BBCode xenforo 2 Xenforo 0
khanhsak3r Hỏi Căn lề 2 bên khi post bài trên johncms Johncms 0
Admin [XenMax] - Limit Post Link 2.0.0 Xenforo 0
cuongpro9x Help Lỗi Link khi custom post type Wordpress 1
Lee_Jin Share filelist post bằng 2 file tránh timeout Wap builder, wapego, xtgem, wen.ru, wapka, wap4 2
P Hỏi PHP Post ID cần thêm chức năng limit time PHP 2
K Hỏi Curl Cách Post nội dung PHP 4
Admin Display Postid (post count) Vbb tutorial 0
Admin Post Quote Length Limit (vB5) Vbb tutorial 0
Admin Advanced Report Post Management System Add-ons 0
Admin Can't download other attachments Before x post Add-ons 0
Admin [OzzModz] Hide Quote Buttons In Last Post Add-ons 0
Admin [OzzModz] First Post On All Pages Per Thread/Forum Add-ons 0
Admin [OzzModz] Welcome Thread / Post For New Users Add-ons 0
Admin Hướng dẫn thu gọn ajax post thank you hack Vbb tutorial 0
Admin [OzzModz] Minimum Post Count To Post Blogs Add-ons 0
Admin [OzzModz] Post Icons Per Row Add-ons 0
D Share Hướng dẫn tạo cấu trúc php sửdụng hàm GET hoặc POST All Shared Scripts 0
Admin [ozzy47] Post New Thread Button In Posts Add-ons 1
Admin [ozzy47] Post Body Background For Specific Users Vbb tutorial 0
T Tổng hợp truyện cười post me hàinhất ola 18-8-2013 Truyện cười 0
Admin vt.Lai Block Bad Word 1.1 | Mod chặn post từ xấu cho Xenforo Xenforo 3
Admin Share code leech và post bài cho blogger Mã nguồn web 1
Admin vt.Lai Block Bad Word 1.0 | Mod chặn post từ xấu cho Xenforo Xenforo 0
Admin Ignored User Post Better Layout Vbulletin 0
Admin Post areas for vbb - thống kê số bài viết trong profile Add-ons 0
Admin Xtra dupecheck - Plugin không cho post 2 bài có tiêu đề giống nhau Wordpress 0
Admin Share plugins và thủ thuật post link youtube cho wordpress không cần dùng embed Wordpress 0
K Share Tool post blog xtgem new All Shared Scripts 0
Admin Quote Post in PM vbb 4.2.0 Add-ons 0
Admin TW7S - Change the look of "Last Post" by Vbb tutorial 0
S Nhờ post bài nhận domain Hosting & Domain Share 6
Admin vBH-Post limit for link Add-ons 6
Admin Share fix lỗi font auto post johncms Johncms 0
Admin New Post since last visit markers Vbb tutorial 0
Admin Share tool post blog xtgem new Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
P Share Hỏi Êvent post 20 topic 1 ngày nhận domain qtế 2y Hỏi đáp về domain & hosting 8
Admin Mid Post Ads Add-ons 3
Admin Having Music Player in post with BBcode (Hope You Enjoy) Vbb tutorial 0

Similar threads

New posts New threads New resources

Back
Top