![]() |
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...
|
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:
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div> Code:
<if condition="$show['reputation']"><div> thats probably not perfect as i didnt test it, but that should be close ;) |
thanks^...
|
If that doesnt work, It may need a else in there
Code:
<if condition="$show['reputation']"><div> |
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) |
ThankS
|
All times are GMT. The time now is 08:14 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|