PDA

View Full Version : Integrate an RSS feed....


mavrick
03-15-2004, 09:45 AM
How can I integrate a RSS feed into a VB forum. I have a section on the right of the forums for news and would like to include this news feed:

http://www.php.net/news.rss

How can I do that?

Thanks

BarBeQue
03-26-2004, 01:02 PM
lol...

actually i would like that too very much :D

Catch-22|BL
03-27-2004, 01:35 PM
If I understand you correctly, there is already a hack released for this issue:

https://vborg.vbsupport.ru/showthread.php?t=60899

[Edit: Cleaning up some outdated information....]

BarBeQue
03-27-2004, 09:09 PM
Hmm... i don't want it in a forum though, just the url in a sidebar left menu.

I saw that hack, but it sounds uber complicated to me with bots posting, while all i need it the url added to a menu.

Isn't there an easier way?

dpkm
03-30-2004, 07:46 PM
I'm looking for this as well. I'd like to include an RSS feed on each forum page in the right-hand space beside the logo in the header. I have a PHP XML parser (ONYX-RSS), but not sure how to go about including it properly.

magnus
03-30-2004, 10:31 PM
CARP will do everything you need.

BarBeQue
03-31-2004, 04:25 AM
Hmm, carp does sound nice.
I'll check it out tomorrow, thanks for the tip!

noonespecial
12-29-2004, 08:04 AM
Hmm, carp does sound nice.
I'll check it out tomorrow, thanks for the tip!
im using carp. . how do i assign the output to a varible so i can use it in a template tho?

tomshawk
12-29-2004, 01:24 PM
im using carp. . how do i assign the output to a varible so i can use it in a template tho?

put this in the phpinclude_start template


ob_start();
require("path/to/show_news.php");
$news = ob_get_contents();
ob_end_clean();

then you can put "$news" where ever you want. ;)

AN-net
12-29-2004, 02:14 PM
to get the RSS feed for a specific forum you must first turn on the external.php option in your admincp via vb options. then to include a link to the forum's RSS feed by simply including this url in the forumdisplay template:

<a href="$vboptions[bburl]/external.php?type=RSS&f=$foruminfo[forumid]">$foruminfo[title] RSS</a>


also for others who want to take this is a step further and allow some browsers to pick your RSS feed up automatically include this line in the forumdisplay template header;)


<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] - $foruminfo[title]" href="$vboptions[bburl]/external.php?type=RSS&f=$foruminfo[forumid]" />