The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Mods have different background color in posts?
Hello,
I'm not sure if this has been done or not, but.. I'll give it a go anyway I'm looking for a hack that will change a mod/supermod/admin/etc 's background color when they post a reply or thread, so that someone of a higher status post will stand out. Something like that.. anyone wanna try it? haha.. Thanks |
#2
|
|||
|
|||
Assuming vB 3.5.4...
In the postbit template find: Code:
<td class="alt1" id="td_post_$post[postid]"> <!-- message, attachments, sig --> Code:
<td class="alt1" id="td_post_$post[postid]"<if condition="can_moderate(0,'cancontrolpanel',$post[userid],'')"> style="background: #C0EEEE; color: #000000;"<else /><if condition="can_moderate(0,'ismoderator',$post[userid],'')"> style="background: #EEC0EE; color: #000000;"</if></if>> <!-- message, attachments, sig --> Code:
<if condition="$show['moderated']"> <td class="alt2" id="td_post_$post[postid]"> <else /> <td class="alt1" id="td_post_$post[postid]"> </if> Code:
<if condition="$show['moderated']"> <td class="alt2" id="td_post_$post[postid]"<if condition="can_moderate(0,'cancontrolpanel',$post[userid],'')"> style="background: #C0EEEE; color: #000000;"<else /><if condition="can_moderate(0,'ismoderator',$post[userid],'')"> style="background: #EEC0EE; color: #000000;"</if></if>> <else /> <td class="alt1" id="td_post_$post[postid]"<if condition="can_moderate(0,'cancontrolpanel',$post[userid],'')"> style="background: #C0EEEE; color: #000000;"<else /><if condition="can_moderate(0,'ismoderator',$post[userid],'')"> style="background: #EEC0EE; color: #000000;"</if></if>> </if> |
#3
|
|||
|
|||
Thank you! I was wondering if there was a way to do this via userid (multiple user ids) .. like specify the userids who's posts stand out? or via usergroup?
Thanks for the help |
#4
|
|||
|
|||
Code:
<if condition="in_array($post[userid],array(1,2,3))"> style="background: #C0EEEE; color: #000000;"</if> |
#5
|
|||
|
|||
I don't understand.. do I replace that with something?
Thanks in advance~ |
#6
|
|||
|
|||
Replace:
Code:
<if condition="can_moderate(0,'cancontrolpanel',$post[userid],'')"> style="background: #C0EEEE; color: #000000;"<else /><if condition="can_moderate(0,'ismoderator',$post[userid],'')"> style="background: #EEC0EE; color: #000000;"</if></if> Code:
<if condition="in_array($post[userid],array(1,2,3))"> style="background: #C0EEEE; color: #000000;"</if> Note: change 1,2,3 to a comma separated list of userids. |
#7
|
|||
|
|||
Ah, got it. Thank you so much !
|
#8
|
|||
|
|||
If you wanted this to work for an entire usergroup would you replace
$post[userid],array(1,2,3) with $post[usergroupid],array(10,11,12) for example? |
#9
|
|||
|
|||
yes, that will work for their usergroup
|
#10
|
|||
|
|||
This was outstanding and simple, tons of thanks for this gem. I'm going to try and play with it to see if I can figure out how to do two usergroupids use two seperate colors.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|