How to create RSS / XML feeds

Is Coranto not working properly for you? Here's where to ask for support help; for best results, follow these steps:
  • - Check your core/addon documentation for possible solutions
  • - Search these forums for similar problems that have already been solved
  • - If you're still stumped, check out THIS TOPIC, and post your question in this forum!!

Moderators: Spunkmeyer, Dale Ray, SrNupsen, Bluetooth, Jackanape

How to create RSS / XML feeds

Postby Kepster » Wed Jan 10, 2007 10:44 pm

I was wondering what is the Coranto solution to the FireFox Live Bookmarks and the Live Feeds or whatever they are for IE7?

I know that you can't "subscribe" to the old .CDF format that came with one of the old NewPro add-ons.

I've casually been looking around for a new newsprogram because I feel a bit outmoded. But if Coranto Lives! Hehe and we can get support for it... well who knows 8) Maybe I'll be upgrading or whatever to switch over to Coranto.

Please pardon my ignorance. I'm definately not a "coder" I'm just a simple WebDesigner. If my arms were any longer my knuckles would drag :P
Kepster
 
Posts: 9
Joined: Wed Jan 10, 2007 10:24 pm
Location: Battle Creek Michigan

Postby Lumberjack » Wed Jan 10, 2007 11:07 pm

I think if you look at the earlier versions, there was some kind of script that would convert the Newspro databases into the new Coranto format. I think those older versions are still online at coranto.gwe ilo.org, so maybe you can start there. I use one of the RSS addons for Coranto and it works pretty well, but I think the RSS produced doesn't have some of the newer spec features. It works well enough for use in for example the firefox toolbar folder. And perhaps it can be updated too, maybe I'll take a look when I get set up for perl and local apache.
Lumberjack
 
Posts: 555
Joined: Wed Jan 10, 2007 7:22 pm
Location: Oxford, UK

Postby SrNupsen » Wed Jan 10, 2007 11:26 pm

I don't have time to dig it up right now, but in the old forums there is a detailed description of how to customize your style to produce valid RSS 2.0.

Be it XML, RSS or any other format, you actually only need to read up on the specs (how the output should be formatted), and then you can use a Coranto style to achieve just that.
-----------------------------------------------------------------------------------------------------
Coranto is free software. I am available for custom work or troubleshooting.

http://www.sundaune.no - transkripsjon, webdesign, nettsider, tekstbyrå
http://www.vagbladet.no - satire, politikk, kultur, sport, nettavis
-----------------------------------------------------------------------------------------------------
SrNupsen
 
Posts: 2229
Joined: Tue Jan 09, 2007 6:46 pm
Location: Nesodden, outside Oslo, Norway

Postby Kepster » Thu Jan 11, 2007 12:12 am

to be read by the Live Bookmarks feature or Live Feeds I think the output has to be an xml file.
Kepster
 
Posts: 9
Joined: Wed Jan 10, 2007 10:24 pm
Location: Battle Creek Michigan

Postby Dale Ray » Thu Jan 11, 2007 8:45 pm

You can download the newspro to Coranto conversion script from this page.

You can get the FeedBuilder Addon which will create RSS 2.0 valid feeds with the current stable Coranto 1.24 release.

I wrote the addon and use it at the Calumet College Softball Information site if you want to check out a feed created with it.

Further Reading:

FeedBuilder Addon Docs
Feed Builder Addon - Build RSS 2.0 Feeds
RSS feed creation - Discussion and Solution
Dale Ray
User avatar
Dale Ray
 
Posts: 1004
Joined: Sun Jan 19, 2003 6:02 pm
Location: NW Indiana

Postby Lumberjack » Thu Jan 11, 2007 9:24 pm

SrNupsen wrote:I don't have time to dig it up right now, but in the old forums there is a detailed description of how to customize your style to produce valid RSS 2.0.

Be it XML, RSS or any other format, you actually only need to read up on the specs (how the output should be formatted), and then you can use a Coranto style to achieve just that.


Ah yes, that figures!
Lumberjack
 
Posts: 555
Joined: Wed Jan 10, 2007 7:22 pm
Location: Oxford, UK

Postby Kepster » Thu Jan 11, 2007 10:29 pm

Thanks Dale!

I'll get to work on it as soon as I get some serious web time. 8)

Looks like it all works good on your site. The output to an .xml file works great with Firefox.
Kepster
 
Posts: 9
Joined: Wed Jan 10, 2007 10:24 pm
Location: Battle Creek Michigan

Postby Dale Ray » Fri Jan 12, 2007 7:32 am

If you search Google for "Coranto using the Feed Builder Addon" you will see other sites using Coranto and the Feed Builder addon. That is the generator string I put into the addon.
Dale Ray
User avatar
Dale Ray
 
Posts: 1004
Joined: Sun Jan 19, 2003 6:02 pm
Location: NW Indiana

Postby Musicvid » Sun Jan 21, 2007 10:24 pm

...in the old forums there is a detailed description of how to customize your style to produce valid RSS 2.0.

I reposted the Style and Template code in the new forums. Works with Coranto 1.31.5. Also works with Live Bookmarks in any browser.
http://www.coranto.org/forum/viewtopic.php?t=109
Musicvid
 
Posts: 138
Joined: Wed Jan 17, 2007 1:05 am
Location: Western America

Postby SrNupsen » Sun Feb 11, 2007 11:26 pm

Dale, can we have the option to specify encoding in the next release? :) My Norwegian characters aren't too comfortable inside UTF-8, making my feed fail validation.

(And also, I have the same problem on 1.31.5 with a) builds timing out and/or giving the flock error and b) </channel> and </rss> tags missing at the end.)

[EDIT: Ofcourse the feed is valid now, after I manually changed encoding and added missing closing tags: http://www.vagbladet.no/10sistefravagbladet.xml ]
-----------------------------------------------------------------------------------------------------
Coranto is free software. I am available for custom work or troubleshooting.

http://www.sundaune.no - transkripsjon, webdesign, nettsider, tekstbyrå
http://www.vagbladet.no - satire, politikk, kultur, sport, nettavis
-----------------------------------------------------------------------------------------------------
SrNupsen
 
Posts: 2229
Joined: Tue Jan 09, 2007 6:46 pm
Location: Nesodden, outside Oslo, Norway

Postby Dale Ray » Mon Feb 12, 2007 1:40 am

SrNupsen,

Are you using FeedBuilder with 1.31.5? If so how did you get past the FLOCK problem (see this thread in the archived forums).

Yes, adding an extra setting for encoding should be fairly easy.
Dale Ray
User avatar
Dale Ray
 
Posts: 1004
Joined: Sun Jan 19, 2003 6:02 pm
Location: NW Indiana

Postby Dale Ray » Mon Feb 12, 2007 6:59 am

SrNupsen wrote:Dale, can we have the option to specify encoding in the next release? :) My Norwegian characters aren't too comfortable inside UTF-8, making my feed fail validation.


Try this: http://www.corantodemo.net/_files/test_feed_builder.zip

The above version adds a setting for a user specified character encoding (and a dead link in the docs). This setting is on a per profile basis. If you do not need this functionality there is really no need to try it. You must know what character encoding you need and set it properly, the only error checking done is to make sure that the value is not empty.

Please treat this as a test version - I did very limited testing on my local setup with the changed version.
Dale Ray
User avatar
Dale Ray
 
Posts: 1004
Joined: Sun Jan 19, 2003 6:02 pm
Location: NW Indiana

Postby SrNupsen » Mon Feb 12, 2007 10:52 am

The extra encoding setting works perfectly.

I got past the flock issue by disabling it in cruser.pl - which means; I didn't really get past it. Not a viable solution.

What intrigues me even more is the missing </channel> and </rss> tags at the very end of the ouput file - any idea why this occurs?
-----------------------------------------------------------------------------------------------------
Coranto is free software. I am available for custom work or troubleshooting.

http://www.sundaune.no - transkripsjon, webdesign, nettsider, tekstbyrå
http://www.vagbladet.no - satire, politikk, kultur, sport, nettavis
-----------------------------------------------------------------------------------------------------
SrNupsen
 
Posts: 2229
Joined: Tue Jan 09, 2007 6:46 pm
Location: Nesodden, outside Oslo, Norway

Postby Dale Ray » Mon Feb 12, 2007 3:05 pm

SrNupsen wrote:What intrigues me even more is the missing </channel> and </rss> tags at the very end of the ouput file - any idea why this occurs?


That is part of the flock problem, at the point where it writes those last two lines and then closes the file it dies. I will see if I can at least get it to finish the file.

Disabling flock shouldn't be a problem on a one user installation or where you don;t runcron jobs, but I would like some help figuring out why 1.31.5 has the problem and 1.24 does not.

Thanks for the feedback on the setting for the character coding.
Dale Ray
User avatar
Dale Ray
 
Posts: 1004
Joined: Sun Jan 19, 2003 6:02 pm
Location: NW Indiana

Postby SrNupsen » Mon Feb 12, 2007 3:10 pm

OK good. But note that I still have those missing closing tags, even though I disabled flock. In case that matters.
-----------------------------------------------------------------------------------------------------
Coranto is free software. I am available for custom work or troubleshooting.

http://www.sundaune.no - transkripsjon, webdesign, nettsider, tekstbyrå
http://www.vagbladet.no - satire, politikk, kultur, sport, nettavis
-----------------------------------------------------------------------------------------------------
SrNupsen
 
Posts: 2229
Joined: Tue Jan 09, 2007 6:46 pm
Location: Nesodden, outside Oslo, Norway

Next

Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 0 guests

cron