Greetings,
I've recently implemented Google AdSense on my site, but I wanted to give members a chance to 'opt out' of seeing ads on the site by use of a profile field.
The custom profile field is a single selection pulldown such as:
"This site uses targeted advertising, if you do not wish to view the ads, select the 'No' option below"
- Yes, I wish to support this site
- No, I do not wish to support this site
Hehe, yeah, there's a bit of guilt there.
Anyways, in my forumhome template I tried to use the conditional:
The above is not allowed, so I was wondering if there was a conditional that would allow me to check the first two letters of 'field8'. I know I could use:
But that seems rather messy.
I've recently implemented Google AdSense on my site, but I wanted to give members a chance to 'opt out' of seeing ads on the site by use of a profile field.
The custom profile field is a single selection pulldown such as:
"This site uses targeted advertising, if you do not wish to view the ads, select the 'No' option below"
- Yes, I wish to support this site
- No, I do not wish to support this site
Hehe, yeah, there's a bit of guilt there.
Anyways, in my forumhome template I tried to use the conditional:
Code:
<if condition="substr($bbuserinfo['field8'],0,2)!=='No'"> .. AdSense Code </if>
Code:
<if condition="$bbuserinfo['field8']!=='No, I do not wish to support this site'"> .. AdSense Code </if>
Comment