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)
-   -   Anyone here familiar with smarty templates? (https://gfy.com/showthread.php?t=873208)

Scroto 12-03-2008 12:06 PM

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 12-03-2008 12:53 PM

bump for me :(

munki 12-03-2008 12:56 PM

Quote:

Originally Posted by Scroto (Post 15137705)
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.

Scroto 12-03-2008 01:05 PM

Quote:

Originally Posted by munki (Post 15137949)
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..

TheDoc 12-03-2008 01:05 PM

Quote:

Originally Posted by Scroto (Post 15137705)
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.

Scroto 12-03-2008 01:28 PM

Quote:

Originally Posted by TheDoc (Post 15137990)
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 12-03-2008 01:57 PM

may sound odd, but it worked like this

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

:upsidedow


All times are GMT -7. The time now is 04:17 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc