Log in

View Full Version : Conditionals


mcyates
04-15-2005, 01:26 PM
What is the code to use on my forum which will make sure 1 usergroup (the paid people) do not see the adverts:

<if usergroup=2>

something like the above one but i've forgot it

ould anyone give me the correct code please

tnguy3n
04-15-2005, 01:53 PM
What is the code to use on my forum which will make sure 1 usergroup (the paid people) do not see the adverts:

<if usergroup=2>

something like the above one but i've forgot it

ould anyone give me the correct code please
this forum is for mod hints & tips, m8.

To answer your question, the condition should be as following:
<if condition="!is_member_of($bbuserinfo, 2">Your Ads Go Here</if>
all usergroups see the ads except usergroupid 2

mcyates
04-15-2005, 02:00 PM
i get this error:


The following error occurred when attempting to evaluate the template 'header':

Parse error: parse error, unexpected ';' in /usr/home/yates238/public_html/includes/adminfunctions_template.php(3096) : eval()'d code on line 117

This is likely caused by a malformed conditional statement.

tnguy3n
04-15-2005, 02:11 PM
A correct tag should be
<if condition="!is_member_of($bbuserinfo, 2)">Your Ads Go Here</if>
I missed a closing parenthesis in previous post.

mcyates
04-15-2005, 02:12 PM
yes works fine now, thanks for your help.

that shows the adverts for that group (2) and removes them for everyone else.

I need the reverse to that one!!