Making a PHP summary from Tiki RSS

  • Download http://boastology.com/pages/download.php The BMashine plugin
  • insert the code from this .php file into your web page at the place where you need the summary
  • modify the link to the RSS page in the beginning
  • modify the text outputed in the for cycle in the beginning of the script to output everything you need. I used this:
for($i=1;$i<=count($myar[TITLE]);$i++) {
$title=iconv("UTF-8", "ISO-8859-13", $myar[TITLE][$i+1]); //convert the codepage (I need this)
$description=iconv("UTF-8", "ISO-8859-13", $myar[DESCRIPTION][$i]);
if($pubDate) { // Only show enteries with a publication date
$pubDate=strftime( "%d.%m.%Y"  ,strtotime($pubDate)); //Convert the date to something sensible
echo <<<EOF
<p><b>$pubDate</b> - <a href="$link">$title</a><br>
  • I also had to change this line
$tags=array("title", "link", "description", "pubDate");

  • In Tiki 1.8 there is a bug: RSS streams conflict with gzip compressed pages, so disable this feature in General features pane. You may still use php or apache level gzipping.

Page last modified on Sunday 28 March 2004 10:10:35 GMT-0000