X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Need help putting code into .tpl file - php rss2 (https://forum.x-cart.com/showthread.php?t=42364)

Victor D 09-22-2008 08:25 AM

Re: Need help putting code into .tpl file - php rss2
 
The last affort to make it end shedding hardly any blood :)
Insert this somewhere into your template f.e. skin1/customer/home.tpl,
HTML Code:


{php}
echo getcwd();
{/php}


put the script rss2html.php
to directory that will be displayed after viewing this template in browser

clear cache and use this variant

HTML Code:


{php}
include("rss2html.php?XMLFILE=/phpBB3/generate_feed.php%3fcontent%3dposts%26f%255B%255D%3d17%26number_items%3d1%26sid%3d3043e6c2e27b05430edc3ddff7d95c4b&TEMPLATE=sample-template.html&MAXITEMS=1");
{/php}



All times are GMT -8. The time now is 05:32 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.