2012/4/27 21:12
bjuti
Just can't stay away
Posts: 871
Since: 2009/1/7 2
2012/4/27 21:56
Anonymous
Posts: 0
Since:
2012/4/28 8:27
$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 ""; foreach($xml->channel->item as $item) { foreach($elements as $element) { $$element = $disableUtf8 ? utf8_decode($item->$element) : $item->$element; } $date = formatTimestamp(strtotime($pubDate), 's'); echo ".$link."' target='_blank'>".$date.' - '.strip_tags($title).""; } echo ""; echo ".$yourTwitterUrl."'>Follow us on Twitter"; }
2012/4/28 23:17
zyspec
Module Developer
Posts: 1095
Since: 2004/9/21
$feedUrl = 'http://twitter.com/statuses/user_timeline/15268838.rss'; $yourTwitterUrl = 'http://www.twitter.com/ibleedv20'; $disableUtf8 = false; $limit = 5; // change this value to limit the number of feed items // ******************************************************** 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 ""; $i = 0; foreach($xml->channel->item as $item) { foreach($elements as $element) { $$element = $disableUtf8 ? utf8_decode($item->$element) : $item->$element; } $date = formatTimestamp(strtotime($pubDate), 's'); echo ".$link."' target='_blank'>".$date.' - '.strip_tags($title).""; if ($i < $limit) { $i++; } else { break; } } echo ""; echo ".$yourTwitterUrl."'>Follow us on Twitter"; }
2012/5/2 19:18
2012/5/4 4:56
Advanced Search
127 user(s) are online (45 user(s) are browsing Support Forums)
Members: 0
Guests: 127