The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Admin Specific Font Color
I have searched this site for 2 days trying to find this, but havent had any luck. What im looking for is this, So that when an Admin posts, his font will automatically appair a different font color then the default forum font color. I have found a couple of hacks here that allow everyone to change their font color, but not one to just allow a specific usergroup. Can this be done?
|
#2
|
|||
|
|||
No ideas from anyone?
|
#3
|
||||
|
||||
You can do this by creating a new class and then making this change to your postbit templates.
replace Code:
<!-- message --> <div>$post[message]</div> <!-- / message --> Code:
<!-- message --> <if condition="is_member_of($post, 6)"> <div class="adminclass">$post[message]</div> <else /> <div>$post[message]</div> </if> <!-- / message --> |
#4
|
|||
|
|||
Thank you so much, it took me a lil bit to figure out where to add the "class" to, but I did and its working great,
|
#5
|
||||
|
||||
No problem. Great to hear you got it working!
|
#6
|
|||
|
|||
Well I went an added a couple more Admin usergroups, how would I get them to also appear in a font specific color, this worked great on just one usergroup, how would I add 3 more to it?
|
#7
|
|||
|
|||
Any ideas anyone?
|
#8
|
|||
|
|||
Still trying to get this to work, but it is still not working for me for the other usergroups, any ideas from anyone would be great.
|
#9
|
|||
|
|||
Well after doing alot of searches on some different forums, I found a bit of a modification for what I needed to do, so I figured I would share with people in case they are looking to do the same thing.
I just added a few "or" commands I guess they would be called and it works great now. This is what I did. Code:
<if condition="is_member_of($post,6)or is_member_of($post,24)or is_member_of($post,25)or is_member_of($post,26)"><div class="adminclass">$post[message]</div> |
#10
|
||||
|
||||
Quote:
ie: PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|