Textpattern Forum

You are not logged in. Register | Login | Help

#1 2007-07-12 21:11:57

csandberg
Plugin Author
From: Sweden
Registered: 2006-01-07
Posts: 40
Website

[plugin] [ORPHAN] csb_feed_image - insert article image in feeds

This simple plugin adds the article image (if one is specified) to an RSS or Atom feed.

You can also change the code slightly to use the thumbnail instead of the full size image, or if you want the image before or after the body text.

csb_feed_image supports multiple images with upm_image.

Requires Textpattern 4.0.4 or later.

Download csb_feed_image 0.5

Last edited by csandberg (2009-03-10 21:11:39)

Offline

#2 2008-02-05 01:22:58

hidalgo
Member
From: Australia
Registered: 2008-02-05
Posts: 49
Website

Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds

Thanks for this great plugin! It’s indispensable for any photography related site.

On some of my articles I use multiple article-images which works great with plugins like txp:upm_article_image />, however breaks this plugin. I’m aware this isn’t standard TXP functionality, but it would be great if there was a way to get multiple article-images to work with this plugin. Or maybe just show the first image even?

I’m thinking this isn’t as easy as it sounds.

Offline

#3 2008-02-12 11:59:06

csandberg
Plugin Author
From: Sweden
Registered: 2006-01-07
Posts: 40
Website

Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds

Well, that should’t be too hard. I will try to make a new version soon.

Nice website by the way. :)

Offline

#4 2008-02-12 23:34:24

hidalgo
Member
From: Australia
Registered: 2008-02-05
Posts: 49
Website

Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds

Thank you Christian, that’s great! :)

Offline

#5 2008-02-14 11:28:44

csandberg
Plugin Author
From: Sweden
Registered: 2006-01-07
Posts: 40
Website

Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds

Allright, the new version checks if you have upm_image installed, and then uses upm_article_image instead of article_image to support more than one image per article.

Offline

#6 2008-02-14 12:45:12

hidalgo
Member
From: Australia
Registered: 2008-02-05
Posts: 49
Website

Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds

Too clever! Many thanks for this, I would never have figured it out.

I’ve just played with it a little and worked out how to use tags from upm_article_image, such as limit and type – I’m very impressed :)

Offline

#7 2008-02-25 00:47:04

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 491
Website

Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds

Hej Christian,
For some reason, even after changing the line to
define(USE_THUMBNAIL, true);
I still get full sized images. I use atom and upm_image, if that helps with anything.

great plugin!


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

#8 2008-02-25 00:53:04

csandberg
Plugin Author
From: Sweden
Registered: 2006-01-07
Posts: 40
Website

Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds

Hmm, that’s weird. I tried changing it to true and it worked for me. Maybe there’s some problem with cache or something?

Offline

#9 2008-02-25 01:00:48

hidalgo
Member
From: Australia
Registered: 2008-02-05
Posts: 49
Website

Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds

I found when using upm_image I had to change ‘thumbnail’ => USE_THUMBNAIL to ‘type’ => ‘thumbnail’ (the full image would be ‘type’ => ‘image’)

Last edited by hidalgo (2008-02-25 01:01:36)

Offline

#10 2008-02-25 01:02:57

csandberg
Plugin Author
From: Sweden
Registered: 2006-01-07
Posts: 40
Website

Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds

Ah, sorry, i fix will come soon…

Edit: New version 0.3 is up now.

Last edited by csandberg (2008-02-25 01:09:37)

Offline

Board footer

Powered by FluxBB