Pages (2):    1 2
Member
Member
Alenonimo   15-08-2007, 04:06
#21

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

``

This will allow the feed autodiscovery for browsers.

Member
Member
Alenonimo   15-08-2007, 04:10
#22

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.

Administrator
Administrator
acrylian   20-08-2007, 10:21
#23

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...:-)

Administrator
Administrator
acrylian   20-08-2007, 10:26
#24

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

Member
Member
thinkdreams   24-08-2007, 16:28
#25

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.

Member
Member
Alenonimo   02-10-2007, 00:48
#26

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?

Pages (2):    1 2
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.