Member
Member
Lillymon   2008-03-13, 10:17
#1
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,
```" 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 =)
Administrator
Administrator
acrylian   2008-03-13, 11:30
#2
1. I guess your browser cache is playing tricks on you, I just tested it with half a dozen browsers incl. Firefox 2 (as a Mac user I only have a 5.5) and they all show 6 albums. It is really unlikely that the browser will do such things anyway, since the php code is executed on your server.

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
Member
Member
Lillymon   2008-03-14, 09:42
#3
- I just found out why everyone else beside me is seeing 6 albums instead of 9. When I log out, I also see 6 albums O_O!
The remaining three albums are only visible when I'm logged in. Anyone knows why is this happening ?
[b]*Edit:[/b] 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 ?
Administrator
Administrator
acrylian   2008-03-14, 10:47
#4
No, that is supposed behaviour, the admin sees even unpublished albums and images. So you probably have 3 albums set to not published.

Regarding lightbox, a simple `"' rel='lightbox'>Bildzoom`should work. Sure that you have included the the lightbox javascript?
Member
Member
Lillymon   2008-03-14, 11:58
#5
[i]"So you probably have 3 albums set to not published."[/i]

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 Smile
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.