![]() |
Help with consuming RSS feed.
vBulletin newbie. I need to include another sites RSS feed (with MagpieRSS), but can't figure out how to get a php include to work. I've tried putting it in the header with and without the <?php ?>. Will an <IFRAME SRC=... work? or is there a "proper" way of doing this in vB?
TIA, Dave |
If you want to have it make threads in your forum, then you need to use the RSS Feeds Manager in the Admin CP.
|
No, the other way around. Another site creates an RSS feed. I want to pick up that feed and present it (links to articles) on my forum pages.
|
Yeah, that's what the RSS Feed Manager does.
|
Thank you, I really appreciate your help, but...
<sigh> I am now getting "XML Error: Empty document at Line 1" when I try to preview http://www.macworldcanada.ca/newsrss.xml. I'm sure the feed is good, because this code (on the same feed, using magpierss) works. define('MAGPIE_DIR', 'C:\\Inetpub\wwwroot\\dave\MagpieRSS\\'); require_once(MAGPIE_DIR.'rss_fetch.inc'); $url = 'http://www.macworldcanada.ca/newsrss.xml'; $rss = fetch_rss( $url ); echo '<div style="width:160px;background-color:silver;padding:2px;border:solid black 1px">'; echo '<strong>' . $rss->channel['title'] . '</strong>'; foreach ($rss->items as $item) { $href = $item['link']; $title = $item['title']; echo "<br /><a href=$href" . ' target="_blank">' . $title . "</a>"; } echo '</div>'; |
When I input the feed into my RSS Feed Manager and do a preview, it is just fine. It also posted just fine on my test board. Try reuploading the rssposter.php file and any other related files to that one.
|
All times are GMT. The time now is 02:13 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|