![]() |
Postbit Legacy - Usergroup Backgrounds vb4
1 Attachment(s)
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 { Code:
/*Custom Postbit Background - Image*/ FIND: Code:
.postbitlegacy .userinfo .postuseravatar img, .eventbit userinfo .eventuseravatar img { Code:
/*Custom Postbit Background - Avatar Border*/ Code:
.postbitlegacy .userinfo a.username, .eventbit .userinfo a.username { Code:
/*Custom Postbit Background - Username Style*/ Code:
.postbitlegacy .userinfo .postuseravatar, .eventbit .userinfo .eventuseravatar { Code:
/*Custom Postbit Background - Avatar Position*/ Code:
.postbitlegacy dl.userinfo_extra dt, .postbitlegacy dl.user_rep dt { /*Custom Postbit Background - Userinfo Alignment*/ Code:
.postbitlegacy dl.userinfo_extra2 dt, .postbitlegacy dl.user_rep dt { 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"> Code:
<dl class="userinfo_extra"> Code:
<vb:if condition="is_member_of($post, #)"><dl class="userinfo_extra2"> 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! |
thanks man
|
nice mod
|
No problem guys! Glad it worked for you and you liked it!
|
Thank you very much
|
|
This hasn't worked right for me, Admin avatars were 150x150px, they've now been resized and lost there transparency, other than that it has worked, but what piece of code handles the avatar width?
I think transparency has been lost due to the image being resized. Edit: I've found the resize code, I've changed this. |
It's ok I've worked it out.
Installed I replaced this Code:
/*Custom Postbit Background - Avatar Border*/ With Code:
/*Custom Postbit Background - Avatar Border*/ |
Is it possible to put a background into more than 1 usergroup?
So I could have a different background for Mods and Vip's. |
It is possible to reduce the message area?
|
It is possible, I'll get it sorted out once I update this mod to work with vb4 PL2, because right now I guarantee that everything will work from beta 4 to the new version.
|
|
Definitely looking forward to this, excellent mod... I was thinking about paying someone to make it a few years back for a site idea I had... but this is just wonderful! Kudos!
|
Very nice and useful indeed...
Thanks. tagged |
Quote:
http://www.hostmypics.org/pictures/d...b3c7acb502.png |
What should the dimensions of the images be in pixels? and If they are smaller than the actual "rectangle" where all the information is under the avatar etc.. is the image placed on the bottom or to the top or to the left or right? Like how is it shifted/placed?
Thanks. |
I think there's something wrong...
Your modification says to find the following: Code:
.postbitlegacy .userinfo { Code:
.postbitlegacy .userinfo { |
I haven't updated this to the newest VB release. This was written on beta 4, so the instructions are only for beta 4.
|
|
Updated for 4.0.1
|
Still have this tagged Fastbird, get it going for 4.0.2 please :up:
|
Ignore me I am a knob, will install :up:
Add: Where does it pull the image from? Looking over code changes, I cant see where the image is extracted from. Is it profile pic? |
Quote:
|
Quote:
Thanks anyhoo :) your code: Code:
background: #xxxxxx /*url(url to image here) no-repeat*/; Code:
background: #ff9900 images/bg.jpg no-repeat; Even tried absolute URL |
Quote:
Code:
background: #ff9900 url(images/bg.jpg) no-repeat; |
I see on your site you used different images for different usergroups, how do I do the same??
|
One usergroup is like this:
Code:
<vb:if condition="is_member_of($post, #)"><dl class="userinfo_extra2"> Code:
<vb:if condition="is_member_of($post, #)"><dl class="userinfo_extra2"> |
It's not possible to make it simpler? Because duplicating css I think shouldnt be necessary if you can somehow do that.
|
Quote:
|
1 Attachment(s)
Thnx i will install this soon! but how do you get your postbit look like that???
|
can i add two or more usergroup ids?
|
Quote:
|
Is it possible to have this linked to custom user fields instead of usergroups?
eg: I want people to select their favorite sporting team and have a background of that sporting team display. |
Quote:
Quote:
http://img340.imageshack.us/img340/9...background.jpg |
Uninstalled until clearer instructions are provided for separate bg postbit images for multiple usergroups or my knowledge increases to where my forum isn't being screwed up with each attempt.
Moving on.... |
is this still working for 4.0.7??
|
for 4.0.7
|
Quote:
:confused: |
1 Attachment(s)
Well, the background is working.
But it has thrown my post bit kind of out of whack. Okay, got it going. Thank you for the mod! :) |
sweeet gotta try this now.
|
All times are GMT. The time now is 04:15 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|