CMSB Into SimplePie

2 posts by 2 authors in: Forums > CMS Builder
Last Post: February 7, 2012   (RSS)

Re: [kcmedia] CMSB Into SimplePie

By (Deleted User) - February 7, 2012

Hi Craig,

I would suggest the following:
// create an array to store the rss feed urls from CMSB
$rssFeedArray = array();

// load the rss feeds from cmsb....

....
<?php foreach ($rss_feedsRecords as $record): ?>
Record Number: <?php echo $record['num'] ?><br/>
Title: <?php echo $record['title'] ?><br/>
Feed URL: <?php echo $record['feed_url'] ?><br/>
<?php $rssFeedArray[]= $record['feed_url']; ?>

....

// run the simplepie code
....

// set which feed to process.
$feed->set_feed_url($rssFeedArray);
...


This is just a quick idea - try dropping the above into your pages and it should work. The only proviso is that you have to load the data from CMSB first. You don't have to output anything though, you can just loop over the records to get the rssFeedUrls and add them to the rssFeedArray array.

Let me know if this helps,

Tom