PDA

View Full Version : Add-On Releases - Change External.php To RSS Feed For One Forum Only


SBlueman
12-15-2007, 10:00 PM
Step 1: Create a file called rss.php and add this to the file:
<?
header("Location: http://yoursite.com/forum_feed_address");
?>

Example: On my site this is the addess I have entered: http://gridironfans.com/forums/external.php?type=RSS2&forumids=109&order=1

Step 2: Upload to your root directory folder (http://yoursite.com/")

Step 3: Template Edit:

AdminCP/Style Manager/All Style Options

In headerinclude:

Find:
<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] RSS Feed" href="external.php?type=RSS2" />
<if condition="$show['foruminfo'] OR $show['threadinfo']">
<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] - $foruminfo[title_clean] - RSS Feed" href="external.php?type=RSS2&amp;forumids=$foruminfo[forumid]" />

Change To:
<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] RSS Feed" href="http://yoursite.com/rss.php" />
<if condition="$show['foruminfo'] OR $show['threadinfo']">
<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] - $foruminfo[title_clean] - RSS Feed" href="http://yoursite.com/rss.php" />

(Don't forget to edit both instances of "http://yoursite.com/rss.php" to the correct path)

shadowevil
12-16-2007, 08:00 AM
demo or screenshot ??

nyunyu
12-16-2007, 09:26 AM
nice, as seen on your site..

thank you for this.

SBlueman
12-16-2007, 04:37 PM
demo or screenshot ??

You can see how it's incorporated at my website, http://gridironfans.com/

Not something that would have a screenshot though.

johnrizz
12-16-2007, 08:15 PM
its a bookmark?

SBlueman
12-16-2007, 08:52 PM
No, all it does is change external.php so instead of your site pumping out a default RSS feed for the entire site it pumps out a RSS feed for one specific news feed.

valdet
12-16-2007, 09:22 PM
I am a bit stumped with the first part, when you say : Create a file called rss.php and add this to the file:
<?
header("Location: http://yoursite.com/forum_feed_address");
?>
That is a simple redirect script.

Is there something I am missing here?

How can we set it so the default forumid (like 109 in your case) will be changed as per forum we are viewing?

johnrizz
12-16-2007, 09:32 PM
No, all it does is change external.php so instead of your site pumping out a default RSS feed for the entire site it pumps out a RSS feed for one specific news feed.

ok I see thanks

Zi55
12-18-2007, 12:10 AM
How i can edit external.php to don't appear only one forum threads ?
Thanks

SBlueman
12-18-2007, 12:55 AM
Um...what?

pcoskat
12-18-2007, 05:57 PM
Love this idea!

jmpsmash
02-07-2008, 04:18 PM
is it possible to have it pump RSS for the specified forum and all its sub-forums?