The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Post bit User info Conditional
I need to know the condition so that if user is admin there username color is lets say red. I thought it was
<if condition="($bbuserinfo['usergroupid'] == 6"><font color="red">$post[username]</font><else />$post[username]</if> And i also tried, <if condition="($permissions['adminpermissions'] & CANCONTROLPANEL)"><font color="red">$post[username]</font><else />$post[username]</if> That worked but then all users username was in that color if you were an admin. Can anyone sort me out with the correct code?. Thanks. |
#2
|
|||
|
|||
Why not just do this in 'Username HTML Markup' under your Administrator Usergroup?
|
#3
|
|||
|
|||
I could only see User Title Markup.
|
#4
|
|||
|
|||
I found it, but it only edits the "Whos Online and Memberlist" part. Not the $post[username]
|
#5
|
|||
|
|||
Yours doesn't look like this?
|
#6
|
|||
|
|||
Ive attached some screenies.
My Admins are Veg HeadSurfer BlueShift And all our Super Administrators in Config file. |
#7
|
|||
|
|||
All Admins dont have it showing on Post bit for some reason. My postbit_userinfo hasnt changed at all.
|
#8
|
|||
|
|||
Nevermind, Fixed.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|