Conditional are ad blocks

Ryan Kent

Well-known member
I recently added an ad in the ad_below_bottom_breadcrumb template. While creating a test account for my forum I noticed the ad appeared in the new member sign up form. I looked at the page's source and determined the page name is register_form.

I wrapped the ad code in a conditional (within PAGE_CONTAINER), but it is still appearing. Can someone share what I might be doing wrong?

Code:
<xen:if is="{$contentTemplate} !='register_form'">       
            <xen:include template="ad_below_bottom_breadcrumb" />
            </xen:if>
 
it wont work coz u cannot ask contentTemplate is equals to something

Code:
<xen:if is="{$controllerName} != 'XenForo_ControllerPublic_Register'">your codes</xen:if>

and, this is the info bout register.php page
controllerName: XenForo_ControllerPublic_Register
controllerAction: Index
viewName: XenForo_ViewPublic_Register_Form
 
Thanks TilkiBey. I would have never figured that out without your help.

For next time, how can I know what pages are controlled by a Controller? I looked at the source and found a div for "content" register_form so that is how I came up with the page name.
 
Top Bottom