Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-02-2012, 12:38 PM
phdev phdev is offline
 
Join Date: Aug 2006
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default External Data Provider RSS in PHP: Question

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:

PHP Code:
<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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:14 PM.


Powered by vBulletin® Version 3.9.0
Copyright ©2000 - 2017, vBulletin Solutions Inc.