Textpattern Forum

You are not logged in. Register | Login | Help

#11 2008-02-25 01:13:00

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

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

I also added a define(LIMIT, #); so I could limit the number of article images shown, in my case I just wanted the first article image.

Offline

#12 2008-02-25 17:46: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

thank you! that worked! Hidalgo, how exactly did you define the limit? I would also be interesed in that.


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

Offline

#13 2008-02-28 07:27:45

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

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

Using Christian’s 0.3 plugin, add the following line:

define(LIMIT, 0); // Limit how many images are displayed when using upm_article_image - 0 displays all

And update:
upm_article_image(array('type' => (USE_THUMBNAIL ? 'thumbnail' : 'image')))
to
upm_article_image(array('type' => (USE_THUMBNAIL ? 'thumbnail' : 'image'), 'limit' => LIMIT))

Maybe Christian will update the plugin to include this?

Offline

#14 2008-03-01 11:04:00

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

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

I’ve implemented your code changes in version 0.4. Thanks!

Offline

#15 2008-03-03 22:34:56

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

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

thanks to BOTH of you! :)


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

Offline

#16 2009-03-01 04:17:38

elstrausso
Member
Registered: 2008-09-25
Posts: 49
Website

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

Hello, I installed your plugin so my article images would appear in my RSS feed, but I have not had any success.

Here is the feed for my blog, but for some reason images are excluded:
http://feeds2.feedburner.com/TheDept-Blog

thanks,
elstrausso

Offline

#17 2009-03-01 10:40:07

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

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

That’s strange. I tried installing it on my new site and it worked. You have activated the plugin? Have you made any changes in the code? Do you use upm_image?

Offline

#18 2009-03-02 00:31:26

elstrausso
Member
Registered: 2008-09-25
Posts: 49
Website

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

yes, its turned on, and I have not made any changes to code. I’m not using upm_image- but I am using the “hak_article image”, and “wet_article_thumb” plugins. Is UPM_Image required for the CSB Feed Image plugin?

I would greatly appreciate any advice or tips, been working on this rss issue now for quite some time.

Thanks,
Elstrausso.

Offline

#19 2009-03-02 00:40:44

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

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

No, upm_image is not required, but if you have specified more than one article image to each article it is required. Is that the case? If so, I can probably implement support for hak_article_image too.

Offline

#20 2009-03-02 00:56:18

elstrausso
Member
Registered: 2008-09-25
Posts: 49
Website

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

Hello,
Yes, in some articles I have one or more images. here is my site blog:

http://thedept.com/blog/

thanks,
Elstrausso

here is the form code for that page:

<!— PROJECT CELL: Project_form —>
<txp:if_article_list>
<ul class=“cells”>
<li class=“gallery”>
<div class=“cellblock”>
<txp:if_individual_article>
</txp:if_individual_article>
<h5><txp:title /></h5>
<txp:wet_article_thumb />
<txp:body />
<p class=“read-more”> <a href=”<txp:permlink />#body”
title=”<txp:title />”>»View More</a> </p> <hr></hr>
<div class=“date”><txp:posted /> Posted By: <txp:author />
<p class=“tags”><txp:category1 title=“1” link=“1” /> + <txp:category2 title=“1” link=“1” /></p>
<txp:comments_invite wraptag=“p” />
<txp:else />
<!—DETAIL PAGE —>
<div class= “celltitler”>
<h5><txp:title /></h5>
<txp:if_excerpt>
<txp:excerpt />
</txp:if_excerpt>
<div class=“entry-content”>
<p class=“tags”><txp:category1 title=“1” link=“1” /> + <txp:category2 title=“1” link=“1” /></p>
</div>
</div>
</div>
</div>
<div class= “nextprev”>
<div class =“cellprevnext”>Next: <txp:link_to_prev showalways=“1”> <txp:prev_title /></txp:link_to_prev>
</div>
<div class =“cellprevnext”>Prev: <txp:link_to_next showalways=“1”><txp:next_title /></txp:link_to_next>
</div>
<div class =“cellprevnext”><a href=“http://thedept.com/index.php?s=projects”> Projects Gallery </a>
</div>
</div>
<txp:hak_article_image linktype=‘page’ link=‘1’ linktitle=‘txp:caption’ wraptag=“li” form=“hakimage” />

</div>
<txp:comments />
<txp:comments_form />
</txp:if_individual_article>
</div>
</li>
</ul>
</txp:if_article_list>

Last edited by elstrausso (2009-03-02 01:14:46)

Offline

Board footer

Powered by FluxBB