Fix for the RSS validation problem with the latest release of the BlogSphere template...
Category Blogging
Ever since I upgraded to the latest version of BlogSphere, my RSS feed quit working in the Awasu reader. Also, I couldn't pass the RSS validation due to an invalid LatBuildDate value and invalid entries in the Description tag. In order to fix that, you need to make the following changes to the RSS/Stories view. Basically, I fixed the date formatting to use 24 hour times and added a CDATA tag within the Description tag. I'll pass this along to Declan for inclusion in the next release...
Column 2 of the view - the formula should read:
REM {START - W3C UTC Time Conversion - Mike Golding - May 2003};
vDate := Storydate;
vWeekDay := @Select(@Weekday(vDate);"Sun";"Mon";"Tue";"Wed";"Thu";"Fri";"Sat");
vDay := @Text(@Day(vDate));
vMonth := @Select(@Month(vDate);"Jan";"Feb";"Mar";"Apr";"May";"Jun";"Jul";"Aug";"Sep";"Oct";"Nov";"Dec");
vYear := @Text(@Year(vDate));
REM {vTime := @Text(vDate;"S1T0");};
vHour := @Right("0" + @Text(@Hour(vDate));2);
vMinute := @Right("0" + @Text(@Minute(vDate));2);
vSecond := @Right("0" + @Text(@Second(vDate));2);
vTime := VHour + ":" + VMinute + ":" + VSecond;
vZone := @Zone;
vZoneDST := @If(@Abs(vZone-@Integer(vZone)) > 0 ; 1 ; 0);
vZoneOffset := @Integer(vZone) - vZoneDST;
vSign := @If(vZoneOffset > 0; "-"; "+");
vZoneFull := @Right("0" + @Text(@Abs(vZoneOffset));2) + @Right("0" + @Text(@If(vZoneOffset > 99 ; @Integer(@Abs(vZoneOffset)/100);0));2);
vWeekDay + ", " + vDay + " " + vMonth + " " + vYear + " " + vTime + " " + vSign + vZoneFull
Column 3 of the view - the formula should read:
REM {START - W3C UTC Time Conversion - Mike Golding - May 2003};
vDate := Storydate;
vWeekDay := @Select(@Weekday(vDate);"Sun";"Mon";"Tue";"Wed";"Thu";"Fri";"Sat");
vDay := @Text(@Day(vDate));
vMonth := @Select(@Month(vDate);"Jan";"Feb";"Mar";"Apr";"May";"Jun";"Jul";"Aug";"Sep";"Oct";"Nov";"Dec");
vYear := @Text(@Year(vDate));
REM {vTime := @Text(vDate;"S1T0");};
vHour := @Right("0" + @Text(@Hour(vDate));2);
vMinute := @Right("0" + @Text(@Minute(vDate));2);
vSecond := @Right("0" + @Text(@Second(vDate));2);
vTime := VHour + ":" + VMinute + ":" + VSecond;
vZone := @Zone;
vZoneDST := @If(@Abs(vZone-@Integer(vZone)) > 0 ; 1 ; 0);
vZoneOffset := @Integer(vZone) - vZoneDST;
vSign := @If(vZoneOffset > 0; "-"; "+");
vZoneFull := @Right("0" + @Text(@Abs(vZoneOffset));2) + @Right("0" + @Text(@If(vZoneOffset > 99 ; @Integer(@Abs(vZoneOffset)/100);0));2);
REM {END - W3C UTC Time Conversion - Mike Golding - May 2003};
"<item>" +
"<title>" + StoryTitle + "</title>"+
"<link>" + FullURL + "</link>"+
"<description>" + "<![CDATA[ " + TXTRSSABSTRACT + "]]>" + "</description>"+
"<dc:subject>" + StoryCategory + "</dc:subject>"+
"<dc:creator>" + StoryAuthor + "</dc:creator>"+
"<comments>" + FullURL + "</comments>"+
"<guid isPermaLink=\"true\">" + FullURL + "</guid>"+
"<content:encoded><![CDATA[ " + FinalStoryText+ "]]></content:encoded>"+
"<pubDate>" + vWeekDay + ", " + vDay + " " + vMonth + " " + vYear + " " + vTime + " " + vSign + vZoneFull +"</pubDate>" +
"<slash:comments>"+@Text(Children)+"</slash:comments>" +
"<wfw:commentRss> " + ShortURL + "/CommentsRSS?Open&id="+ txtdocid + "</wfw:commentRss>"+
"<wfw:comment> " + ShortURL + "/PostComment?RunAgent&id="+ txtdocid + "</wfw:comment>"+
"</item>"
Ever since I upgraded to the latest version of BlogSphere, my RSS feed quit working in the Awasu reader. Also, I couldn't pass the RSS validation due to an invalid LatBuildDate value and invalid entries in the Description tag. In order to fix that, you need to make the following changes to the RSS/Stories view. Basically, I fixed the date formatting to use 24 hour times and added a CDATA tag within the Description tag. I'll pass this along to Declan for inclusion in the next release...
Column 2 of the view - the formula should read:
REM {START - W3C UTC Time Conversion - Mike Golding - May 2003};
vDate := Storydate;
vWeekDay := @Select(@Weekday(vDate);"Sun";"Mon";"Tue";"Wed";"Thu";"Fri";"Sat");
vDay := @Text(@Day(vDate));
vMonth := @Select(@Month(vDate);"Jan";"Feb";"Mar";"Apr";"May";"Jun";"Jul";"Aug";"Sep";"Oct";"Nov";"Dec");
vYear := @Text(@Year(vDate));
REM {vTime := @Text(vDate;"S1T0");};
vHour := @Right("0" + @Text(@Hour(vDate));2);
vMinute := @Right("0" + @Text(@Minute(vDate));2);
vSecond := @Right("0" + @Text(@Second(vDate));2);
vTime := VHour + ":" + VMinute + ":" + VSecond;
vZone := @Zone;
vZoneDST := @If(@Abs(vZone-@Integer(vZone)) > 0 ; 1 ; 0);
vZoneOffset := @Integer(vZone) - vZoneDST;
vSign := @If(vZoneOffset > 0; "-"; "+");
vZoneFull := @Right("0" + @Text(@Abs(vZoneOffset));2) + @Right("0" + @Text(@If(vZoneOffset > 99 ; @Integer(@Abs(vZoneOffset)/100);0));2);
vWeekDay + ", " + vDay + " " + vMonth + " " + vYear + " " + vTime + " " + vSign + vZoneFull
Column 3 of the view - the formula should read:
REM {START - W3C UTC Time Conversion - Mike Golding - May 2003};
vDate := Storydate;
vWeekDay := @Select(@Weekday(vDate);"Sun";"Mon";"Tue";"Wed";"Thu";"Fri";"Sat");
vDay := @Text(@Day(vDate));
vMonth := @Select(@Month(vDate);"Jan";"Feb";"Mar";"Apr";"May";"Jun";"Jul";"Aug";"Sep";"Oct";"Nov";"Dec");
vYear := @Text(@Year(vDate));
REM {vTime := @Text(vDate;"S1T0");};
vHour := @Right("0" + @Text(@Hour(vDate));2);
vMinute := @Right("0" + @Text(@Minute(vDate));2);
vSecond := @Right("0" + @Text(@Second(vDate));2);
vTime := VHour + ":" + VMinute + ":" + VSecond;
vZone := @Zone;
vZoneDST := @If(@Abs(vZone-@Integer(vZone)) > 0 ; 1 ; 0);
vZoneOffset := @Integer(vZone) - vZoneDST;
vSign := @If(vZoneOffset > 0; "-"; "+");
vZoneFull := @Right("0" + @Text(@Abs(vZoneOffset));2) + @Right("0" + @Text(@If(vZoneOffset > 99 ; @Integer(@Abs(vZoneOffset)/100);0));2);
REM {END - W3C UTC Time Conversion - Mike Golding - May 2003};
"<item>" +
"<title>" + StoryTitle + "</title>"+
"<link>" + FullURL + "</link>"+
"<description>" + "<![CDATA[ " + TXTRSSABSTRACT + "]]>" + "</description>"+
"<dc:subject>" + StoryCategory + "</dc:subject>"+
"<dc:creator>" + StoryAuthor + "</dc:creator>"+
"<comments>" + FullURL + "</comments>"+
"<guid isPermaLink=\"true\">" + FullURL + "</guid>"+
"<content:encoded><![CDATA[ " + FinalStoryText+ "]]></content:encoded>"+
"<pubDate>" + vWeekDay + ", " + vDay + " " + vMonth + " " + vYear + " " + vTime + " " + vSign + vZoneFull +"</pubDate>" +
"<slash:comments>"+@Text(Children)+"</slash:comments>" +
"<wfw:commentRss> " + ShortURL + "/CommentsRSS?Open&id="+ txtdocid + "</wfw:commentRss>"+
"<wfw:comment> " + ShortURL + "/PostComment?RunAgent&id="+ txtdocid + "</wfw:comment>"+
"</item>"



Comments
<image>
<title>Title of your Blog</title>
<url>http://Link/To/an/Image.gif</url>
<link>http://Link/To/Your/Blog</link>
</image>
Have a look at the top of mine or the BBC feed for an example...
Posted by Paul Westlake At 02:24:41 On 21/12/2003 | - Website - |
TNX
Posted by TNX At 12:36:43 On 20/11/2008 | - Website - |
Posted by TNT At 12:39:23 On 20/11/2008 | - Website - |