Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 06:26:00 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1] 2   Go Down
Print
Author Topic: problem with rss in news module - FIXED  (Read 8562 times)
sgharris

Offline Offline

Posts: 18


« on: January 27, 2008, 10:20:04 PM »

I'm trying to set up a rss feed from my site for my students to be able to access homework assignments.
I tried pointing to the rss.php address as follows:
www.bio-geek.com/modules/news/page_id=7
But, when I subscribe to the feed, all I get is a "Live bookmark failed to load" message.

Any ideas what I'm doing wrong?

Thanks

I figured it out.  I tried to validate the rss at feedvalidator.org and it showed an error in my page description that was causing it to not validate.  I didn't know this was a problem, but I changed an ampersand to the word "and" and everything works fine now.  Kind of strange, but then I'm pretty much just flying blind and learning as I go anyway     smiley
« Last Edit: January 27, 2008, 11:08:34 PM by sgharris » Logged
xesrochers

Offline Offline

Posts: 5


« Reply #1 on: April 25, 2008, 02:38:01 AM »

The problem is related to the fact the XML does not like having & in the text.  The RSS Feed modules needs to replace the & with &.

That being said, I created 2 modules based on the RSS Feed module... as I needed:
   - Multi-lingual capability,
   - Various RSS 2.0 node fixes ... including the & and the link nodes
   - Other RSS nodes data population

The modules are named
   - RssNewsFeed (lists out the posted news items)
   - RssSiteFeed (lists out the updated pages)

Our translation team monitors the site using these RSS feed modules... and translate the posted pages as they come...

Pretty cool hey!

Modules attached for your convenience...
« Last Edit: April 29, 2008, 02:50:41 AM by xesrochers » Logged
Argos
Moderator
**
Offline Offline

Posts: 2161


WWW
« Reply #2 on: September 21, 2008, 01:43:53 AM »

Cool indeed  grin

Is it possible to refer a feed to a certain group id, page id or section id? I use several News-modules per site, soem of them modified to function as other pages. Now all posts in all News-modules are thrown together in one big RSS feed...

Another question: would it be possible to use the first X characters of the main content as the source for the description fields in the feed, instead of the short content of each post?
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
spida

Offline Offline

Posts: 203


« Reply #3 on: November 11, 2008, 08:06:14 PM »

[modified message]

Hey xesrochers,
hey everyone,

thank you for your contribution, xesrochers!

When running the feedvalidator.org I am getting errors:
- pudate is incorrect
- real name missing
- missing atom link

see validation results here: http://www.feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.e-daktik.de%2Fmodules%2Frssnewsfeed%2Frssnewsfeed.php%3Flanguage%3Dde

How can I fix these issues asap?

Best regards,
spida
« Last Edit: November 11, 2008, 08:40:13 PM by spida » Logged
spida

Offline Offline

Posts: 203


« Reply #4 on: November 13, 2008, 05:11:56 PM »

Hi there,

I figuered out the php string for the correct date and time display in <pubdate>

in rssnewsfeed.php find
Code:
$rss_feed_pub_date = date("Y-M-d", strtotime("today"))." 00:00:00 GMT";

and replace it with
Code:
$rss_feed_pub_date = date("D, d M Y", strtotime("today"))." 00:00:00 GMT";

This code will result in a valid pubdate-string and the rss-feed will be validated by feedvalidator.org

I also got rid of the warning about a real name missing. Since I wanted to change <webmaster> to <managingEditor> anyways, I took this code
Code:
echo "<webMaster>".SERVER_EMAIL."</webMaster>";
and replaced it with
Code:
echo "<managingEditor>".SERVER_EMAIL." (Your Real Name Here)</managingEditor>";

I also started to work on the missing atom link, but this is not completed yet. Maybe someone can help. What I did so far:
I added to the line
Code:
<rss version='2.0'>
some atom definition
Code:
<rss version='2.0' xmlns:atom='http://www.w3.org/2005/Atom'>";
and inserted one new line into the header section (i.e. the channel section of the feed):
Code:
echo "<atom:link href='http://www.your-website.com/rss.xml' rel='self' type='application/rss+xml' />";

Please find attached the re-worked rssnewsfeed.php. Please note, that I cannot provide in-depth support since I am not a php or sql expert myself - let alone the constant lack of time I am experiencing.

Regards,
spida
Logged
nturner

Offline Offline

Posts: 7


« Reply #5 on: November 23, 2008, 04:46:14 PM »

This is great.  It's still character sensitive though (doesn't like / or &).
Logged
spida

Offline Offline

Posts: 203


« Reply #6 on: December 03, 2008, 06:45:37 PM »

Updated version is online:
http://www.websitebakers.com/pages/code-snippets/listings/rss-news-feeder.php

@nturner: do you have any idea on how to fix this?

@all: completing the atom link would be great. Anyone with an idea on how-to?

Cheers,
spida
Logged
wsmout

Offline Offline

Posts: 2


« Reply #7 on: December 13, 2008, 08:50:45 PM »

Dear fellow-bakers and especially xesrochers and spida,

I realy like rssnewsfeed, vital element for any weblogger. My problem: a message in WebsiteBaker can be published with a datestamp: "Start date" and "End date". The rss-feed, however, doesn't seem to respect these dates. It shows all news; selecting one of the messages that are out of date will give an error-message.
So the question is: how to modify the search string. I am using 1.1 dated 2008-12-03 and it seems that the sql-string used is:
    $query .= " ORDER BY nw.posted_when DESC LIMIT 0, 15;";
Who can help me with a modification that does respect the date-stamp?
TIA,
Willem
Logged
wsmout

Offline Offline

Posts: 2


« Reply #8 on: December 14, 2008, 12:02:50 PM »

I withdraw my previous question because I found the solution.
In the beginning of the query I added
$t = time();
near the end of the query I added
$query .= " AND (published_when = '0' OR published_when <= $t) AND (published_until = 0 OR published_until >= $t)";

Also, for you information: regarding the "valid date and time display": in this thread the right solution was given, but this one was not correctly implemented in the published new version. The line with posted-date should read:
    $posted_date = date("D, d M Y H:i", $item["posted_when"])." GMT";

Willem
Logged
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #9 on: February 19, 2009, 12:23:51 PM »

hi,

I recently installed this RSS feed and valided it with feedvalidator.org.

Unfortunately this feed doesn't work on our site.

Any help would be appriciated.

Website


Greetz,
Boudi
Logged

...:: Bake the Unbakable ::...
spida

Offline Offline

Posts: 203


« Reply #10 on: February 19, 2009, 02:20:40 PM »

@boudi: Did you use my version as posted above?
Logged
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #11 on: February 19, 2009, 02:24:31 PM »

No I used the sitefeed version. (is that what you ment)?
Logged

...:: Bake the Unbakable ::...
spida

Offline Offline

Posts: 203


« Reply #12 on: February 19, 2009, 10:47:28 PM »

OK, without having the time to think about what exactly it is what you use: My version of the RSS-Feeder does validate. Thus in case you want to use the RSS-Feeder see some posts above for the link to the repository.
If you are using something else, my code might still be helpful as orientation on what needs to be changed.

Success with your coding,
spida
Logged
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #13 on: February 19, 2009, 11:28:40 PM »

Hi Spida,

I use the rsssitefeed v1a and I get the following error from the feedvalidator:

Quote
Sorry

This feed does not validate.

    *

      line 1, column 0: XML parsing error: <unknown>:1:0: no element found [help]


In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendation.

    *

      Feeds should not be served with the "text/html" media type [help]

I changed nothing in the script.

Greetz,

Boudi
Logged

...:: Bake the Unbakable ::...
spida

Offline Offline

Posts: 203


« Reply #14 on: February 20, 2009, 10:21:44 AM »

Hi Boudi,

I am sorry that I don't have the time to offer support right now with this modul. I haven't worked with the rss site feeder, but I suspect that the reasons for the error messages are quite the same as it was with the old rss news feeder.
Thus I recommend that you compare the code. My version of the rss news feeder, which does validate, is here: http://www.websitebakers.com/pages/code-snippets/listings/rss-news-feeder.php

Success with the code,
spida
Logged
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #15 on: February 21, 2009, 09:51:14 PM »

Hi Spida,

No problem.

Thnq for your time to answer!

I think I have it up and running now.  smiley

Greetz,

Boudi

Logged

...:: Bake the Unbakable ::...
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #16 on: February 24, 2009, 09:55:35 AM »

Hi there again,

Just for general information. The newsfeed does not seems to work with the any news archive mod.

I tried to let it work under this mod but no luck till now.

Update: I tried to let the newsfeed run under a normal any news mod too but even this doesn't seems to work.

So therefore I have to delete the mod because even when the feed validator says the feed is OK I cannot get it to work.

May be I'll try again within a few months  grin

Greetz,
Boudi
« Last Edit: February 24, 2009, 10:05:30 AM by Boudi » Logged

...:: Bake the Unbakable ::...
avitaly

Offline Offline

Posts: 33


« Reply #17 on: August 09, 2009, 07:16:33 AM »

I withdraw my previous question because I found the solution.
In the beginning of the query I added
$t = time();
near the end of the query I added
$query .= " AND (published_when = '0' OR published_when <= $t) AND (published_until = 0 OR published_until >= $t)";

Also, for you information: regarding the "valid date and time display": in this thread the right solution was given, but this one was not correctly implemented in the published new version. The line with posted-date should read:
    $posted_date = date("D, d M Y H:i", $item["posted_when"])." GMT";

Willem
This makes the module working fine ... The version of the site is not updated!
Logged
kiwix

Offline Offline

Posts: 6


« Reply #18 on: January 13, 2010, 11:13:34 PM »

Hello,

I tried to install the rsssitefeed-v1a as a module on a WebSite Baker 2.8 system,
but I always get the error message, that the file is a wrong instalation file and I
have to check the archive. But if I take a look at my server, the archive is
uncompressed.

German installtion error message:
Code:
Ungültige WebsiteBaker Installationsdatei. Bitte *.zip Format prüfen.

Cant I use this with the version 2.8 of website baker or is there any other issue?

Cheers
KiWiX

Edit: Ah, there is another post here:
http://www.websitebaker2.org/forum/index.php/topic,14900.0.html

« Last Edit: January 13, 2010, 11:15:42 PM by kiwix » Logged
JackJTP

Offline Offline

Posts: 8


WWW
« Reply #19 on: March 20, 2010, 02:54:18 AM »

hey folks- i am really sorry if my error already have been posted or something. my english ist good enough for an conversation but to search fixes it often isnt enough. i installed the rss site feed and the rss newsfeed to my wb 2.8 and both tell me an error like this:
Code:
This page contains the following errors:

error on line 1 at column 44: xmlParseEntityRef: no name
Below is a rendering of the page up to the first error.


any suggestions how i can fix this? thank you and sorry if its already fixed and/or the wwrong section where i posted it
Logged

I like to help Science with sharing my CPU Time: http://shared.jtpc.de/ (My InfoSite made with WB2.Cool
JackJTP

Offline Offline

Posts: 8


WWW
« Reply #20 on: March 20, 2010, 09:05:55 PM »

damnit, sorry Wink was my mistake. I had an & in Pagetitle Wink got it now , hehe
Logged

I like to help Science with sharing my CPU Time: http://shared.jtpc.de/ (My InfoSite made with WB2.Cool
snark
Guest
« Reply #21 on: May 04, 2010, 08:16:27 AM »

as Argos asked somewhere in the beginning of this topic

"Is it possible to refer a feed to a certain group id, page id or section id? I use several News-modules per site, soem of them modified to function as other pages. Now all posts in all News-modules are thrown together in one big RSS feed..."

Would be very nice if it is possible...
Logged
syamfamily

Offline Offline

Posts: 12


« Reply #22 on: May 18, 2010, 06:08:16 AM »

About this module, I have installed it, and than I put <? php ShowRssNewsFeed(); ?> on my web page / template, and the result is button like with linked to ...modules/rssnewsfeed/rssnewsfeed.php, but when I clicked that button, I am directed to 404 error page....ehm....what was wrong...?
« Last Edit: May 18, 2010, 08:53:38 AM by Argos » Logged
Argos
Moderator
**
Offline Offline

Posts: 2161


WWW
« Reply #23 on: May 18, 2010, 08:56:24 AM »

All RSS feed generators are old and not compatible with WB2.8 as far as I know.
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
erpe

Offline Offline

Posts: 2077


WWW
« Reply #24 on: May 18, 2010, 08:59:38 AM »

The news-feeder on AMASP is running with 2.8.1
http://www.websitebakers.com/modules/news/rss.php?page_id=3

And there was the rss-module in the past running on the same installation.

rgds

erpe
Logged

Pages: [1] 2   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!