Hi I need help putting in a php code inside a block in this hack. I'm using simple pie for a rss feed and want to put in the following code into the block so that it shows up in the column like regular links:
Code:
<?php
require_once('simplepie.inc'); // Change this location to match where you uploaded the simplepie.inc file to.
$feed = new SimplePie();
$feed->set_feed_url('http://ml-implode.com/rss.xml');
// For everything else, we'll assume default settings
$feed->init();
echo '<ul class="feed">';
// We'll loop through all of the items in the feed and display a linked title for each of them.
foreach($feed->get_items() as $item)
{
echo '<li><a href="' . $item->get_permalink() . '" target="_blank">' . $item->get_title() . '</a></li>' . "\n";
}
echo '</ul>';
?>
For some reason I do not get the actual feed URL's but just the raw code that shows up. Any help would be great!
TIA!
MP