Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Postbit Legacy - Usergroup Backgrounds Details »
Postbit Legacy - Usergroup Backgrounds
Mod Version: 1.00, by Fastbird (Member) Fastbird is offline
Developer Last Online: Jan 2012 I like it Show Printable Version Email this Page

vB Version: 3.8.4 Rating: (8 votes - 4.75 average) Installs: 80
Released: 01 Feb 2009 Last Update: Never Downloads: 32
Not Supported Template Edits Re-usable Code  

Hello! This is my first submission. I run LTXTech.com, I go by phantomzer0 over there, and I wanted this hack for a long time. I decided to write it on my own and the outcome was perfect. I know enough to get the job done, so if there is a more efficient way to produce this, by all means post it up!

Here is what this hack will do for you:

Demo Link:

http://ltxtech.com/forums/showthread.php?t=2865

Now, you can make any usergroups use these backgrounds. You will have to design your own, of course, but you can assign them however you would like. In the case of my forum, we have them set-up for administrators. You could make a separate image for staff members, reg users, banned users, whatever you need. You can also duplicate it and assign different images for different colored styles. I'll show you how below.

Here's how to do it:
-- Navigate to your Admin CP. Once there go to Styles and Templates, then to Style Manager, and then click the "Go" button once you have decided which template you would like to install this on.

-- Scroll all the way to the bottom and look for the "Additional CSS Definitions" Box. I like to use the second box for all of my custom CSS, but you can surely use either one. Copy this and paste it into the box.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Now, the border colors will need to be the same as the colors on your forum. These are the borders I'm talking about:



You will need to figure out the color code of your borders and assign the same color to the CSS code. You can adjust the size of the border by increasing or decreasing the "1px" numbers. 3px would obviously increase the size of the border to 3 pixels. You can also rename the CSS ".postbit" to something else, but if you do make sure you take note of that.

-- Now we will assign the background to the actual postbit. To do so, you need to navigate to Styles and Templates, then click on the "<< >>" button on the style you want to edit.

-- Scroll down the list and find "Postbit Templates"



-- Double click on "Postbit Legacy", as seen in the picture above.

Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace With:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The red # symbol is for you to put a usergroup id # in. In my case, the admin group on my forum is 6, so instead of a # sign, there is a 6 there. You can assign multiple usergroups to use the same image, if you want. You can use the same code above for different forum styles, you just need to change the "td class="postbit"" to whatever the CSS is for the different style.

Example, my forum has a light and dark skin. The dark skin's CSS is "postbit" and the CSS for the light skin is "postbit2". On the Dark skin, I use the code above and for the light skin it's the exact same, only I have changed the td class to postbit2.

The only thing left to do is design a background image. Once you have that, you can upload it and point your CSS url to the image on your server.I'm fairly sure I have included all the steps to accomplish this, if I missed one, please point it out! Good luck and thanks for looking!

Update:

If you would like to assign multiple background images to multiple usergroups, see this post. User down.low explains very well how to achieve this result! Thanks DL!

http://www.vbulletin.org/forum/showp...8&postcount=52

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Show Thread Enhancements Email to Friend, Print Version, Subscribe Thread in Postbit/Postbit Legacy Neutral Singh vBulletin 3.8 Template Modifications 29 03 Sep 2009 09:53

  #106  
Old 28 Sep 2009, 14:35
Mobo Mobo is offline
 
Join Date: Jan 2004
Real name: Keith Upton
The image up there now is not transparent, as it does not display it correctly and cause that area to show as black. So, I replaced it with some thing that does work... a JPG.
Reply With Quote
  #107  
Old 07 Oct 2009, 10:10
Malceski09 Malceski09 is offline
 
Join Date: May 2008
would this work on 3.7?
Reply With Quote
  #108  
Old 07 Oct 2009, 10:23
ChopSuey ChopSuey is offline
 
Join Date: Jun 2009
Location: Alaska
Real name: Corey
Originally Posted by Malceski09 View Post
would this work on 3.7?
Since its just some edits, im pretty sure it would work
Reply With Quote
  #109  
Old 07 Oct 2009, 10:26
Malceski09 Malceski09 is offline
 
Join Date: May 2008
cheers mate ill give it a go
Reply With Quote
  #110  
Old 05 Nov 2009, 08:58
JeansJoe JeansJoe is offline
 
Join Date: Sep 2009
I could use some help here.
I am using this one: http://www.vbulletin.org/forum/showthread.php?t=207742
and I want to have a special background for girls on my forums. So it is not based on a usergroup but on a field.

My coding skills are just too low for that - can someone tell me how to state the if statement for this one?
Reply With Quote
  #111  
Old 05 Nov 2009, 16:56
Mobo Mobo is offline
 
Join Date: Jan 2004
Real name: Keith Upton
My coding skills are crap, but you could create a usergroup for only the girls and then use either the search for user function based on the gender field (if it is a profile field I think) and then manually move all the girls over to the new usergroup. There is also a query you can run to return all users that have filled out a certain field. I can look that up and post it if it will help you. Good luck getting it automated though.
Reply With Quote
  #112  
Old 05 Nov 2009, 19:51
JeansJoe JeansJoe is offline
 
Join Date: Sep 2009
Originally Posted by Mobo View Post
My coding skills are crap, but you could create a usergroup for only the girls and then use either the search for user function based on the gender field (if it is a profile field I think) and then manually move all the girls over to the new usergroup. There is also a query you can run to return all users that have filled out a certain field. I can look that up and post it if it will help you. Good luck getting it automated though.
I think there must be already a query running as in the postbit there is an image displayed for the gender. my users have to fill out this field btw - so they are either man or woman (sorry for disrespecting transvestites ). and if not there would still be the else case.

I could of course move all women to a usergroup - then again this is exactly what I am trying to avoid - would take insanely long and require constant work on it.
I think the postbit query is supposed to already query that profile field - just like the usergroup for the user. So I think there must be a variable for that.

that post might still help me - if you could look it up that'd be great!
Reply With Quote
  #113  
Old 05 Nov 2009, 21:23
Mobo Mobo is offline
 
Join Date: Jan 2004
Real name: Keith Upton
It seems like you might be able to edit the code from the other mod to just call and post the CSS class from this mod... some deep searching around the net might yield you enough info to hack it yourself. If all else fells, you could hire someone to do it for you via the Rent A Coder site. I've personally had good luck there and the site really protects the buyer from getting ripped off from a coder.

Anyway, here is the link to the query I was talking about... not a lot there, but maybe some help.
Reply With Quote
  #114  
Old 06 Nov 2009, 11:57
JeansJoe JeansJoe is offline
 
Join Date: Sep 2009
I managed it!!!

check out this post: http://www.vbulletin.org/forum/showp...8&postcount=52
Don't forget the additional /if to close each group!

This one:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

has to be:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Whereas field 5 is the number of the profile field and the string Girl is the Value of that Field!
If you use boolean stuff like true false you should do it different. you can also use != for is not.

btw this mod is marked as not working for 3.8.4 - it totally works on 3.8.4!!!
Reply With Quote
  #115  
Old 06 Nov 2009, 12:54
Mobo Mobo is offline
 
Join Date: Jan 2004
Real name: Keith Upton
Glad you got it worked out, thinking about this more, it might actually help me automate my setup. Thanks for posting your findings.
Reply With Quote
  #116  
Old 06 Nov 2009, 13:08
Mobo Mobo is offline
 
Join Date: Jan 2004
Real name: Keith Upton
In order to get this to work with my setup, I need two profile fields filled in. Is it possible to string two if conditions together with some thing like "AND"
Reply With Quote
  #117  
Old 06 Nov 2009, 13:28
Mobo Mobo is offline
 
Join Date: Jan 2004
Real name: Keith Upton
Found it! If you need it to check the condition of two fields, here is what you need...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You need to change the red # to the field number you want to use as well as the red Option, which is the text for that feld.
Reply With Quote
  #118  
Old 22 Jan 2010, 19:46
sisterhood's Avatar
sisterhood sisterhood is offline
 
Join Date: Nov 2008
Plz how make it in VB 4.01 ?
Reply With Quote
  #119  
Old 22 Jan 2010, 20:21
a9eel a9eel is offline
 
Join Date: Oct 2007
thn
Reply With Quote
  #120  
Old 23 Jan 2010, 00:49
Fastbird's Avatar
Fastbird Fastbird is offline
 
Join Date: Aug 2005
Originally Posted by sisterhood View Post
Plz how make it in VB 4.01 ?
Go look in the correct mod forum and you will see I've already ported it.
__________________
http://ltxtech.com - The largest forum dedicated to all LTX powered vehicles - join today!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 18:21.

Layout Options | Width: Wide Color: