|
#1
|
|||
|
|||
|
RSS feed errors?
Had a viewer of my blog report today that my RSS (and ATOM) links don't appear to be working for them in Firefox.
The error reads "Live Bookmark failed to load"... I've been poking around here reading some posts on problems with 1.4 RSS feeds, but I'm sure where to go from here. The blog is http://www.doublecrossed.ca can anyone help? |
|
#2
|
||||
|
||||
|
humm...
which version of pixelpost are you running? 1/4 or 1.4.1 ? the correct rss feed, which is in index.php is... Code:
// ##########################################################################################//
// RSS 2.0 FEED
// ##########################################################################################//
if($_GET['x'] == "rss") {
pullout($cfgrow['sitetitle']);
$output = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<rss version=\"2.0\">
<channel>
<title>".$cfgrow['sitetitle']."</title>
<link>".$cfgrow['siteurl']."</link>
<description>".$cfgrow['sitetitle']." photoblog</description>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<generator>pixelpost</generator>
";
$tzoner = $cfgrow['timezone'];
$tprefix = '+';
$tzoner = sprintf ("%01.2f", $tzoner);
if (substr($tzoner,0,1)=='-') {
$tzoner = (substr($tzoner,1));
$tprefix = '-';
}
if ($tzoner < 10){$tzoner = "0".$tzoner;}
$hh = substr($tzoner,0,2);
$mm = substr($tzoner,-2);
$tzoner = $tprefix.$hh.$mm;
$query = mysql_query("select id,datetime,headline,body,image from ".$pixelpost_db_prefix."pixelpost where (datetime<='$cdate') order by datetime desc limit 10");
while(list($id,$datetime,$headline,$body,$image) = mysql_fetch_row($query)) {
$headline = pullout($headline);
$body = pullout($body);
$image = $cfgrow['siteurl']."thumbnails/thumb_$image";
$datetime = strtotime($datetime);
$datetime = date("D, d M Y H:i",$datetime);
$datetime .= ' ' .$tzoner;
$body = stripslashes($body);
$body = str_replace("\n","&lt;br /&gt;",$body);
// added to remove HTML tags
$body = strip_tags( $body );
$output .= "
<item>
<title>$headline</title>
<link>".$cfgrow['siteurl']."?showimage=$id</link>
<description>&lt;img src=&quot;$image&quot; align=&quot;right&quot;&gt; $body</description>
<pubDate>$datetime</pubDate>
</item>
";
}
$output .= "
</channel>
</rss>";
header("Content-type:application/xml");
echo $output;
exit;
}
__________________
i should say more clever stuff |
|
#3
|
|||
|
|||
|
will give that a try
I'm running 1.4...
I've ammended the .php file... we'll see if it works now. Will post back. |
|
#4
|
|||
|
|||
|
no luck
After amending the index.php file, the RSS errors appears as:
------- XML Parsing Error: not well-formed Location: http://www.doublecrossed.ca/index.php?x=rss Line Number 13, Column 176: <description>&lt;img src=&quot;http://www.doublecrossed.ca/thumbnai....jpg&quot; align=&quot;right&quot;&gt; Barber shop, Dufferin & St. Clair. ------- Something about the thumbnail that it doesn't like. |
|
#5
|
||||
|
||||
|
it doesn't like the & in your title. this is a bug that needs fixing - for now, temporarily remove the & from your title and see if that helps!
__________________
Affordable Website Design in North Wales |
|
#6
|
|||
|
|||
|
Yup, got the same problems. I overcame it by using &amp instead of just &. Remember to fill it in again as it breaks when you try to edit the post. Eg. "Me & Her" becomes "Me"
|
|
#7
|
|||
|
|||
|
so I can literally type in "&amp" instead of "&" and it'll get the best of both worlds?
|
| Post Reply |
| Thread Tools | |
|
|