40
Haha :) What's there not understanable? :)
This code:
$feedUrl = 'http://twitter.com/statuses/user_timeline/15268838.rss';
$yourTwitterUrl = 'http://www.twitter.com/ibleedv20';
$disableUtf8 = false;
// ********************************************************
require XOOPS_ROOT_PATH.'/class/snoopy.php';
$snoopyDog = new Snoopy();
$snoopyDog->fetch($feedUrl);
$xml = simplexml_load_string($snoopyDog->results);
if($xml !== false) {
$elements = array('title', 'description', 'pubDate', 'guid', 'link');
echo "<ul>";
foreach($xml->channel->item as $item) {
foreach($elements as $element) {
$$element = $disableUtf8 ? utf8_decode($item->$element) : $item->$element;
}
$date = formatTimestamp(strtotime($pubDate), 's');
echo "<li><a href='".$link."' target='_blank'>".$date.' - '.strip_tags($title)."</a></li>";
}
echo "</ul>";
echo "<br /><a href='".$yourTwitterUrl."'>Follow us on Twitter</a>";
}
...shows all the feeds from rss feed eg. 15.
I need to show only 5 or 6 or 1 :)