DelMarSurf
06-05-2006, 04:32 PM
I want to display some rss feeds on the main page of a directory using the rss to html parser Carp.
I thought I could just add some Handlers: .tpl -> application/x-httpd-php and place the Carp code:
<?php
require_once '/home/puppythr/carp/carp.php';
// Add any desired configuration settings below this line using "CarpConf" and other functions - ARTICLES FEED
CarpConf('cborder','');
CarpConf('iorder','link,date,desc');
CarpConf('bitems','<ul>');
CarpConf('aitems','</ul>');
CarpConf('maxidesc',200);
CarpConf('atruncidesc','...read more');
CarpConf('bi','<li>');
CarpConf('ai','</li>');
CarpConf('maxitems',5);
CarpConf('poweredby','');
CarpCacheShow('http://puppythrill.com/blog/xmlsrv/rss2.php?blog=3');
?>
On the page. All I get is a display of the code. I found Jim Westergrens example at: http://www.jimwestergren.com/tutorial-rss-feed-inside-smarty-template-files/
Carp already takes care of the DB side. Any ideas?
DEL
I thought I could just add some Handlers: .tpl -> application/x-httpd-php and place the Carp code:
<?php
require_once '/home/puppythr/carp/carp.php';
// Add any desired configuration settings below this line using "CarpConf" and other functions - ARTICLES FEED
CarpConf('cborder','');
CarpConf('iorder','link,date,desc');
CarpConf('bitems','<ul>');
CarpConf('aitems','</ul>');
CarpConf('maxidesc',200);
CarpConf('atruncidesc','...read more');
CarpConf('bi','<li>');
CarpConf('ai','</li>');
CarpConf('maxitems',5);
CarpConf('poweredby','');
CarpCacheShow('http://puppythrill.com/blog/xmlsrv/rss2.php?blog=3');
?>
On the page. All I get is a display of the code. I found Jim Westergrens example at: http://www.jimwestergren.com/tutorial-rss-feed-inside-smarty-template-files/
Carp already takes care of the DB side. Any ideas?
DEL