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 Mark Forums Read
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 12-03-2008, 12:06 PM   #1
Scroto
Confirmed User
 
Scroto's Avatar
 
Join Date: Nov 2005
Posts: 2,804
Anyone here familiar with smarty templates?

Just curious if anyone might be able to assist. Been googling my ass off and no real luck so far lol

Basically what I'm trying to do is add the atx trade script codes. One in the header and one in footer. Nothing works, it's just blank.. doesn't print anything.

tried all these..
{include file='myfile.html'}

{php}my code..{/php}

{fileinc file="path/to/file"}

the atx codes:
Code:
for the footer
<?php

include 'top50.html';

?>

 
for the header
<?php virtual ("/cgi-bin/atx/in.cgi"); ?>
Scroto is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-03-2008, 12:53 PM   #2
Scroto
Confirmed User
 
Scroto's Avatar
 
Join Date: Nov 2005
Posts: 2,804
bump for me
Scroto is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-03-2008, 12:56 PM   #3
munki
Do Fun Shit.
 
munki's Avatar
 
Industry Role:
Join Date: Dec 2004
Location: OC
Posts: 13,393
Quote:
Originally Posted by Scroto View Post
Just curious if anyone might be able to assist. Been googling my ass off and no real luck so far lol

Basically what I'm trying to do is add the atx trade script codes. One in the header and one in footer. Nothing works, it's just blank.. doesn't print anything.

tried all these..
{include file='myfile.html'}

{php}my code..{/php}

{fileinc file="path/to/file"}

the atx codes:
Code:
for the footer
<?php

include 'top50.html';

?>

 
for the header
<?php virtual ("/cgi-bin/atx/in.cgi"); ?>
Try...

Code:
{literal}
<?php include 'top50.html' ?>
{/literal}

{literal}
<?php virtual ("/cgi-bin/atx/in.cgi"); ?>
{/literal}
If smartys still has php parsing on, should work.
__________________

I have the simplest tastes. I am always satisfied with the best.” -Oscar Wilde
munki is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-03-2008, 01:05 PM   #4
Scroto
Confirmed User
 
Scroto's Avatar
 
Join Date: Nov 2005
Posts: 2,804
Quote:
Originally Posted by munki View Post
Try...

Code:
{literal}
<?php include 'top50.html' ?>
{/literal}

{literal}
<?php virtual ("/cgi-bin/atx/in.cgi"); ?>
{/literal}
If smartys still has php parsing on, should work.
just sends the code without parsing it

I also tried
{php}
include('path/to/file');
{/php}

The header i found a temp solution, I just added the code into some php that was already in the header template right at the end. lol

I suppose if all else, I'll iframe the top list..
Scroto is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-03-2008, 01:05 PM   #5
TheDoc
Too lazy to set a custom title
 
TheDoc's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: Currently Incognito
Posts: 13,827
Quote:
Originally Posted by Scroto View Post
Just curious if anyone might be able to assist. Been googling my ass off and no real luck so far lol

Basically what I'm trying to do is add the atx trade script codes. One in the header and one in footer. Nothing works, it's just blank.. doesn't print anything.

tried all these..
{include file='myfile.html'}

{php}my code..{/php}

{fileinc file="path/to/file"}

the atx codes:
Code:
for the footer
<?php

include 'top50.html';

?>

 
for the header
<?php virtual ("/cgi-bin/atx/in.cgi"); ?>
I think if you use include file, then the file has to be in the smarty/templates directory. It doesn't take the full path because it pulls from the smarty dir.
{include file="somefile.tpl"}

{include_php file='full/path/to/cgi.file'}

I don't know if include_php will work, but I can include html, tpl, and php without issue doing it this way. Maybe it will work with the atx path and file.
__________________
~TheDoc - ICQ7765825
It's all disambiguation
TheDoc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-03-2008, 01:28 PM   #6
Scroto
Confirmed User
 
Scroto's Avatar
 
Join Date: Nov 2005
Posts: 2,804
Quote:
Originally Posted by TheDoc View Post
I think if you use include file, then the file has to be in the smarty/templates directory. It doesn't take the full path because it pulls from the smarty dir.
{include file="somefile.tpl"}

{include_php file='full/path/to/cgi.file'}

I don't know if include_php will work, but I can include html, tpl, and php without issue doing it this way. Maybe it will work with the atx path and file.
yeah that's what I was thinking as well, no joy though.

the place where i add the code just shows up blank like i didnt add it at all (when i view source)
Scroto is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-03-2008, 01:57 PM   #7
Scroto
Confirmed User
 
Scroto's Avatar
 
Join Date: Nov 2005
Posts: 2,804
may sound odd, but it worked like this

{include file='../../top50.html'}

Scroto 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
Thread Tools



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.