RSS plugin usage question
Posted: 18 August 2004 02:55 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  139
Joined  10-20-2002

I read the docs on the RSS plugin, but I can’t seem to make it do what I want.
or even figure out if it’s possible.

I am thinking about starting a photoblog, and I want the RSS plugin on another site to read the Atom feed from the photoblog and pull just the thumbnail that will be in every post, and link it to the permalink of that post.

Is this possible?  TIA!

Profile
 
 
Posted: 18 August 2004 03:00 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

I’m not sure if magpie can handle Atom.  You may need to have it read your RSS 2.0 feed. 

 Signature 
Profile
MSG
 
 
Posted: 18 August 2004 06:45 PM   [ Ignore ]   [ # 2 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

Yes, it is possible, and the plugin does do Atom.  You have to make sure that your Atom feed has the thumbnail in the feed though.

 Signature 
Profile
 
 
Posted: 18 August 2004 10:03 PM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  139
Joined  10-20-2002

It does.  How can I get it working?  I have literally tried everything I can think of.

Profile
 
 
Posted: 18 August 2004 10:05 PM   [ Ignore ]   [ # 4 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

URL of your feed?

 Signature 
Profile
 
 
Posted: 18 August 2004 10:58 PM   [ Ignore ]   [ # 5 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  139
Joined  10-20-2002

Here’s the test site:

http://stark23x.com/index.php/weblog/rss_atom/

Profile
 
 
Posted: 18 August 2004 11:07 PM   [ Ignore ]   [ # 6 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

Well, this will display the thumbnail.  However, the <content> tag of the RSS feed has already given the image a link to the full size image and not the post. 

{exp:magpie url="http://stark23x.com/index.php/weblog/rss_atom/" limit="10" refresh="720"}
{items}
{content}
{
/items}
{
/exp:magpie}

What you might consider doing is making a field in your weblog that is specifically set for ONLY the URL for the thumbnail and then you can modify the Atom feed to have that field in the <content> tag and then do something like this:

{exp:magpie url="http://stark23x.com/index.php/weblog/rss_atom/" limit="10" refresh="720"}
{items}
<a href="{link}"><img src="{content}" /></a>
{/items}
{
/exp:magpie}

 Signature 
Profile
 
 
Posted: 19 August 2004 05:22 AM   [ Ignore ]   [ # 7 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  139
Joined  10-20-2002

Got it!  I took yioru second suggestion…I did have to slightly alter the example to get it to work:

<a href="{link}" target="_blank">{content}</a>

That produced the thumbnail and a link to the permalink.  Perfect.

Thanks!

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64978 Total Logged-in Users: 25
Total Topics: 82015 Total Anonymous Users: 22
Total Replies: 440813 Total Guests: 190
Total Posts: 522828    
Members ( View Memberlist )