DerTobi75 Active member Jun 1, 2011 #1 Hi, how can I find out, which pages is shown and how I use this information for any ad_*_template?! Let's say I would like show ads in the ad_below_content on What's New and Thread Display but not on Forum Index and any other page?! Regards, Tobi
Hi, how can I find out, which pages is shown and how I use this information for any ad_*_template?! Let's say I would like show ads in the ad_below_content on What's New and Thread Display but not on Forum Index and any other page?! Regards, Tobi
Jake Bunce Well-known member Jun 2, 2011 #2 Admin CP -> Appearance -> Templates -> ad_below_content You can use this condition to check the page: Code: <xen:if is="in_array({$contentTemplate}, array('online_list','thread_view'))"> AD CODE HERE </xen:if> This uses the content template to identify the page: http://xenforo.com/community/threads/1-0-0-b1-how-to-identify-the-root-template-of-a-page.5591/ Upvote 0 Downvote
Admin CP -> Appearance -> Templates -> ad_below_content You can use this condition to check the page: Code: <xen:if is="in_array({$contentTemplate}, array('online_list','thread_view'))"> AD CODE HERE </xen:if> This uses the content template to identify the page: http://xenforo.com/community/threads/1-0-0-b1-how-to-identify-the-root-template-of-a-page.5591/