Version 1.5, New Preview Buttons, Full Format Feeds

June 08, 2005

I have been embarrassingly  delinquent in not doing a good job of versioning the feed2js code. So based on the long history list I have guestimated the current code to be version 1.5 which is totally arbitrary. Anyhow, this is now embedded in the main script, and is displayed in this site where we refer to the code.

Also, I have rolled into the new download an upodated build.php script that features the pop up window preview recently added to our main site's build a feed form. Since no one complained about it, I figured it worked.

Lastly, getting more used to WordPress Feeds, I notice the default RSS2.0 feed lists the item descsription both as plain text excerpt in the <description> tag fullpost HTML formatted in the <content: encoded> tag. The previous version of Feed2JS would look for encoded content only in atom feeds, but now it will use that for a description if it finds that tag in the feed. This way, the feed creator can use our settings to strip out HTML and truncate if they want a slimmed down feed.

Current feed2js.php scripts can easily be adjusted by changing the line that reads:
if ($item['summary']) {
	$my_blurb = $item['summary'];
} else {    // Atom support (thanks David Carter-Tod)
	$my_blurb = $item['content']['encoded'];
}
to read
// Atom/encocded content support (thanks David Carter-Tod)

if ($item['content']['encoded']) {
	$my_blurb = $item['content']['encoded'];
} else {   
	$my_blurb = $item['summary'];
}

Hey, the tool is sooo great, helped me a lot. Was looking for something like this. Thanks soo much. Also would be highly obliged if u can tell me how do I format the appearance of the headlines that are appearing.
Thanks .. ur help wud be highly grateful

Posted by Gaurav Tanna at July 23, 2005 12:20 AM

Follow the Style directions:
http://feed2js.org/index.php?s=style

Posted by Alan at July 23, 2005 11:55 AM

Write a comment










Remember personal info?





Spam Prevention Security Code: Enter the numbers you see in the image above