R*NightOwl
08-23-2009, 10:00 PM
This is a php script which outputs posts made in the forum in RSS format,
this is not an addition to the existing RSS system but rather an independent PHP file which generates "mock" RSS information.
Format of output is this:
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<item>
<title>Title of the forum topic</title>
<postTitle>Title of my post</postTitle>
<link>http://127.0.0.1/vb/showpost.php?p=4</link>
<pubDate>Sat, 22 Aug 2009 21:42:48 CDT</pubDate>
<description>this is the post content</description>
<thread>http://127.0.0.1/vb/showthread.php?t=1&goto=newpost</thread>
<dc:creator>s0beit</dc:creator>
<guid isPermaLink="true">http://127.0.0.1/vb/showthread.php?t=1</guid>
</item>
</channel>
</rss>
Each post is exported, including new topics if you configure your URL to do such.
Options:
nohtml - strip html from RSS fields
include - specify which forums to include in the feed (separated by commas)
exclude - specify which forums to exclude in the feed (separated by commas)
bbcode - strip bbcode from RSS fields
newline - strip newline from RSS fields
showthread - show new thread posts in the feed
Here is an example URL:
http://localhost/vb/external_post.php?bbcode=1&nohtml=1&newline=1&exclude=1,3
From an RSS-feed reading TCL script for eggdrop, which is what it was originally designed for:
(20:54:18) (&TGSBot) [NEW POST] URL OMITTED
(20:54:18) (&TGSBot) ibtrippin226: pretty sweet? you fkn nerdgasmed over it on irc probably would be a good idea
(21:01:17) (&TGSBot) [NEW POST] URL OMITTED
(21:01:18) (&TGSBot) Konota: -Points to signature-
(21:02:18) (&TGSBot) [NEW POST] URL OMITTED
(21:02:19) (&TGSBot) b0mbowns: Chocolate Rain by Tay ZondayListen to the diarrhea version did I spell diarrhea correctly? That is a pretty hard word to memorize.
I must state one last time that this is "mock" RSS, i do not have an XML class or RSS class to design the output, i simply echo information, if this is a problem to you then you can fix it yourself.
This is also my first "mod", be nice.
this is not an addition to the existing RSS system but rather an independent PHP file which generates "mock" RSS information.
Format of output is this:
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<item>
<title>Title of the forum topic</title>
<postTitle>Title of my post</postTitle>
<link>http://127.0.0.1/vb/showpost.php?p=4</link>
<pubDate>Sat, 22 Aug 2009 21:42:48 CDT</pubDate>
<description>this is the post content</description>
<thread>http://127.0.0.1/vb/showthread.php?t=1&goto=newpost</thread>
<dc:creator>s0beit</dc:creator>
<guid isPermaLink="true">http://127.0.0.1/vb/showthread.php?t=1</guid>
</item>
</channel>
</rss>
Each post is exported, including new topics if you configure your URL to do such.
Options:
nohtml - strip html from RSS fields
include - specify which forums to include in the feed (separated by commas)
exclude - specify which forums to exclude in the feed (separated by commas)
bbcode - strip bbcode from RSS fields
newline - strip newline from RSS fields
showthread - show new thread posts in the feed
Here is an example URL:
http://localhost/vb/external_post.php?bbcode=1&nohtml=1&newline=1&exclude=1,3
From an RSS-feed reading TCL script for eggdrop, which is what it was originally designed for:
(20:54:18) (&TGSBot) [NEW POST] URL OMITTED
(20:54:18) (&TGSBot) ibtrippin226: pretty sweet? you fkn nerdgasmed over it on irc probably would be a good idea
(21:01:17) (&TGSBot) [NEW POST] URL OMITTED
(21:01:18) (&TGSBot) Konota: -Points to signature-
(21:02:18) (&TGSBot) [NEW POST] URL OMITTED
(21:02:19) (&TGSBot) b0mbowns: Chocolate Rain by Tay ZondayListen to the diarrhea version did I spell diarrhea correctly? That is a pretty hard word to memorize.
I must state one last time that this is "mock" RSS, i do not have an XML class or RSS class to design the output, i simply echo information, if this is a problem to you then you can fix it yourself.
This is also my first "mod", be nice.