View Full Version : whats the IF code for this?
to only display something for a couple groups? I want to do something so a certain image only is in certain usergroups posts...
carpzone
08 Jun 2006, 21:25
And where do u want to display the image ?
actually... I want it to be like this
for regular members and mods and smods I want it to show thier rep power in thier post... but for the admins I just want it to say SUPER POWER or some shit... na mean
Try something like this postbit_legacy (assuming you are using the legacy layout like you see here)
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Change to
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Change XX to your admin group ;)
thats probably not perfect as i didnt test it, but that should be close ;)
If that doesnt work, It may need a else in there
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
how could I make it work for several user groups?
<if condition="$bbuserinfo[usergroupid] == 1,2,3,4,5,7">
didnt work...,,,
Replace the IF statement
<if condition="!is_member_of($bbuserinfo, x, y, z)
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.