PDA

View Full Version : CSS - not being recognized, all text??


briangarson
11-28-2006, 12:51 AM
I had modded my CSS a while ago to display full images, then I noticed recently that it's no longer working at all, so I downloaded the latest version of pixelpost from the home page, replaced the RSS code and I still have the problem. It gets outputted completely as text.

the rss feed is: http://briangarson.com/index.php?x=rss

any help would be greatly appreciated.

thanks

the codebehind:


################################################## ########################################//
// RSS 2.0 FEED
// ################################################## ########################################//
if(isset($_GET['x'])&&$_GET['x'] == "rss"){
$output = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<rss version=\"2.0\">
<channel>
<title>".$pixelpost_site_title."</title>
<link>".$cfgrow['siteurl']."</link>
<description>$pixelpost_site_title 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);
$headline = htmlspecialchars($headline,ENT_QUOTES);
$image = $cfgrow['siteurl']."thumbnails/thumb_$image";
$datetime = strtotime($datetime);
$datetime =date("D, d M Y H:i",$datetime);
$datetime .= ' ' .$tzoner;
$body = pullout($body);
$body = stripslashes($body);
$body = strip_tags( $body );
$body = htmlspecialchars($body,ENT_QUOTES);
$body = ereg_replace("\n","\n&lt;br /&gt;",$body);
$output .= "
<item>
<title>$headline</title>
<link>".$cfgrow['siteurl']."?showimage=$id</link>
<description>
&lt;img src=&quot;$image&quot;&gt;
&lt;br /&gt;$body
</description>
<pubDate>$datetime</pubDate>
<guid>".$cfgrow['siteurl']."index.php?showimage=$id</guid>
</item>
";
}

$output .= "
</channel>
</rss>";
header("Content-type:application/xml");
echo $output;
exit;
}

//

kidleethal
11-28-2006, 02:33 AM
Hi,

Your post title is confusing.

There doesn't seem to be anything wrong with the template HTML. When you say you downloaded the new version of pixelpost and replaced the RSS code...did you replace the whole pixelpost installation with the newest version, or you slapped the RSS code from the newest version onto an older installed version?

I think if you did the latter, that might be where your problem is.

austriaka
11-28-2006, 08:50 AM
have a look at the source code of your RSS-page.There is some JavaScript before the doctype declaration, that might cause the error