• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Conditional are ad blocks

Ryan Kent

Well-known member
#1
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>
 

Dr.Yontem

Formerly Tilkißey
#2
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
 

Ryan Kent

Well-known member
#3
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.