<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Álvaro Hurtado on Medium]]></title>
        <description><![CDATA[Stories by Álvaro Hurtado on Medium]]></description>
        <link>https://medium.com/@Joker73R?source=rss-14fa31bdee14------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*coMiPwk2llYq0rGh.jpeg</url>
            <title>Stories by Álvaro Hurtado on Medium</title>
            <link>https://medium.com/@Joker73R?source=rss-14fa31bdee14------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 02:49:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Joker73R/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to show the thumbnails from a RSS feed]]></title>
            <link>https://medium.com/@Joker73R/how-to-show-the-thumbnails-from-a-rss-feed-82dc3f83aea7?source=rss-14fa31bdee14------2</link>
            <guid isPermaLink="false">https://medium.com/p/82dc3f83aea7</guid>
            <category><![CDATA[rss]]></category>
            <category><![CDATA[podcast]]></category>
            <dc:creator><![CDATA[Álvaro Hurtado]]></dc:creator>
            <pubDate>Sun, 22 Jan 2017 14:14:56 GMT</pubDate>
            <atom:updated>2017-01-22T14:14:56.475Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a tutorial for having fully functional thumbnails from a RSS feed on your KLWP news widget.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Zyr-cm71NbmgOxCQBjATg.gif" /></figure><p>Please note:</p><ol><li>Everything is taken from <a href="https://www.youtube.com/channel/UC3adc3KUUT88oEk11Fg5FFA"><strong>Brandon Craft’s video tutorials</strong></a>, check them to learn how to do anything on KLWP.</li><li>Everything is based on my RSS feed and my own news widget. Although the basis are the same, some details may vary, as I’ll show later.</li><li>I‘ll assume that you already have a news widget. That’s important in order to have a built-in structure for scrolling through your RSS news. If not, I do recommed doing one following <a href="https://www.youtube.com/watch?v=FjUGEaFGuKQ"><strong>Brandon Craft’s 500px tutorial</strong></a>. Although it was made for the 500px feed, you can change it by the one of your choice. The only important thing is to create the globals that allow us to change between news with its titles and descriptions.</li><li>This tutorial was based on Brandon Craft’s <a href="https://www.youtube.com/watch?v=-Aqu-cR7u1o"><strong>RegEx</strong></a> and <a href="https://www.youtube.com/watch?v=K_vbiUMy0_4"><strong>Google image</strong></a> tutorials, so check them if you’ve any doubt about the way to continue.</li></ol><p>As I’ve said, I’ll assume that you already have a news widget with its navigation buttons to scroll through the RSS feed. If not, made it (third point, above) and continue from here.</p><p>I do really recommed to create a text global with the RSS feed url. I think its more useful to do it this way, but that’s up to you as it doesn’t make any change at all. So create a text global with the RSS feed url that you want. We can call it <em>rssone </em>[gv(rssone)]</p><p>If you followed Brandon tutorials, you’ve created a list global (0,1,2,3,4…) in order to scroll through the news from the feed. The “0&quot; value is necessary if you don’t want to start reading from the second entry, but that its a problem when it comes to the thumbnails, because they’re ordered in the feed by “item 1, 2, 3…” and there’s no “0” value. Let’s say that the list global that you’ve created for your news widget is called <em>number</em> so we’ve to fix this for having our thumbnails correctly synced. It is as easy as creating a text global, called <em>rssnum </em>for example, with the formula:<br>$gv(number)+1$</p><p>Whe’re saying that, when KLWP reads the title and description from the “0” entry, it must show the first image.</p><p>After that, we’ve to create another text global, called <em>rssimg </em>for example, [gv(rssimg)]<br>$tc(reg,tc(reg,wg(gv(rssone),xml,”//item[“+gv(rssnum)+”]/encoded”),”.*img src=.”,””),”..title.*”,””)$</p><p>This is the formula that should work, with some changes, for every feed out there. Please note:</p><ol><li>As I’ve said, you can change the <em>gv(rssone)</em> with the feed of your choice.</li><li>You’ve to change the word <em>encoded </em>by the one needed. You’ve to go to your RSS feed url and read in what section is the image of every entry. It can be on the <em>description </em>section or in a custom one. Change the <em>encoded </em>word by the one that you’ve found (99% would be in the <em>description </em>section but you’ve to check that)</li><li>The <em>title </em>word at the end of the formula is for the word that is always after your image. You’ve to check the feed url and see how the image from every entry ends. If the image (usually <em>“blablabla.jpg”</em>) has the word <em>title </em>next-to it, you have to write the word <em>title</em>. If the word is <em>alt</em>, you’ve to change <em>title </em>with <em>alt</em>, for example. It can sound a little bit tricky but its really easy when you do it.</li><li>Don’t delete any punctuation symbol. “.*” for example means that from, the word before, KLWP will delete everything.</li><li>Sometimes, the .jpg that you get starts with <em>//image.jpg</em> without the <em>http:</em>. Just add <em>http:</em> before the formula. Really easy.</li></ol><p>After that we should create a shape. In the FX section, we select the bitmap option and write the name of the formula above: $gv(rssimg)$</p><p>As we scroll through the feed with our news widget, the image should change too. KLWP lasts a bit to load every image, so give it some seconds.</p><p>Also, in some feeds not every entry has an image. KLWP would show the next one instead of a blank space but we can “fix” this. Let’s go and create another text global. We can call it <em>imgerror</em>, for example [gv(imgerror)]. Inside it we paste the url from the image we want to see when there’s no image at all. A 404 one could be fine but, again, that choice is up to you.</p><p>After that, we’ve to create another text global. We can call it <em>imgdef</em>, for example [gv(rssimgn)]. The text to write is this one:</p><p>$if(tc(cut,gv(rssimg),-3)=jpg,gv(rssimg),gv(imgerror))$</p><p>Please, don’t get confused between this last global [gv(imgdef)] with the <em>rssimg </em>that allowed us to scroll through the images from a feed. With this formula we’re asking KLWP to show the 404 image (or the one we’ve chosen) when there’s no image on the entry.</p><p>The last step is to go back to our shape and change the bitmap formula with the last one: $gv(imgdef)$</p><p>Everything should work fine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Zyr-cm71NbmgOxCQBjATg.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82dc3f83aea7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>