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

Conditionals + showthread.php equivalent

Ray

Active member
#1
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.
 

Jake Bunce

XenForo moderator
Staff member
#2
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>