ZenphotoCMS Forum
Using Magpie for an RSS Feed - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Using Magpie for an RSS Feed (/thread-2644.html)



Using Magpie for an RSS Feed - koury - 2008-04-09

We currently are using Magpie for most of our other RSS feeds that we have on our sites, but for some reason I don't know how to display just the image...

I want to display the title of the file and the image. Heres what I have so far.




Using Magpie for an RSS Feed - acrylian - 2008-04-09

I don't know or ever used Magpie. Is that to display the feed on a page directly? Well, in that case it seems to work in Safari 3.1, I see the player name and below the photo, but Firefox gives this error you probably know:
[i]Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /Volumes/Zeus2/WebServer/photo_rss/index.php on line 14[/i]




Using Magpie for an RSS Feed - koury - 2008-04-09

I got it to work now. However with :

But when I click the links (so it will take me to the zenphoto page) it breaks after and space thats in the file name.
For example if I click "Brian Mohr" it takes me to http://calyou.cup.edu/test/zenphoto/index.php?album=Team_and_Head_shots/Players&image=Brian
instead of http://calyou.cup.edu/test/zenphoto/index.php?album=Team_and_Head_shots/Players&image=Brian%20Mohr.JPG

It does the same thing with " + "s as well.

Any tips will be appreciated.




Using Magpie for an RSS Feed - AlexWilson - 2008-04-09

try something like

$href = urlencode($item['link']);

and make sure the a tag attributes are in quotes, e.g. href=... is href="..."