![]() |
STX Tube - site-wide footer links.. uggh... a little help please?
Does anyone here use STX tube?
I added footer links to the tube, but they are friggin site-wide.. does anyone know what coding to use to make the links only show on the index page? similar to "(is_front_page() && !is_paged())" used in WordPress? Any help would be appreciated ;) Thanks! |
have you looked in the template directory for the index page? it might have some code in there to do what you want.
|
Remove the footer code and just edit this in your index.php
<div id="footer"> <div id="footer_title"> <h2> <a href="http://www.stxtube.com/">STXtube</a> </h2> </div> <div id="footer_text"> <p>© 2013 All Rights Reserved. <a href="http://www.stxtube.com/">STXtube</a> | Sponsored by : <a href="http://www.sextronix.com/">Sextronix</a>, <a href="http://www.hentaibiz.com/">Hentaibiz</a>, <a href="http://www.pimpboss.com/">Pimpboss</a></p> </div> </div> Thats from their demo but should work. |
Quote:
|
Quote:
plus it uses that smarty stuff, took me a few minutes to figure out how to add the includes. Quote:
There's got to be a code of some sort to distinguish the main index page from the rest, but I can't seem to find it. :( |
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 } ?> |
In STXT admin, look at > templates > index templates
the file that is marked as 'default', is your index template file. This one should be in your STXT/templates/ folder. Insert code there or create a separate footer-index.php and include it. |
Quote:
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'] == '/') See? GFY isn't just for trolls.. ;) |
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:
|
Under public_html there gotta be an index right?
|
Just see what it points at.
|
Quote:
but anywhoo.. as I mentioned above, the problem has been resolved. ;) |
Quote:
and uses those to generate the index. |
| All times are GMT -7. The time now is 11:57 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123