Hi all,
I'm new to Zenphoto but I managed to create my website (mainly a photo gallery with Zenpage to display a few additional pages (About me, news, prints available,...). I modified a template to suite my needs OK.
Great software... Cleanly developped, makes it easy to tweak...
I was not satisfied with the title of the RSS feed in my Google homepage : it only display the name of the gallery. I found that it should at least display the website name. So I modified the core (bad thing, I know).
In /zp-core/rss/rss.php, I changed :
to :
If anybody knows how do that without hacking the core, I take it...
Furthermore, the RSS feed is only available on the gallery page. It does not show on other pages. I would like to have the RSS 'gallery' feed available on all pages...
I might be able to do that but I would probably hack the core again and I would like to quit that bad slope I'm on...
Thanks,
Karim
The Gallery name is the website name in Zenphoto terms. If you need the url or else to be show just change the gallery title option. No hacking required.
I don't know what theme you are using but the rss feeds are availble on all pages. At least in the browser address bar. We have also context sensitive feeds for albums etc. You can of course change your theme to include what feed type you wish. See the user guide and documentation.
Thanks for your fast answer... Great community...
You can see that on www.kamphotog.com.
We focus primarily on sites that are run with Zenphoto and the Zenpage CMS plugin alone. Add the name of your website to the gallery title then. If that is not what you need you indeed have to hack the rss feed.
By the way, I also modified some more the /zp-core/rss/rss.php file to correct some character display in my RSS feed (french accentuated characters were :
(I added some html_encode() on titles)
`
printf('%1$s (%2$s)', html_encode(get_language_string($item->get("title"),$locale)), html_encode(get_language_string($albumobj->get("title"),$locale)));
//Modified by KAM
// was :
//printf('%1$s (%2$s)', get_language_string($item->get("title"),$locale), get_language_string($albumobj->get("title"),$locale));
`
I could not find (with my limited skills) a better way to correct the display...
Acrylian,
Thanks for your valuable help. I'll try to digest your explanations... and find the best way to do what I want to do
regarding 2) :
Do you mean that I need to move the printRSSHeaderLink() call from theme's index.php to the other pages of my theme (album.php,...) ?
[there is no rss calls/functions in my theme, except the printRSSHeaderLink() call I added in index.php]
BTW : I can only see your posts (not mines) in this thread...
Thanks again...
Yes, you can add that header link to any theme page (as it official theme have as far as I remember). Please read the theming tutorial if you haven't already.
The html_encode additions are right and indeed missing somehow.
[i]BTW : I can only see your posts (not mines) in this thread...[/i]
Seen the red note above the form?...
hi
I have the same need about rss title
maybe, a nice improvment of ZenPhoto would be :
in rss feeds options, give the choice of the rss title :
use 'gallery title' or 'website title'...