Problems after upgrading with lightbox

Hi,

I upgraded to 1.1.6 and know my photo open up without the lightbox/slimbox been used.
Is this a bug or did i do something wrong?

Comments

  • acrylian Administrator, Developer
    Lightbox/slimbox are not Zenphoto features. So you probably use a custom made theme, so you would have to rework this maybe.

    We have included thickbox by the way, which is basically the same. Take a look at the image.php file of the included default theme, how to use it (it's used for the exif date only there).
  • murphnl Member
    I'm using the chilli-light theme and it "was" working before the upgrade.
    When i click on a thumbnail it opens the picture on a new page without the theme.

    I'm using the following code.

    <div class="imagethumb">" rel="lightbox[<?=getAlbumTitle();?>]" title="<?=getImageTitle();?>"><?php printImageThumb(getImageTitle()); ?></div>

    </div>

    Does anyone have a idea or experiencing the same problem?
  • murphnl Member
    Can someone point me in the right direction as i'm willing to learn?
  • acrylian Administrator, Developer
    I don't know that theme in detail (it's not a "official" one). It seems that the lightbox javascript might not be where it should.
    Did you try the version from our site? (you didn't say what zp version you upgraded from).
  • murphnl Member
    Hi Acrylian,

    I upgraded from 1.1.5 to 1.1.6 and i didn't change anything in the theme.
    This is why i'm confused

    Where can i find the lightbox javascript on the zenphoto site?

    Thanks
  • acrylian Administrator, Developer
    The lightbox script is nothing Zenphoto specific: http://www.lokeshdhakar.com/projects/lightbox2/

    A similar solution called Thickbox, also nothing Zenphoto specific, is already included in Zenphoto: http://jquery.com/demo/thickbox/
  • zucye Member
    I have a similar problem witht the Slimbox and Smoothgallery included with the effervescense Theme. I posted my problem in the following topic:
    http://www.zenphoto.org/support/topic.php?id=3045

    Yesterday I installed a different theme that uses a similar sript (can remmber the name right now) and it didn't work either.

    I also tried moving the sript to the root folder and writting the full URL, no sucess there either. Later I will try Greybox (my personal favorite) to see if it works. But I kind of belive that there is a comflict in the new version and the "___box" scripts.

    BTW - you might try login off, It was suggested to me. It didn't work for me, but it might work for you.
  • fatman Member
    I also have similar with a theme using mootools, the error console in firefox prompt an error in calling mootools.js.
  • murphnl Member
    I had to add the path o builder.js

    <script src="http://path-to/builder.js"> type="text/javascript"></script>

    And before
    <script src="http://path-to/lightbox.js" type="text/javascript"></script>

    Hope this is a fix you can use Zucye
  • zucye Member
    @murphnl:
    Where exactly did you do that? album.php?
    Is builder.js part of the Lightbox package?
  • murphnl Member
    @zucye

    I added it to album.php

    builder.js can be found in the default "js" folder that comes with lightbox.
    http://www.lokeshdhakar.com/projects/lightbox2/

    I have the code inserted in the following order.

    <script src="http://path-to/builder.js"> type="text/javascript"></script>
    <script src="http://path-to/lightbox.js" type="text/javascript"></script>
  • Moving the location of builder.js didn't work for me. After many late nights trying to figure out what the problem is, I think I finally found it. It seems to be a problem with some code in either ajax.js or or scripts-common.js. Both of these are included by the function zenJavascript which is located in the functions.php file. The zenJavascript function is called by the theme files that can at least include the following: album.php, archive.php, image.php, index.php and search.php.

    What worked for me is to edit the files and move the zenJavascript line directly below the HEAD tag.

    It should look something like this:

    ....
    <HEAD>
    <?php zenJavascript(); ?>
    ....

    In a template such as Effervescence+ the call to that function will look like this:
    zenJavascript();

    Just delete that line and add the php zenJavascript(); line as stated above.

    I don't know exactly what the problem is, but this worked for me.
  • zucye Member
    This also worked for me!

    Thanks krainbolt!!
  • Thanks for figuring this out. Works for me, even when logged in as admin (which never worked for me before.) I will incorporate this fix into the release.
  • Worked here too.

    Thanks
  • I was having this problem as well, when trying to use the Simple+ theme. I tried what was suggested, and it now works in Firefox, but not Internet Explorer. Help in simple terms please, I'm somewhat of a PHP newbie.
  • i have the same problem - does anyone know how to fix it?
  • Which version of IE and build of zenphoto are you using?
Sign In or Register to comment.