1
First I must say I am not really experienced with php and making blocks but here goes anyways.I am putoff by the whole make a buck on Twitter trend.I am trying to create a w=125 x h=250 block that shows my community leaders latest Twitter posts.Just the lastest.I want to host the background image in my database.Is this so hard? I dont want to create a buisiness.Just show the top ten leaders in the community.I see blocks with ads but yuk to them.If I can get thre right php maybe I can do the css and figure out how to link the backgrond image.Or maybe I am missing a piece of the puzzle as to why noone wants to give this away.the php I am using is
$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 "- ".$date.' - '.strip_tags($title)."
";
}
echo "
";
echo "
Follow us on Twitter";
}