View Single Post
Old 08-15-2013, 08:06 AM  
Naughty-Pages
Confirmed User
 
Naughty-Pages's Avatar
 
Industry Role:
Join Date: Oct 2006
Location: SWFL
Posts: 4,533
Quote:
Originally Posted by Mr. Stiff View Post
Does STX use regular .php files for templates?
if so, just add something like:

<?php if($_SERVER['REQUEST_URI'] == '/') { ?>
.... footer links for homepage only ...
<?php } ?>
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! ;)


See? GFY isn't just for trolls.. ;)

Last edited by Naughty-Pages; 08-15-2013 at 08:11 AM..
Naughty-Pages is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote