View Single Post
Old 08-15-2013, 08:11 AM  
_Richard_
Too lazy to set a custom title
 
_Richard_'s Avatar
 
Industry Role:
Join Date: Oct 2006
Location: Earth
Posts: 30,990
stx tube is using smarty template files, you can check the syntax or how is it used on the template source codes. Files are located at /templates/yourtheme/*.tpl. if you check the template sources of files such as navigation.tpl you can see that $action is the variable you are looking for. IE, {if !$action || $action == 'videos'} html code {/if} is html code to display for front page

Quote:
Originally Posted by Naughty-Pages View Post
It uses .tpl files and the php is that "smarty" stuff, which was throwing me off.. but what you had there worked!

The only thing is, if there are multiple includes, they each need to be done separately.

In case anyone else runs into this issue, this was the code for STX Tube to resolve the site-wide links (this sample snippet is for multiple includes):

Code:
{php}if($_SERVER['REQUEST_URI'] == '/') 
include("FULL PATH TO FILE");{/php}

{php}if($_SERVER['REQUEST_URI'] == '/') 
include("FULL PATH TO FILE");{/php}

{php}if($_SERVER['REQUEST_URI'] == '/') 
include("FULL PATH TO FILE");{/php}
Thanks Mr. Stiff, Fris, everyone! ;)
hit us up about this : )
_Richard_ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote