Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

[ NEW PLUGIN ] BBC_News [ FREE ]

(Page 2 of 2)
> >
Quote Reply
Re: [Andy] [ NEW PLUGIN ] BBC_News [ FREE ] In reply to
Andy,

Example below:

Title: Georgia and Russia agree on truce
URL: http://news.bbc.co.uk/go/rss/-/1/hi/world/europe/7557457.stm ( I would like to go to the news page but URL is not a link. )
Description: Georgia and Russia agree an outline plan to end hostilities, following shuttle diplomacy by French President Nicolas Sarkozy.
Quote Reply
Re: [rascal] [ NEW PLUGIN ] BBC_News [ FREE ] In reply to
Try:

Code:
<%loop news_loop%>
Title: <%title%><br/>
URL: <a href="<%link%>" target="_blank"><%link%></a><br/>
Description: <%description%><br/>
<br/>
<%endloop%>

That should 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] [ NEW PLUGIN ] BBC_News [ FREE ] In reply to
Thanks Andy, it works!
Quote Reply
Re: [Andy] [ NEW PLUGIN ] BBC_News [ FREE ] In reply to
Hi Andy,

How would I go about retrieving an image when the code is nested with other tags?


<channel>
<item>
<content:encoded>

<![CDATA[
<p><a href="http://123.com"><img src="http://123.com/a.jpg" /></a></p>
<p>Hillary loves her new car her stepdad purchased.</p>
]]>

</content:encoded>
</item>
</channel>

I have tried this but to no avail:

Code:
$ref->{channel}->{item}[$i]->{image} = $ref->{channel}->{item}[$i]->->{'content:encoded'}->{img}->{src};

~ ERASER


Free JavaScripts @ Insight Eye
Quote Reply
Re: [Eraser] [ NEW PLUGIN ] BBC_News [ FREE ] In reply to
Mmm.. not sure from offhand. Shoot me a full example of the XML, and I'll see if I can work it out. Don't have time to start really playing around too much - as im in the middle of a big job =)

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!
> >