Author |
Topic |
Sparks
Starting Member
USA
6 Posts |
Posted - 18 July 2003 : 16:04:30
|
I have implemented RSS feed import and export on my forums. I will gladly make the code available to anyone who wants it, but I have not yet pulled it into offical MOD format files.
It's exceptionally easy to implement, though. I'll detail it a little here.
RSS DISPLAY View the actual feed other sites will hit to load your content here.
View the RSS-capable logo in the right nav bar here.
View the RSS Feed Information page here.
View an imported RSS feed from another site here. Look on bottom of the page for "Recent Topics From Access Denied BBS"
See my feed imported on another site here. (bottom of page, look for alien icon)
HOW IT WORKS 1. The RSS feed is generated by a VBScript class that runs a query on the database and parses the information into an XML block that is delivered, real-time, to whomever calls the page.
2. The RSS Reader, which allows you to load content from someone elses' site, is a VBScript class that hit the site providing a feed and saves the RSS feed as an XML file on your filesystem. Each feed has a configurable "archive timeout" to prevent bandwidth issues. The system parses the locally stored XML file until it expires and then it retreives the latest version from the other person's website. For instance, on my site, I store the feed for 1 hour and display the local version until the hour is up - at which time I refresh my local copy and start the process over again.
Again, I will share the code. Just email me at ron@iscifistory.com with the subject "RSS Code" and I will give you what you need. I have never made a Snitz Mod before, so if anyone is willing to assist me in pulling this into an official mod, I would be most appreciative.
Thanks,
|
-- Ron Sparks http://www.iscifistory.com |
Edited by - Sparks on 18 July 2003 16:19:51 |
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
|
Sparks
Starting Member
USA
6 Posts |
Posted - 18 July 2003 : 17:03:40
|
RichardKinser -
Sweet. I looked (glanced, actually), but did not see a MOD for creation and import of RSS feeds. As you have one here, does that mean there IS a mod or is it custom code just for this forum?
|
-- Ron Sparks http://www.iscifistory.com |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 18 July 2003 : 17:10:04
|
it's just some custom code I did back when I stumbled on some other sites doing the same. Just wanted to do it just to do it.
you can download the code from here if you want it:
http://www23.brinkster.com/richsnitz/rssfeed.zip (right-click and Choose "Save Target As...") |
|
|
Astralis
Senior Member
USA
1218 Posts |
Posted - 20 July 2003 : 16:22:02
|
I'm not sure how RSS works. How does someone grab the content? What makes this better than the syndication mod? |
|
|
Astralis
Senior Member
USA
1218 Posts |
Posted - 20 July 2003 : 16:26:11
|
Sparks,
I'm getting this error on your website after logging in (the content that you made available can only be accessed through registration).
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'sha256'
/forums/forum/inc_header.asp, line 194
|
|
|
Astralis
Senior Member
USA
1218 Posts |
|
Bob Dobbs
Starting Member
USA
29 Posts |
Posted - 02 September 2003 : 10:07:42
|
quote: Originally posted by RichardKinser
it's just some custom code I did back when I stumbled on some other sites doing the same. Just wanted to do it just to do it.
you can download the code from here if you want it: click here
Thanks, Richard. I've been looking for something like that for awhile but had the slightest idea on how to go about it.
One question, though... is it possible to put the content of the topic in the feed with a link to the forum if they want to reply? My reasoning for that would be for the people who generally don't want their web browsers open at work or just want to browse while they work and possibly reply later on but still be able to read everything as it happens.
I can sorta figure out what's going on in the code, but as far as adding the right elements to get my desired effect, i'm lost. I already screwed it up once trying.
Again, thanks. -Dobbson |
|
|
VodkaFish
Average Member
USA
654 Posts |
Posted - 02 September 2003 : 21:51:41
|
I almost released an rss feed for my site. It was generated just like these here. However, I decided it would be a bit more efficient to create a flat xml file and let people grab from there, so I'm about to start with that. I'd suggest it for anyone who feels their rss feed might be used frequently. |
v ø d k â f ï § h |
|
|
ROB
Junior Member
USA
347 Posts |
Posted - 02 October 2003 : 16:11:18
|
quote: Originally posted by RichardKinser
it's just some custom code I did back when I stumbled on some other sites doing the same. Just wanted to do it just to do it.
you can download the code from here if you want it: click here
Rich, do you have an updated link to your zip? That one has gone cold. |
Jeff (ROB) Hester BigBlueNetwork | BigBlueBall | Christian Church Today |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
|
ROB
Junior Member
USA
347 Posts |
|
ROB
Junior Member
USA
347 Posts |
Posted - 02 October 2003 : 22:02:57
|
Is there a function to htmlencode the subject? Currently if the topic subject contains an ampersand, IE's XML parser chokes on it. |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 02 October 2003 : 22:18:18
|
on line #98 change:
Topic_Subject = chkstring(allActiveTopics(fT_SUBJECT,RowCount),"display") to: Topic_Subject = chkstring(replace(allActiveTopics(fT_SUBJECT,RowCount),"&","&"),"display") |
|
|
ROB
Junior Member
USA
347 Posts |
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 03 October 2003 : 01:12:57
|
you're welcome |
|
|
Topic |
|