Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-15-2013, 06:15 AM   #1
Naughty-Pages
Confirmed User
 
Naughty-Pages's Avatar
 
Industry Role:
Join Date: Oct 2006
Location: SWFL
Posts: 4,533
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!
Naughty-Pages is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-15-2013, 06:43 AM   #2
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
have you looked in the template directory for the index page? it might have some code in there to do what you want.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-15-2013, 06:44 AM   #3
Paully
www.Max-Hardcore.com
 
Paully's Avatar
 
Industry Role:
Join Date: Nov 2005
Posts: 1,556
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.
__________________

CCBill Affiliates Let's Make Some Monies!

Paullybadboy [@] gmail.com ICQ 631384423
Paully is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-15-2013, 06:50 AM   #4
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
Quote:
Originally Posted by Paully View Post
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.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-15-2013, 07:39 AM   #5
Naughty-Pages
Confirmed User
 
Naughty-Pages's Avatar
 
Industry Role:
Join Date: Oct 2006
Location: SWFL
Posts: 4,533
Quote:
Originally Posted by fris View Post
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 View Post
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.
Naughty-Pages is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-15-2013, 07:42 AM   #6
Mr. Stiff
So Fucking Stiff!
 
Mr. Stiff's Avatar
 
Industry Role:
Join Date: Oct 2005
Posts: 493
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 } ?>
__________________
ICQ 208807506
Mr. Stiff is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-15-2013, 07:43 AM   #7
Marialovesporn
Confirmed User
 
Join Date: Feb 2007
Posts: 579
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.
Marialovesporn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-15-2013, 08:06 AM   #8
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
Old 08-15-2013, 08:11 AM   #9
_Richard_
Too lazy to set a custom title
 
_Richard_'s Avatar
 
Industry Role:
Join Date: Oct 2006
Location: Earth
Posts: 30,989
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
Old 08-16-2013, 12:10 AM   #10
Paully
www.Max-Hardcore.com
 
Paully's Avatar
 
Industry Role:
Join Date: Nov 2005
Posts: 1,556
Under public_html there gotta be an index right?
__________________

CCBill Affiliates Let's Make Some Monies!

Paullybadboy [@] gmail.com ICQ 631384423
Paully is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-16-2013, 12:18 AM   #11
Paully
www.Max-Hardcore.com
 
Paully's Avatar
 
Industry Role:
Join Date: Nov 2005
Posts: 1,556
Just see what it points at.
__________________

CCBill Affiliates Let's Make Some Monies!

Paullybadboy [@] gmail.com ICQ 631384423
Paully is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-16-2013, 02:03 AM   #12
Naughty-Pages
Confirmed User
 
Naughty-Pages's Avatar
 
Industry Role:
Join Date: Oct 2006
Location: SWFL
Posts: 4,533
Quote:
Originally Posted by Paully View Post
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. ;)

Last edited by Naughty-Pages; 08-16-2013 at 02:06 AM..
Naughty-Pages is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-16-2013, 11:48 AM   #13
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
Quote:
Originally Posted by Paully View Post
Under public_html there gotta be an index right?
no its smarty.

and uses those to generate the index.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.