The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
||||
|
||||
Find the class tag of that td cell in your postbit and use a conditional statement to switch it around depending on usergroup.
HTML Code:
<td class="<if condition="is_member_of($post, X)">alt1</else>alt2</if>">...</td> |
#3
|
|||
|
|||
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. |
#4
|
||||
|
||||
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:
HTML Code:
<if condition="is_member_of($post, X)"> <td class="whatever"> <else /> <if condition="is_member_of($post, Y)"> <td class="whatever2"> <else /> <td class="alt1"> </if> </if> |
#5
|
||||
|
||||
Can we alternate colour background on each subsequent post, within same usergroup?
|
#6
|
||||
|
||||
I would guess so, but I think you would have to get a plugin involved then.
|
#7
|
|||
|
|||
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 |
#8
|
||||
|
||||
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:
Code:
<if condition="$show['moderated']"> <td class="alt2" id="td_post_$post[postid]"> <else /> <td class="alt1" id="td_post_$post[postid]"> </if> 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. |
#9
|
|||
|
|||
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?
|
#10
|
||||
|
||||
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: Code:
<td class="alt2" id="td_post_$post[postid]" style="background: #00ff00 url('smiley.gif') no-repeat fixed center;"> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|