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

Conditionals + showthread.php equivalent

Discussion in 'XenForo Questions and Support' started by Ray, Nov 14, 2010.

  1. Ray

    Ray Active Member

    I need to add some code to the footer of the [threads] page and it should only affect guests.
    What are the conditionals I should use and what template should I modify?

    Thanks

    p.s. tried the footer template but it affects all the pages.
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> footer

    Use this code:

    Code:
    <xen:if is="{$contentTemplate} == 'thread_view' AND !{$visitor.user_id}">
    	THIS CODE WILL SHOW FOR GUESTS ON SHOWTHREAD PAGES
    </xen:if>
    
     
    Ray and yilmaz like this.
  3. Ray

    Ray Active Member

    Awesome! Thank you very much :)
     

Share This Page