Missing album in IE7 * Lightbox integration

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

  • acrylian Administrator, Developer
    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
  • - 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 ?
    *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 ?
  • acrylian Administrator, Developer
    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 `"' title='"<?php echo getImageTitle(); ?>"' rel='lightbox'>Bildzoom`should work. Sure that you have included the the lightbox javascript?
  • "So you probably have 3 albums set to not published."

    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 :)
Sign In or Register to comment.