RSS Feed (by forum & by cat) - Posted (31121 Views)
Retired Support Moderator
MarcelG
Posts: 2625
2625
I've been tuning the rss-feed functionality, and have come up with a RSS feed that should run on virtually all Snitz fora. Installation ; very very very easy.

21-12-2004 ; Initial version, tested at oxle.com. 22-12-2004 ; Version 1.1, working at oxle.com. 18-01-2005 ; Version 1.2, working at oxle.com. Functionallity
  • Creates a general RSS feed for all public fora : rss.asp
  • Creates a rss feed per cat, by using rss.asp?cat_id=xx
  • Creates a rss feed per forum, by using rss.asp?forum_id=xx
  • RSS 0.92 compliant
  • Includes RFC-822-compliant dates
  • Shows last post-author per topic
How to install: Copy the code below, and save it as RSS.ASP
View source of RSS.ASP (login required, use user: demo, password demo if you're a guest)

The image Create an image of your own, and save it as RSS.GIF. Be sure to adjust lines 122 and 123 to make it fit:
Code:
xml = xml & "<width>128</width>"
xml = xml & "<height>29</height>"
The Timezone Be sure to adjust lines 154 and 155 to select the correct timezone of your forum:
Code:
' define your timezone offset below. Examples : "+0100" for GMT+1, "EST", "GMT"
rfc822timezone = " +0100"
That's all.
Examples:
http://oxle.com/rss.asp
http://oxle.com/rss.asp?cat_id=14
http://www.scoutingkeentmoesel.nl/rss.asp (with different LCID, showing that the RFC822 formatting does work)

Enjoy. Any improvements/suggestions are very welcome!
BTW ; food for thought ; should 'views' by RSS feed be counted as a topic-view ? (so, increase viewcount ???)

Support -> this topic: http://www.oxle.com/topic.asp?TOPIC_ID=1865
Update 18-1-2005 Updated version, fixed some bugs.<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Advanced Member
Etymon
Posts: 2396
2396
Thank you for the code Marcel! I haven't yet ever used RSS, but it's nice to have this just in case. smile
Happy New Year,

Etymon
<
Posted
Junior Member
ILLHILL
Posts: 341
341
What script to use to display the RSS on your site? The one from the original syndication mod? And, if so, what does need to be changed?<
Posted
Support Moderator
Podge
Posts: 3776
3776
I just noticed something Marcel.
Should the <i> </i> tags be included in the rss feed?
I think its causing Trillian (and maybe other rss readers) to display the topic titles incorrectly.
This is a fragment from your own rss feed.
Code:
- <title>
Sticky: Usefull sites on the web, add to favorites
<i>(16-01-2005 13:19:10)</i>
</title>

You can see that the date and time are a new child element when they shouldn't be.
<
Posted
Retired Support Moderator
MarcelG
Posts: 2625
2625
Yep, well spotted. That piece should go!<
Posted
Support Moderator
Podge
Posts: 3776
3776
It solved the problem in Trillian for me when I took out the <i> tags.
Not sure that the date & time should be there either, its already included in the pubDate element.
I like the way you can get rss feeds by forum & category.<
Posted
Average Member
Jorrit787
Posts: 681
681
I installed it, and it seems to work fine, except for 2 things - This is the beginning of the RSS code:

<rss version="0.92">
-
<channel>
<title>The Anything Goes Forum</title>
<link>http://www.ag-forum.com/</link>
<description>The Anything Goes Forum</description>
<author/>
<image2>http://www.ag-forum.com/rss.gif</image2> -
<image>
<link>http://www.ag-forum.com/default.asp</link>
<url>http://www.ag-forum.com/oxle.jpg</url> <title>The Anything Goes Forum RSS Feed</title>
<width>42</width>
<height>20</height>
</image>

The first problem is that my forum uses an images folder, so I would like the RSS Feed to use images/RSS.gif in stead of root/RSS.gif . The second problem I'm not sure about... What does Oxle have to do with my RSS Feed?<
Posted
Retired Support Moderator
MarcelG
Posts: 2625
2625
Jorrit, oxle has nothing to do with your site. So, you should replace these lines with your images, and you can hardcode the Images folder into it, or use the variable for it. <
Posted
Average Member
Jorrit787
Posts: 681
681
Ok, I will try that. What exactly does the image do if I may ask?<
Posted
Forum Moderator
dayve
Posts: 5820
5820
I've been checking this version out and not sure if it is me or my site, but it seems sluggish when rendering the page...
http://www.burningsoulsforum.com/forum/bsf_rss.asp?forum_id=1<
Posted
Support Moderator
Podge
Posts: 3776
3776
Seems fine to me. Lightning fast.<
You Must enter a message