Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 RSS Feed (by forum & by cat)
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 13

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 21 December 2004 :  16:17:43  Show Profile  Visit MarcelG's Homepage  Reply with Quote
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:
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:
' 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.<

portfolio - linkshrinker - oxle - twitter

Edited by - MarcelG on 16 February 2007 15:30:31

Etymon
Advanced Member

United States
2385 Posts

Posted - 28 December 2004 :  09:39:01  Show Profile  Visit Etymon's Homepage  Reply with Quote
Thank you for the code Marcel! I haven't yet ever used RSS, but it's nice to have this just in case.

Happy New Year,

Etymon
<
Go to Top of Page

ILLHILL
Junior Member

Netherlands
341 Posts

Posted - 01 January 2005 :  20:26:24  Show Profile  Reply with Quote
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?<

CLPPR.com - All The News Only Seconds Away
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 16 January 2005 :  09:19:37  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
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.
- <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.

<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 16 January 2005 :  14:43:56  Show Profile  Visit MarcelG's Homepage  Reply with Quote
Yep, well spotted. That piece should go!<

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 16 January 2005 :  15:02:31  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
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.<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 24 January 2005 :  17:22:06  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message  Reply with Quote
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?<

eXtremeGossip
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 25 January 2005 :  02:39:02  Show Profile  Visit MarcelG's Homepage  Reply with Quote
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.
<

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 25 January 2005 :  17:56:04  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message  Reply with Quote
Ok, I will try that. What exactly does the image do if I may ask?<

eXtremeGossip
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 25 January 2005 :  21:02:51  Show Profile  Visit dayve's Homepage  Reply with Quote
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<

Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 25 January 2005 :  21:06:41  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
Seems fine to me. Lightning fast.<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 26 January 2005 :  01:58:36  Show Profile  Visit MarcelG's Homepage  Reply with Quote
quote:
Originally posted by Jorrit787

Ok, I will try that. What exactly does the image do if I may ask?

The image is shown in (most) RSS readers.
Example:
<

portfolio - linkshrinker - oxle - twitter

Edited by - MarcelG on 26 January 2005 01:59:11
Go to Top of Page

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 26 January 2005 :  11:49:41  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message  Reply with Quote
All that is showing when opening my forum's RSS feed with SharpReader is this:

There are 45 replies, with the last one on Jan 26 2005 at 05:10:57 by suzyQ222

Isn't the whole topic supposed to show?<

eXtremeGossip
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 26 January 2005 :  14:43:13  Show Profile  Visit MarcelG's Homepage  Reply with Quote
That depends on what you want ; I made this one to show only the info about the topic.
I've also got the headlines.asp (http://www.oxle.com/source.asp?page=headlines.asp) and that one shows the content of the topic (not the replies).<

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

gelliott
Junior Member

USA
268 Posts

Posted - 31 January 2005 :  22:33:24  Show Profile  Reply with Quote
Marcel - thanks for the code, this works great. A few notes though - (a) the TTL tag is a element of Channel, not Item, thus needs to be up near the title (line 115-116 maybe?). Also, in your source you have an author tag at line 116 using a Topic_Last_Post_Author variable that has not yet been defined. I have changed that to the title of my forum.<

* The optimist says the cup is half full. The pessimist says it's half empty. But the engineer knows the truth - the cup's design is incorrectly sized.
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 01 February 2005 :  02:35:22  Show Profile  Visit MarcelG's Homepage  Reply with Quote
Thanks for the feedback Gelliot. I'll be looking into it later today, when I get back from the dentists.....(I don't wánt to.....boohoo)<

portfolio - linkshrinker - oxle - twitter
Go to Top of Page
Page: of 13 Previous Topic Topic Next Topic  
Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07