The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
change color of admin posts
I'd like to make it so when an admin user makes a post, the background color or the font color of that post is different than that of regular registered users.
Anybody ever done this? I can't figure it out... Any help would be great!! Thanks. |
#2
|
||||
|
||||
This thread should help - https://vborg.vbsupport.ru/showthrea...or+staff+posts
|
#3
|
|||
|
|||
Thanks for the reply Lynn!
that thread helped change the font color of the post, but how could we change the color of the post background- for instance maybe change the blue bar (posbit.gif?) directly above your reply? |
#4
|
||||
|
||||
Put that same sort of code in the area where that bar is created. That row is by default defined by class thead, so change this line near the top of your postbit(_legacy) template:
HTML Code:
<if condition="$post[usergroupid]=6"> <td style="background-color:yellow" $post[scrolltothis]> <else /> <td class="thead" $post[scrolltothis]> </if> |
#5
|
|||
|
|||
Quote:
|
#6
|
||||
|
||||
....
Quote:
|
#7
|
|||
|
|||
I'am sorry but I don't know what line you are talking about.
wait i think i found it that line is towards the middle though. This is what it looks like HTML Code:
<if condition="$post['signature']"> <!-- sig --> <div> __________________<br /> $post[signature] </div> <!-- / sig --> </if> |
#8
|
||||
|
||||
You realize that they are just looking to change the blue-bar above the reply - the one that has the date/time of the post (that is what they asked for in the post above the one I wrote out the template change). Is that what you are trying to change? If so, as I said in my post it is a line right near the top of the postbit(_legacy) that normally is class thead. So, this line in red:
Code:
<tr> <td class="thead" $post[scrolltothis]> <div class="normal" style="float:$stylevar[right]"> |
#9
|
|||
|
|||
I'sam trying to change the background color to where the avatars and rank are located (the top side of this post) on my forum its the right because im using postbit_legacy. Thank you for helping me out.
Do you need the code for my postbit? |
#10
|
||||
|
||||
Well, then that is a different area than the area the poster was asking about. You need to find this line:
Code:
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"> Code:
<if condition="$post[usergroupid]==6"> <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px; background-color: yellow"> <else /> <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"> </if> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|