Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 05 Jan 2009, 03:30
DR AUTONAMUS DR AUTONAMUS is offline
 
Join Date: Jul 2007
Admins and mods have different post backgrounds when posting.

When making a post is it possible to have the admins and mods have different post backgrounds when posting... so you can see what level they are(Usergroup)

If you would like pictures to explain what I mean just ask.
Reply With Quote
  #2  
Old 05 Jan 2009, 15:46
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Find the class tag of that td cell in your postbit and use a conditional statement to switch it around depending on usergroup.


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

__________________
Former vBulletin.org Staff Member

Please feel free to re-use any of the code in any of my projects submitted to vB.org, so long as original attribution is retained.
Reply With Quote
  #3  
Old 06 Jan 2009, 09:29
DR AUTONAMUS DR AUTONAMUS is offline
 
Join Date: Jul 2007
So this would allow me to have the post bits like these:

I know these are phpBB but this is were I got the Idea from.
Admin:

Mod:

User:


So I need to make 3 different colors for the post bit dependent on there user group... Maybe more for future groups.
Reply With Quote
  #4  
Old 06 Jan 2009, 15:52
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Kirby's code is a bit off... it should be <else />, not </else>. But you can use a condition around any of the table column classes you want to change. It may be easier to 'read' if you do it this way:


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

You'll need to do that for every td tag you want changed.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #5  
Old 06 Jan 2009, 16:08
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Real name: Blue
Can we alternate colour background on each subsequent post, within same usergroup?
__________________

My Hacks [ click ] | Steve ~ Administrator for British Expats AustraliaBound.org/forum | Test our forum - user; don pass; pass123
Sports Tipping Mod - coming February 2010 ~ Show your Interest !
Reply With Quote
  #6  
Old 06 Jan 2009, 16:19
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
I would guess so, but I think you would have to get a plugin involved then.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #7  
Old 06 Jan 2009, 16:26
DR AUTONAMUS DR AUTONAMUS is offline
 
Join Date: Jul 2007
So this would be before every td tag in the postbit template ?

$post, X and $post, y would be the user groups?

and How would I make another alt# so I could have it on different styles
Reply With Quote
  #8  
Old 06 Jan 2009, 16:41
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You would do that for every td tag that you wish to change. I've seen some users only want to change the post background and that would be here in red:

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

Make sure when you change it that all your <if> tags have a closing </if> tag.

x and y would be the usergroups.

To add another alt class, you would put it in the Main CSS for the style - at the bottom of that page.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #9  
Old 06 Jan 2009, 16:54
SiK GambleR SiK GambleR is offline
 
Join Date: Oct 2007
now, as a secondary question to this, what if instead of changing the postbit BG I wanted to change just the admin or mod's font color, is that possible?
Reply With Quote
  #10  
Old 06 Jan 2009, 17:04
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Sure, you can either just change the class or add the css for the color inline there.

If you just want to change the background inline, instead of adding a new class, just go:

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

(All just a thrown together example - don't use that code cuz I have no idea what you would produce!) Doing so for the font color would be similar.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #11  
Old 06 Jan 2009, 19:15
SiK GambleR SiK GambleR is offline
 
Join Date: Oct 2007
I can't seem to get it to work, any idea of what the code would be exactly? I have been toying for a little while ( I am still a noob with coding =[ )
Reply With Quote
  #12  
Old 06 Jan 2009, 20:50
MrEyes MrEyes is offline
 
Join Date: Nov 2004
Not exactly what you wanted but the following might help...

I have added the following code to the end of my headinclude template:


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

What this does is change the background colour for all pages for user ids 800, 799, 773 & 1.

This was done so that mods/admins would know that they were logged into a mod account and therefore prevent accidently posting stuff as an admin/normal user when the opposite is required.

Obviously you can change those user ids to whatever you want
Reply With Quote
  #13  
Old 06 Jan 2009, 21:03
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by SiK GambleR View Post
I can't seem to get it to work, any idea of what the code would be exactly? I have been toying for a little while ( I am still a noob with coding =[ )
We can't tell what you did if you don't post the code your tried. Please use the code/php/html tags when you post it.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #14  
Old 06 Jan 2009, 21:40
Mike-D Mike-D is offline
 
Join Date: Jan 2006
Real name: Michael
Te easiest way is to use Marco's Post Background Color AddOn. His AddOn is expandable in most ways and can be also added with the vB CSS Color Picker and Color Preview. Also the Permissions are pre-defined and can be used in a proper way IMO one of the best AddOns ever
Reply With Quote
  #15  
Old 06 Jan 2009, 21:47
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Wow, I didn't know that existed. Learn something new every day!
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Admins/SuperMods/Mods exempt from posting character limit v1.0 Boofo vBulletin 2.x Full Releases 8 12 Oct 2003 19:59



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

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 23:39.

Layout Options | Width: Wide Color: