PDA

View Full Version : If conditional for ads on forums controlled from usercp


HMBeaty
03-04-2007, 01:19 AM
Ok all, I got this working halfway, just need help getting the other half. I have an option in usercp for my members to decide if they want to turn off the advertisements in the forum or not. Basically, I have it set up like this....

UserCP > Edit Profile >
Turn off Advertisements?
Turn off all advertising banners on Redline Motorsports. Select "No" to leave them on
[] No [] Yes

and I have this code in my templates.....
<if condition="$post['field68'] == No">
BANNERS CODE
</if>

Which will not show the banners if the "Yes" is selected.

Now, my question is.......how do I still show the banners to guests?

Anyone?

Can anyone help me with this please?