Hello everyone,
I'm using zenphoto version 1.1.3 and a customized default theme.
My gallery is located
here and there are two things I'd like to ask.
- Firstly, I have 9 main albums that display fine in firefox in the order I specified but for some reason other browsers like IE7, flock and Maxthon display only 6 albums! There are 3 missing albums so could anyone please tell me why is this happening and how can I fix it ?
- Secondly, in image.php page, I'd like my images to open in a lightbox instead of the default *fullsize option.
In the image.php file, I've linked to all scripts required for the lightbox, the scripts are uploaded and the only thing that is left is adding adding the `rel="lightbox"` part to the anchor somewhere in the `div id="image"`
The code I'm using now is,
```
" title="<?php echo getImageTitle();?>" rel="lightbox"><?php printDefaultSizedImage(getImageTitle()); ?>`
but it's not working. Could someone please point out what's going wrong here ?
Any help will be greatly appreciated. Thank you very much in advance
Comments
2. Your code is right except for one thing: You have to use this function for the image url (getProtectedImageURL calls the full-image.php): http://www.zenphoto.org/documentation/Zenphoto/_template-functions.php.html#functiongetFullImageURL
The remaining three albums are only visible when I'm logged in. Anyone knows why is this happening ?
*Edit: While checking the code of my index.php, I noticed the very first line reads as
`<?php if (!defined('WEBPATH')) die(); $themeResult = getTheme($zenCSS, $themeColor, 'light'); $firstPageImages = normalizeColumns('2', '6');?>`
Could the last bit of this have anything to do with the number of albums being 6 instead of 9 ?
- And I changed `<?php echo getProtectedImageURL();?>;` to `<?php echo getFullImageURL();?>` but my images still don't load in lightbox, instead they open in a new window. Any suggestion please or is it even the right code ?
Regarding lightbox, a simple `"' title='"<?php echo getImageTitle(); ?>"' rel='lightbox'>Bildzoom`should work. Sure that you have included the the lightbox javascript?
Thank you very much. This solved it. For some reason, those three albums were set to not-published even though I'm sure I didn't set them to be so.
And the lightboxes are working now ! : D It turns out there was a path thing error.
Thank you so much for your time and patience acrylin. Very much appreciated