ZenPhoto/Wordpress/Lightbox

Has anyone used lightbox in their zenphoto/wordpress integration? I cannot seem to get it to work. I assumed I would include the scripts in the wordpress header file, but that doesn't appear to be working. I know previously, they needed to be below the line <?php zenJavascript(); ?> in album.php, but when I do that, I just get a big black blob at the top of my screen. Any thoughts?

Comments

  • acrylian Administrator, Developer
    Note that lightbox type script call the full image so that therefore the full image protection must be set to unprotected.
  • Acrylian, thanks, but I actually saw that in another post so that is taken care of, along with unchecking the box next to it. Any other thoughts?
  • Ok, I have no idea how to do this by simply putting the code where it needs to be, but I installed a WP Plugin for Lightbox and it works just fine now. Now, to find that code to customize the size of my image again. :o)
  • Ok, I take that back. The only way it works is for an image by itself, not in a group. AND on top of that it's not showing centered on the page. Any help is still appreciated.
  • acrylian Administrator, Developer
    You need to follow the instructions as told on the lightbox site. There are several threads how to include the lightbox or any similar script into a theme. If you are not familiar with Zenphoto themes please take a look at the theming tutorial on our user guide section.
  • I have looked at both... I had it all setup and working fine prior to integrating in Wordpress. Logically, the way I have it setup now should be working, but for some reason I am just not having any luck. I think I am just going to take a break on it for tonight and look at it with fresh eyes in the morning.
  • Well I figured it out & was on the right track all along except that I apparently needed to include builder.js as well. Here is what I recommend:

    Call your scripts from your wordpress header file. You need to include builder.js as well. This is in the lightbox files you downloaded. For some reason you don't normally need to include it but with Wordpress, apparently you do. Also, the order you call them in matters. And you need to use absolute paths. Other than this, you can follow the usual instructions for using lightbox.

    `











    `
Sign In or Register to comment.