Log in

View Full Version : if condition commands?


dxlwebs
08-12-2008, 03:24 PM
hey all,

i am going to use normal and paid users is there any way through if condition commands i can let some things show and other things not to the dif users!

say if normaly user gets adverts and paid user doesnt i can just if condition the google adds or codes not to show for the paid users!

thanks for your help

Lynne
08-12-2008, 03:28 PM
In a template do this where x is a usergroup number:

<if condition="is_member_of($bbuserinfo, x)">
Stuff for users in usergroupid x
<else />>
Stuff for users not in usergroupid x
</if>

dxlwebs
08-12-2008, 03:36 PM
thank you

--------------- Added 1218614830 at 1218614830 ---------------

hey i gave it a go and it did not work i am using 3.6.x so maybe its something to do with that but the code you gave did not work do you have any other ideas?

--------------- Added 1218614872 at 1218614872 ---------------

does any one have abńy ideas?

Dismounted
08-13-2008, 07:14 AM
Please post the code you are using, and what is being displayed.

dxlwebs
08-13-2008, 07:25 AM
this is the code i am using:

<if condition="is_member_of($bbuserinfo, 6)">
Ad's Removed
</else>
My Adbrite Codeblah blah
</if>

And what i get is

ad's removed
the ad shows here under

Dismounted
08-13-2008, 07:35 AM
<if condition="is_member_of($bbuserinfo, 6)">
Ad's Removed
<else />
My Adbrite Codeblah blah
</if>

dxlwebs
08-13-2008, 07:37 AM
Thank you that works