PDA

View Full Version : RSS Feed Formatting Question


abel
02-18-2005, 05:51 PM
when i set up my feed i notice that in Sharpreader that my thumbnails display and not the actuall full size images...

http://www.lifeatf8.com/index.php?x=rss

is there something that i can tweak or change in order to have the full size image load instead?

ive searched the forums and didnt come across this situation so i thought id ask..

thanks

look below for my new RSS Feed Formating issue...

raminia
02-18-2005, 08:21 PM
I'm downloading Sharpreader right now to test it but chaning the index.php at about the line 425
$image = $cfgrow['siteurl']."thumbnails/thumb_$image";

to $image = $cfgrow['siteurl']."images/$image";
would do it.

UPDATE: I've changed the post right away!

abel
02-18-2005, 08:51 PM
that worked fine...

now if i can only get the text formatting and such correct... looks like the image is still right justified.

heres a screen shot of what it looks like

http://www.lifeatf8.com/temp/badtext.jpg

raminia
02-18-2005, 09:18 PM
I didn't see the feed. sharpreader need .net framework and I dont have that version. Now i'm trying Feedreader software....

you want the image to be where?

line 436 of index.php
<description><img src="$image" align="right"> $body</description>

this says align="right"
you can change it to left!

abel
02-19-2005, 03:24 AM
weird...

heres the code in the RSS feed portion of my index.php


// ################################################## ########################################//
// RSS 2.0 FEED
// ################################################## ########################################//
if($_GET['x'] == "rss") {
pullout($cfgrow['sitetitle']);

$output = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>
<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>
";
$query = mysql_query("select image,id,datetime,headline,body from ".$pixelpost_db_prefix."pixelpost where (datetime<='$cdate') order by datetime desc");
while(list($image,$id,$datetime,$headline,$body) = mysql_fetch_row($query)) {
$image = $cfgrow['siteurl']."images/$image";
$headline = pullout($headline);
$body = pullout($body);
$datetime = strtotime($datetime);
$datetime = date("r",$datetime);
$body = stripslashes($body);
$body = htmlentities($body);
$body = ereg_replace("\n","<br />",$body);
$output .= "
<item>
<title>$headline</title>
<link>".$cfgrow['siteurl']."?showimage=$id</link>
<description><img src="$image" align="right"> $body</description>
<pubDate>$datetime</pubDate>
</item>
";
}
$output .= "
</channel>
</rss>";
header("Content-type:application/rss+xml");
echo $output;
exit;
}


lemme know what u think...

abel
02-19-2005, 03:29 AM
ahhh i see it now... lemme try it..

ok i got the image justified to the right but my text formatting is still messed up...

im gonna look into it some more.

abel
02-21-2005, 04:31 PM
my new RSS Feed Formating issue...

i fixed it so that its left justified but my text and such is still messedu p like in the pic below...

http://www.lifeatf8.com/temp/badtext.jpg

blinking8s
02-22-2005, 03:27 AM
the rss needs a overhual, i had to rework mine...took me forever to get it working right again. It didnt like a lot of characters...and rejected changing its encoding type, had to add CDDATA to it