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

XF 1.5 Keeping Infolinks from registration

Discussion in 'XenForo Questions and Support' started by rickhz, Jun 13, 2016.

  1. rickhz

    rickhz Member

    I run Infolinks "Infold" with it's code in the page container template.

    My issue is on mobile phones the Infolinks tag interferes with the registration portion of the screen, as the onscreen keyboard "pushes" the Infolinks ad right up into the registration area.

    Can I more selectively install the Infolinks code on separate pages, or could you recommend where I can place the Infolinks stop code?
    Code:
    <!--INFOLINKS_STOP-->
    This is the forum www.ExplorerForum.com

    Thanks
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Where is the ad code? If it's in the templates then a conditional might work.

    This will work in the container scope (the PAGE_CONTAINER template and all included templates):

    Code:
    <xen:if is="!in_array({$contentTemplate}, array('template1','template2','template3'))">
    	THIS CONTENT WILL SHOW ON ALL PAGES EXCEPT THE TEMPLATES LISTED
    </xen:if>
    
    You just need to find the root template of the pages you want to exclude:

    https://xenforo.com/community/threads/1-0-0-b1-how-to-identify-the-root-template-of-a-page.5591/
     
    rickhz likes this.
  3. rickhz

    rickhz Member

    Thank you, that did the trick.
     

Share This Page