PDA

View Full Version : Magpie/RSS


ldove
04-08-2005, 04:40 AM
Referring back to my post on vbulletin.org, I was referred to bring the question here. Can someone help me with this.

http://www.vbulletin.com/forum/showthread.php?postid=847150

Additional field. Well, Im kind of stumped on this one. I'm attempting to pull a additional field out of vbull, the date field, but it doesn't show anything. Here's my code.

<?PHP include('rss_fetch.inc');
define('MAGPIE_CACHE_ON', 0);
$rss = fetch_rss('http://www.xxxx.xxx/forum/external.php?type=rss2&forumids=2');
echo "<b>Headings</b>";
echo "<h4>";
foreach ($rss->items as $item) { $href = $item['link'];
$title = $item['title'];
$date = $item['date'];
echo "<li><a href=$href target='_top'>$title</a></li><br><li>$date</li>";
echo "<br>";
} echo "</h4>";
?>
It creates the new bullet for the date to go, but its empty. I've tried both 'date' and 'dc:date'.

Thoughts?

Thanks!

-Lyle

ldove
04-11-2005, 05:21 PM
Anyone?