View Full Version : Admin Specific Font Color
docjay
12-24-2004, 03:21 PM
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?
docjay
12-27-2004, 10:04 PM
No ideas from anyone?
SVTBlackLight01
12-28-2004, 11:38 AM
You can do this by creating a new class and then making this change to your postbit templates.
replace
<!-- message -->
<div>$post[message]</div>
<!-- / message -->
with
<!-- message -->
<if condition="is_member_of($post, 6)">
<div class="adminclass">$post[message]</div>
<else />
<div>$post[message]</div>
</if>
<!-- / message -->
docjay
12-30-2004, 12:01 AM
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,
SVTBlackLight01
12-30-2004, 12:44 AM
No problem. Great to hear you got it working! :)
docjay
02-26-2005, 02:09 PM
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?
docjay
02-27-2005, 03:47 PM
Any ideas anyone?
docjay
03-02-2005, 04:35 PM
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.
docjay
03-03-2005, 06:43 PM
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.
<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>
magnus
03-04-2005, 12:08 PM
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.
<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>
You can simplify the process by installing the is_member_of improvement (https://vborg.vbsupport.ru/showthread.php?t=61149) modification by merk. This will allow you to specify multiple usergroupid's in the same is_member_of() statement.
ie:
<if condition="is_member_of($post, 6, 24, 25, 26)">
<div class="adminclass">$post[message]</div>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.