ZenphotoCMS Forum
Made my own RSS Feed - useful? - 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: Made my own RSS Feed - useful? (/thread-739.html)

Pages: 1 2


Made my own RSS Feed - useful? - Alenonimo - 15-08-2007

Oh yea… Put this on the templates, inside the tags.

``

This will allow the feed autodiscovery for browsers.




Made my own RSS Feed - useful? - Alenonimo - 15-08-2007

Just an tip for the FeedBurners. Edit the [b].htaccess[/b] to include this:

`RewriteEngine On

RewriteCond %{HTTP_USER_AGENT} !FeedBurner

RewriteRule ^rss.php$ http://feeds.feedburner.com/your-feedburner-feed [R,L]`

This will redirect people acessing your rss.php to your FeedBurner. Just won't redirect the FeedBurner itself.




Made my own RSS Feed - useful? - acrylian - 20-08-2007

I did a little expanding modification that might be useful. The RSS generator is now capable to generate a newsfeed for any album now, too.

Usage:

Save the code as "rss.php" within your theme folder then place the links into your themes:

  1. On any theme file the common rss feed for the whole gallery:

RSS

  1. On album.php and image.php the album rss feed for the currently selected album:

&albumname=">RSS for this album

Or you can place the rss.php within the zenphoto root in this thread:folder and called it via your theme like this:

RSS

or

&albumname=">RSS for this album

Here is the code:

`

en-us

http://blogs.law.harvard.edu/tech/rss

Acrylian's ZenPhoto RSS Generator based on Alenônimo's ZenPhoto RSS Generator which is based on ThinkDreams' Generator...:-)




Made my own RSS Feed - useful? - acrylian - 20-08-2007

Sorry seems the forum does not like when I am posting...the usage part gets mangled.

So just download here:
rss-for-gallery-and-albums




Made my own RSS Feed - useful? - thinkdreams - 24-08-2007

Works for me. Good replacement for what I had been using, as it uses the db settings from the zp_config, rather than duplicating them in the rss.php file.




Made my own RSS Feed - useful? - Alenonimo - 02-10-2007

acrylian,

Your version is very good, but I have a suggestion to do. Could you put an `` between the image and description at the feed items?

And the getIDforAlbum() function make some weird errors when I put it on my template. What could be causing it?