GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   STX Tube - site-wide footer links.. uggh... a little help please? (https://gfy.com/showthread.php?t=1118425)

Naughty-Pages 08-15-2013 06:15 AM

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!

fris 08-15-2013 06:43 AM

have you looked in the template directory for the index page? it might have some code in there to do what you want.

Paully 08-15-2013 06:44 AM

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>&copy; 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.

fris 08-15-2013 06:50 AM

Quote:

Originally Posted by Paully (Post 19759807)
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>&copy; 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.

no file is called index.php in the template folder.

Naughty-Pages 08-15-2013 07:39 AM

Quote:

Originally Posted by fris (Post 19759805)
have you looked in the template directory for the index page? it might have some code in there to do what you want.

ya, I looked at it for any reference to what was being used to indicate the index page, but nothing jumped out at me.. although i haven't slept in over a day, so maybe that is the problem.. lol

plus it uses that smarty stuff, took me a few minutes to figure out how to add the includes.

Quote:

Originally Posted by Paully (Post 19759807)
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>&copy; 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.

there's an index.tpl but I had already added the includes there earlier, rather than the footer (at least for now) because putting it there makes it only partially site-wide.. (doesn't add it to the categories, the individual videos, etc etc.. but it still puts it on all of the numbered pages).

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. :(

Mr. Stiff 08-15-2013 07:42 AM

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 } ?>

Marialovesporn 08-15-2013 07:43 AM

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.

Naughty-Pages 08-15-2013 08:06 AM

Quote:

Originally Posted by Mr. Stiff (Post 19759888)
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.. ;)

_Richard_ 08-15-2013 08:11 AM

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 (Post 19759934)
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 : )

Paully 08-16-2013 12:10 AM

Under public_html there gotta be an index right?

Paully 08-16-2013 12:18 AM

Just see what it points at.

Naughty-Pages 08-16-2013 02:03 AM

Quote:

Originally Posted by Paully (Post 19761057)
Under public_html there gotta be an index right?

I don't think you understand what the problem was.. (plus the index file is encrypted.. zend)

but anywhoo.. as I mentioned above, the problem has been resolved. ;)

fris 08-16-2013 11:48 AM

Quote:

Originally Posted by Paully (Post 19761057)
Under public_html there gotta be an index right?

no its smarty.

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