ActorMike
Well-known member
We use the following conditional statement to prevent google ads from showing on certain pages and to certain users of the site.
Typically I just search the source code of the page in question for the <div id="content" class="error"> line to find out what page to list above. The register/register page has <div id="content" class="error"> so shouldn't it be excluded from showing the ads? It works on all the other pages above. Works fine on the register_confirm page and other registration pages, just not the register/register page that get after submitting their registration.
Code:
<xen:if is="!{xen:helper ismemberof, $visitor, 3, 5, 12, 15, 10, 11} AND !in_array({$contentTemplate}, array('message_page', 'error', 'search_form', 'search_form_post', 'search_form_profile_post', 'search_results', 'register_form', 'register_confirm', 'register_facebook', 'register_twitter', 'register_google', 'login', 'login_two_step', 'error_with_login', 'contact', 'forum_watch', 'account_upgrades'))">
Typically I just search the source code of the page in question for the <div id="content" class="error"> line to find out what page to list above. The register/register page has <div id="content" class="error"> so shouldn't it be excluded from showing the ads? It works on all the other pages above. Works fine on the register_confirm page and other registration pages, just not the register/register page that get after submitting their registration.