• 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.

[ozzy47] Postbit Background For Specific Users

Admin

Well-Known Member
Staff member
Administrator
Hi all !!

Here is a small modification you can do to have a different background in the postbit, set to specific users, in postbit legacy.

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:
/* Specific Users Postbit Background */
.postbitlegacy .postbit_specific_user 
{
    float:{vb:stylevar left};
    position: relative;
    width:{vb:math {vb:stylevar postbitlegacy_userinfo_width}-{vb:math {vb:stylevar padding}*2}}; 
    padding: 2px {vb:stylevar padding} {vb:math {vb:stylevar padding}/2};
    font-size: {vb:stylevar small_fontSize};
    display:block;
    background: url(images/[COLOR=Red]chain_gradient.jpg[/COLOR]); no-repeat;
    clear:both;
}

.postbitlegacy .postbit_specific_user .rank, .postbitlegacy .postbit_specific_user .usertitle 
{
    font-size: {vb:stylevar small_fontSize};
    display:block;
    clear:both;
}

.postbitlegacy .postbit_specific_user .username_container 
{
    margin-bottom: 8px;
}


.postbitlegacy .postbit_specific_user .username_container .memberaction 
{
    display: inline;
}

.postbitlegacy .postbit_specific_user .postuseravatar, .eventbit .postbit_specific_user .eventuseravatar 
{
    display:block;
    margin:{vb:math {vb:stylevar padding}/3} auto 0;
    text-align:{vb:stylevar left};
    width: auto;
    float: {vb:stylevar left};
    clear: both;
}

.postbitlegacy .postbit_specific_user .postuseravatar img, .eventbit .postbit_specific_user .eventuseravatar img 
{
     max-width: {vb:math {vb:stylevar postbitlegacy_userinfo_width} - {vb:math {vb:stylevar padding}*2}};
}

.postbitlegacy .postbit_specific_user a.username, .eventbit .postbit_specific_user a.username 
{
    clear:{vb:stylevar right};
    font-size:{vb:stylevar font.fontSize}{vb:stylevar font.units};
    font-weight:bold;
    width: auto;
    max-width:{vb:math {vb:stylevar postbitlegacy_userinfo_width} - {vb:math {vb:stylevar padding}*2} - 20px};
    word-wrap:break-word;
}

.postbitlegacy .postbit_specific_user .guest.username, .eventbit .postbit_specific_user .guest.username 
{
    padding-top: {vb:math {vb:stylevar padding}/2};
    display:block;
    font-size: {vb:stylevar font.fontSize}{vb:stylevar font.units};
}
/* Specific Users Postbit Background */
Then click on Save.

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

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

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="userinfo">
And replace it with this code:
Code:
        <vb:if condition="in_array($post['userid'], array([COLOR=Red]X[/COLOR],[COLOR=Red]X[/COLOR],[COLOR=Red]X[/COLOR]))">
                        <div class="postbit_specific_user">
                <vb:else />
                        <div class="userinfo">
                </vb:if>
Replacing the X with the userid's you want to have the different background. You can add as many users 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 [ozzy47] Ignore User In Postbit Dropdown Menu Add-ons 1
Admin [ozzy47] Social Media Icon Links In NavBar Add-ons 0
Admin [ozzy47] Extra Mod Options In Member Action Dropdown Add-ons 0
Admin [ozzy47] Default Profile Tab Add-ons 0
Admin [ozzy47] Extended Search Links In Navbar Add-ons 1
Admin [ozzy47] Usergroups Excluded From Character Limits Vbb tutorial 1
Admin [ozzy47] Post New Thread Button In Posts Add-ons 1
Admin [ozzy47] Post Body Background For Specific Users Vbb tutorial 0
Admin [ozzy47] VSa - ChatBox Show Active Users Addon Vbb tutorial 0
Admin [ozzy47] Separate Sticky Threads Add-ons 0
Admin [ozzy47] Site Links Block In WGO Add-ons 0
Admin [ozzy47] Homeland Security Terror Alert Widget Vbb tutorial 0
Admin [ozzy47] Homeland Security Terror Alert Sideblock Vbb tutorial 0
Admin [ozzy47] Affiliate/Partner Block In WGO Add-ons 0
Admin [ozzy47] Attachment Stats in WGO Add-ons 0
Admin DRC - User must verify their site (prevent spam links in postbit & profiles) Vbb tutorial 0
Admin Yilmaz - Horizontal Postbit vB5 Add-ons 0
Admin Yilmaz - Postbit Background Usergroups vBulletin 5.x Add-ons 0
Admin Yilmaz - Easy Postbit User Information Settings vBulletin 3.8.x Add-ons 0
Admin Auto-Postbit Selector for Mobile Browsers vBulletin 4.x Vbulletin 0
Admin Cel Display Usergroups on Member Profile or in Postbit Add-ons 0
Admin [OzzModz] Add As Friend In Postbit Add-ons 0
Admin [DBTech] Original Poster In Postbit v1 (vB4) Add-ons 0
Admin Gender icon beside nickname in Postbit Vbulletin 0
Admin How to reduce space in postbit Vbb tutorial 0
Admin [vB5] User Profile Fields in the postbit templates Vbb tutorial 0
Admin Postbit legacy Add-ons 0
Admin Yilmaz - Postbit Font Size Add-ons 0
Admin Thread Starter Image in Postbit for OP Add-ons 0
djdungcuty Hướng dẫn làm đẹp postbit cho JohnCMS Johncms 1
H Xin Câu xin admin edit giup em cai code postbit nay Vbulletin 0
Admin Firstpost postbit display in thread Xenforo 0
Admin Postbit thet looks like the postbit on vBulletin 5 (legacy only) Add-ons 0
T Hướng dẫn Edit User link in postbit UserName popup menu Vbulletin 0
K "[AJAX] Post Thank You Hack 7.83" và cách đóng khung cho Mod trong Postbit Add-ons 0
Admin Hướng dẫn chuyển postbit_legacy thành postbit cho xenforo Xenforo 0
Admin Horizontal Postbit for vbb5 Add-ons 0
Admin Postbit Social Network Icons Vbulletin 0
Admin Edit User link in postbit UserName popup menu Add-ons 0
Z Help Cần người làm giúp mình cái postbit Vbulletin 0
Admin Hướng dẫn đóng khung nút thanks trong postbit Vbulletin 7
Admin Share vt.Lai VBB Warning In Postbit 1.3 - Viết cảnh báo ngay tại bài viết Add-ons 0
Admin Hướng dẫn thêm nút report vào postbit hoặc postbit_legacy Vbulletin 0
Admin Share background trung thu corel - Đêm hội trăng rằm corel - Mid autumn corel Thiết kế đồ họa 0
Admin Different Post Body Background For Admin And Mods Vbb tutorial 0
Admin CSS Background Images Vbb tutorial 0
Admin Change Background Color for Specific Forums on Homepage Add-ons 0
Admin Hướng dẫn sử dụng 1 hình ảnh làm background cho toàn trang web HTML & CSS 0

Similar threads

New posts New threads New resources

Back
Top