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

Conditional are ad blocks

Discussion in 'XenForo Questions and Support' started by Ryan Kent, May 4, 2011.

  1. Ryan Kent

    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?

    <xen:if is="{$contentTemplate} !='register_form'">       
                <xen:include template="ad_below_bottom_breadcrumb" />
  2. Tilkißey

    Tilkißey Well-Known Member

    it wont work coz u cannot ask contentTemplate is equals to something

    <xen:if is="{$controllerName} != 'XenForo_ControllerPublic_Register'">your codes</xen:if>
    and, this is the info bout register.php page
    smimosmile and Ryan Kent like this.
  3. Ryan Kent

    Ryan Kent Well-Known Member

    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.
  4. Tilkißey

    Tilkißey Well-Known Member

Share This Page