Member
Member
anbridges   2008-11-29, 04:57
#1

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 in album.php, but when I do that, I just get a big black blob at the top of my screen. Any thoughts?

Administrator
Administrator
acrylian   2008-11-29, 11:37
#2

Note that lightbox type script call the full image so that therefore the full image protection must be set to unprotected.

Member
Member
anbridges   2008-11-29, 12:16
#3

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?

Member
Member
anbridges   2008-11-29, 12:28
#4

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)

Member
Member
anbridges   2008-11-29, 13:12
#5

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.

Administrator
Administrator
acrylian   2008-11-29, 15:01
#6

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.

Member
Member
anbridges   2008-11-29, 15:20
#7

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.

Member
Member
anbridges   2008-11-30, 09:31
#8

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.

`

`

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.