PDA

View Full Version : Conditionals Help


MikeWarner
11-04-2005, 05:16 PM
Hi. I have adsense on my site. I want to make it optional for paid users (via a custom user profile field), but can't work out the conditional. This is what I want to do:

<if usergroup id=5 and profile field 27 value= "Show Adsense">
<adsense code>
</if>

What would be the correct phrasing for this?

Many thanks in advance. :)

Anyone

Anyone?

LEAD_WEIGHT
11-07-2005, 09:28 AM
Hi. I have adsense on my site. I want to make it optional for paid users (via a custom user profile field), but can't work out the conditional. This is what I want to do:

<if usergroup id=5 and profile field 27 value= "Show Adsense">
<adsense code>
</if>

What would be the correct phrasing for this?

Many thanks in advance. :)

Anyone

Anyone?

You can post it in this link if the maker is willing to add this field for profile? It seems better to have certain groups to be able to turn on or off ads.

https://vborg.vbsupport.ru/showthread.php?t=80685