PDA

View Full Version : whats the IF code for this?


Evil X
08 Jun 2006, 19:30
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 ?

Evil X
09 Jun 2006, 01:13
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

Ntfu2
09 Jun 2006, 16:50
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 ;)

Evil X
09 Jun 2006, 17:59
thanks^...

Ntfu2
09 Jun 2006, 18:17
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.
---------------

Evil X
09 Jun 2006, 19:44
how could I make it work for several user groups?
<if condition="$bbuserinfo[usergroupid] == 1,2,3,4,5,7">

didnt work...,,,

Ntfu2
09 Jun 2006, 19:56
Replace the IF statement

<if condition="!is_member_of($bbuserinfo, x, y, z)

Evil X
09 Jun 2006, 20:10
ThankS