Okay, I am not a php guru, but have fumbled along this far.
I have been running this hack for quite a while now, and am trying to get some scrolling news across the top of the page. I need to include some PHP code into my myvbindex.php that will scroll this news across the top.
Here is the code:
PHP Code:
// rss news
define('MAGPIE_DIR', '/home/mhogamin/includes/magpie/');
require_once(MAGPIE_DIR.'rss_fetch.inc');
$url = 'http://www.dailygame.net/rss.xml';
if ( $url ) {
$rss = fetch_rss( $url );
echo "<marquee>";
$count=0;
foreach ($rss->items as $item) {
if($count=="10"){
break;
}
$count++;
$href = $item['link'];
$title = $item['title'];
echo "<a href=$href><font size=-1>$title</font></a>";
echo " ";
}
echo "</marquee>";
}
The code works within the index.php fine but puts it at the top of the page. I have been trying to put a variable called $rssnews into the index template, but am lost at how I should go about next steps so that this code executes in the right location.
Thanks much for any help!!!