PDA

View Full Version : External Data Provider RSS in PHP: Question


phdev
01-02-2012, 01:38 PM
Hi,

I'm using the RSS external data provider, and since vbulletin provides no in depth documentation about variables I can use, I don't know what to use to display author or forum name.

My code looks like this:

<div class="sidebar-topics">
<h3>Latest topics</h3>
<?php
include_once(ABSPATH.WPINC.'/rss.php'); // path to include script
$feed = fetch_rss('http://www.webhostingbreak.com/forum/external.php?type=rss'); // specify feed url
$items = array_slice($feed->items, 0, 3); // specify first and last item
?>

<?php if (!empty($items)) : ?>
<ul>
<?php foreach ($items as $item) : ?>

<li>
<p><a href="<?php echo $item['link']; ?>"><?php echo $item['title']; ?></a></p>
<span>HERE'S WHERE I WANT TO DISPLAY THE USERNAME AND FORUM NAME</span>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>

</div>

What should I do?

Thanks!