Gossamer Forum
Quote Reply
RSS with images
Hi Andy,
do you know a way to integrate a image from your plugin Thumb_Images into the xml results plugin.
This is my code in the xml_search_results.xml
Code:
<?xml version="1.0" encoding="<%config.header_charset || iso-8859-1%>"?>
<rss version="2.0">
<channel>
<title><%site_title%></title>
<link><%build_root_url%></link>
<description>xml feed von gpaed.de</description>
<language>de</language>
<copyright>Matthias Lunz</copyright>
<%loop link_results_loop%>
<item>
<title><%GT::CGI::html_escape($Title)%></title>
<link><%get_detailed_url($ID)%></link>
<description><%GT::CGI::html_escape($Description)%></description>
<pubDate><%GT::Date::date_transform($Add_Date,'%dddd%, %dd%.%mm%.%yyyy%','%yyyy%-%mmm%-%dd%')%></pubDate>
</item>
<%endloop%>
</channel>
</rss>[/code

Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] RSS with images In reply to
Hi,

You just want the image to show as a URL in the feed, or actually show the image when someones looking at the RSS feed?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] RSS with images In reply to
Hi Andy,
would be great to see the image in the feed-reader...
Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] RSS with images In reply to
Mmm, gotta admit I've never done it - but having a look around on the internet, it looks like its possible. Have you tried just embedding the HTML into the <description> bit? (you would need to HTML encode stuff like < " and other HTML entities, otherwise it will probably break the RSS)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] RSS with images In reply to
Hi Andy,
can you tell me the html I need, then I can encode it ;-)
Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] RSS with images In reply to
Hi,

Just try the normal method:

Code:
<img src="<%Plugins::Thumb_Images::get_path($ID,"field_name","small","Links","url")%>" />

So the encoded would be:

Code:
&lt;img src=&quot;<%Plugins::Thumb_Images::get_path($ID,"field_name","small","Links","url")%>&quot; /&gt;

Untested, but hopefully something like that will work :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] RSS with images In reply to
Code:
&lt;img src=&quot;<%Plugins::Thumb_Images::get_path($ID,"field_name","small","Links","url")%>&quot; /&gt;

Hmh, the code does not show any output? Frown

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] RSS with images In reply to
Does it output the image URL ok? Try viewing the source of the RSS feed

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] RSS with images In reply to
Hi Andy,
no it shows no url at all.
That's the output Angelic
Code:
&lt;img src=&quot;&quot; /&gt;

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] RSS with images In reply to
Sorry Andy,
everything is fine! Just forgot to define the field_name Whistle
Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] RSS with images In reply to
haha was just gonna say Whistle

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!