The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Postbit Legacy - Usergroup Backgrounds vb4 Details »» | |||||||||||||||||||||||||||||
Postbit Legacy - Usergroup Backgrounds vb4
Developer Last Online: Jan 2012
Updated for vBulletin 4.0.1!!!!
Hey Everyone! I went ahead and updated my vb3.x.x mod to work with the new coding in vBulletin 4. There are a few more modifications to make than the last time, but overall, I think you will find this very easy. To start, let's look at a screenshot of what this mod will do for you, it's the image behind the username and the posbit information. This will not do anything else but assign a special background to the specified usergroup and assign the regular styling to all other usergroups: DEMO: http://ltxtech.com/forums/showthread...or-New-Upgrade Now that you have decided to continue with the modification, let's begin! Navigate to: Style Manager --> Click on the << >> Next to the template you are editing -->CSS Templates postbit.css FIND: Code:
.postbitlegacy .userinfo { 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: {vb:stylevar postbit_userinfo_background}; _background-image: none; _margin-top: -{vb:math {vb:math 16px*{vb:stylevar line_height}} + {vb:stylevar padding}-{vb:stylevar postbit_border.borderWidth}}; clear:both; } Code:
/*Custom Postbit Background - Image*/ .postbitlegacy .userinfo2 { 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: #xxxxxx /*url(url to image here) no-repeat*/; _margin-top: -{vb:math {vb:math 16px*{vb:stylevar line_height}} + {vb:stylevar padding}-{vb:stylevar postbit_border.borderWidth}}; clear:both; } FIND: Code:
.postbitlegacy .userinfo .postuseravatar img, .eventbit userinfo .eventuseravatar img { border: {vb:stylevar postbitlegacy_avatar_border}; outline: {vb:stylevar postbitlegacy_avatar_outline}; max-width: {vb:math {vb:stylevar postbitlegacy_userinfo_width} - {vb:math {vb:stylevar padding}*2}- {vb:math {vb:stylevar postbitlegacy_avatar_outline.borderWidth}*2} - {vb:math {vb:stylevar postbitlegacy_avatar_border.borderWidth}*2}}; } Code:
/*Custom Postbit Background - Avatar Border*/ .postbitlegacy .userinfo2 .postuseravatar img, .eventbit userinfo .eventuseravatar img { border: {vb:stylevar postbitlegacy_avatar_border}; outline: {vb:stylevar postbitlegacy_avatar_outline}; max-width: {vb:math {vb:stylevar postbitlegacy_userinfo_width} - {vb:math {vb:stylevar padding}*2}- {vb:math {vb:stylevar postbitlegacy_avatar_outline.borderWidth}*2} - {vb:math {vb:stylevar postbitlegacy_avatar_border.borderWidth}*2}}; } Code:
.postbitlegacy .userinfo a.username, .eventbit .userinfo a.username { clear:right; font-size:21px; font-weight:none; width: auto; max-width:{vb:math {vb:stylevar postbitlegacy_userinfo_width} - {vb:math {vb:stylevar padding}*2} - 20px}; word-wrap:break-word; } Code:
/*Custom Postbit Background - Username Style*/ .postbitlegacy .userinfo2 a.username, .eventbit .userinfo a.username { clear:right; font-size:21px; font-weight:none; width: auto; max-width:{vb:math {vb:stylevar postbitlegacy_userinfo_width} - {vb:math {vb:stylevar padding}*2} - 20px}; word-wrap:break-word; } Code:
.postbitlegacy .userinfo .postuseravatar, .eventbit .userinfo .eventuseravatar { display:block; margin:{vb:math {vb:stylevar padding}/3} auto 0; text-align:center; width: auto; } Code:
/*Custom Postbit Background - Avatar Position*/ .postbitlegacy .userinfo2 .postuseravatar, .eventbit .userinfo .eventuseravatar { display:block; margin:{vb:math {vb:stylevar padding}/3} auto 0; text-align:center; width: auto; } Code:
.postbitlegacy dl.userinfo_extra dt, .postbitlegacy dl.user_rep dt { float: {vb:stylevar left}; text-align: {vb:stylevar left}; /*color: {vb:stylevar shade_color};*/ margin-{vb:stylevar right}: {vb:stylevar padding}; margin-{vb:stylevar left}: 0; min-width:60px; width:auto !important; width:60px; } /*Custom Postbit Background - Userinfo Alignment*/ Code:
.postbitlegacy dl.userinfo_extra2 dt, .postbitlegacy dl.user_rep dt { float: {vb:stylevar left}; text-align: {vb:stylevar left}; /*color: {vb:stylevar shade_color};*/ margin-{vb:stylevar right}: {vb:stylevar padding}; margin-{vb:stylevar left}: 0; min-width:60px; width:auto !important; width:60px; } Navigate to: Style Manager --> Click on the << >> Next to the template you are editing -->Postbit Templates postbit_legacy: FIND: Code:
<div class="userinfo"> Code:
<vb:if condition="is_member_of($post, #)"><div class="userinfo2"> <vb:else /> <div class="userinfo"> </vb:if> Code:
<dl class="userinfo_extra"> Code:
<vb:if condition="is_member_of($post, #)"><dl class="userinfo_extra2"> <vb:else /> <dl class="userinfo_extra"> </vb:if> All right! You should now have a styled postbit legacy background image for a specific usergroup! I can't really provide support, I'm extremely busy with work and life, but if I pop in from time to time I'll try to help. Also, please, please, please create your own background image. I do not want my image being used. If you would like to setup the modification and use my image to get it up and running, that's fine. But I am asking that you create your own after it's installed properly. Good luck guys! Screenshots
Supporters / CoAuthors Show Your Support
|
Comments |
#42
|
|||
|
|||
the .css added messes with the center postbit addon and doesn't seem to work. Any ideas?
I added this, but it still doesn't center my Administrator title. The join date or posts. Code:
.postbitlegacy .userinfo2 .postuseravatar, .eventbit .userinfo2 .eventuseravatar { float:none !important; text-align:center !important; } .postbitlegacy .userinfo2 .username_container, .postbit_reputation, .postbitlegacy .userinfo2 .rank, .postbitlegacy .userinfo2 .usertitle { text-align:center !important; } |
#43
|
||||
|
||||
Quote:
If you want to center your username and title, you need to do that in the actual postbit_legacy template. |
#44
|
|||
|
|||
This is a nice add-on,...
It would absalutely ROCK if it could be enhanced by having a edit feature for each persons usercp so they could select their own background color/image independantly. With usergroup permission settings of course. |
#45
|
||||
|
||||
That would be quite the undertaking, but yeah would be very cool.
|
#46
|
|||
|
|||
I'm trying to automate the selection of the background images based on two profile fields the users selects. I was able to do this in the 3.8 version with this code:
Code:
<if condition="$post[field#] == 'Option'"> <elseif condition="$post[field#] == 'Option'"> <td class="postbitbg7" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]"> <else /> I would like to be able to do this same thing on vB4 now. However, the vastly increased amount of code has put this beyond me. I would not need the size/border coding as above, I've got it working and looking good with the current code (based on usergroups, not fields like I would like) Can anyone help with this? Thanks in advance, Keith |
#47
|
|||
|
|||
it says adding child to non-existent node! im on vb 4.1.2
|
#48
|
|||
|
|||
my image just cuts out when it reaches the end of the users info so straight after POSTS the image stops and does not use up all of the postbit legacy
im on vbulletin 4.1.3 could someone please help me with the problem cheers I can provide pictures if needed |
#49
|
|||
|
|||
sorry guys here is an image of mine and im stuck where the red box is thats where it cuts off i would like the colour to go all the way to the bottom of the postbit
please help any help is much appreciated thanks in advance |
#50
|
||||
|
||||
Thank you ... can you update it for 4.1.3
|
#51
|
|||
|
|||
yer please update for 4.1.3
Thank you |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|