vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Integrate an RSS feed.... (https://vborg.vbsupport.ru/showthread.php?t=62524)

mavrick 03-15-2004 09:45 AM

Integrate an RSS feed....
 
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

Quote:

Originally Posted by BarBeQue
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

Quote:

Originally Posted by noonespecial
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

Code:

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:
HTML Code:

<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;)

HTML Code:

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


All times are GMT. The time now is 01:42 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
  • Page Generation 0.02728 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete