Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Photoblogging with Textpattern: rss feeds (See related posts)

Add this to textpattern/publish/rss.php somewhere around line 62 (in 4.0.2), or after "$Body = (!trim($Body)) ? $thisarticle['body'] : $Body;":
// hack to get pictures to syndicate
if ($a['Section'] == "photo")
{
$img_url = hu."images/".$a['Image'].'.jpg';
$Body = doSpecial(''.permlinkurl($a).'">'.$img_url.'" alt="the latest and greatest" />');
}
// /hack

You need to create an account or log in to post comments to this site.


Related Posts