Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2008-02-28 07:27:45
- hidalgo
- Member
- From: Australia
- Registered: 2008-02-05
- Posts: 86
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
Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds
I’ve implemented your code changes in version 0.4. Thanks!
Offline
Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds
thanks to BOTH of you! :)
~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~
Offline
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
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
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
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
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
Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds
You could try to install upm_image and see if it works.
Offline
Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds
Hello.
Yes, I did give upm_image a try last night- I deleted “hak_article_image” from my code, and dropped in “<txp:upm_article_image />” and I had no success. Images were still missing. I’m not sure what the problem is. Can you offer any suggestions as to what could be preventing my images from being passed to the xml feed? I am using Excerpts… could that be an issue?
thanks,
Elstrausso
Offline
Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds
Of course, that’s it! :) I didn’t have excerpts in mind when I wrote the plugin. I don’t have much time to modify it right now but you can try to replace all $thisarticle[‘body’] with $thisarticle[‘excerpt’].
Offline
Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds
Hello Cristian,
Thanks, your suggestion worked! I finally have images in my feed, thanks very much for your plugin and help!
Best,
Elstrausso
Offline