Gallery 2.3 user needs help getting to work with Lightbox 2.03-Matrix theme

ckleiman

Joined: 2006-07-05
Posts: 26
Posted: Thu, 2010-02-18 08:09

Need to have Lightbox working since large images crash my css. Followed this tutorial;

http://codex.gallery2.org/Gallery2:Modules:Lightbox#Theme_Mod_.28following_the_tutorial_provided_here.29

Am able to get black lightbox to appear when clicking on an image and the loading.gif image file appears, however, no image appears inside the lightbox and it just "hangs".

From what I can see, the tutorial is using an earlier version album.tpl than the one supplied with my release and I think that might be the problem.

There's only 3 files to modify in the tutorial. The theme.tpl to add the js and css for lightbox, the lightbox.js to update the path to the images and the album.tpl

Since the album.tpl in 2.3 is quite different from the one used in the tutorial I can't but think that the problem is somewhere in that file and/or in my callout to lightbox. Anyway, I followed the instructions to the T and here's where I'm at.

Please help! Dave? anyone?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2010-02-18 15:48

See if this helps:
http://www.chavers.us/content/view/21/42/

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
ckleiman

Joined: 2006-07-05
Posts: 26
Posted: Thu, 2010-02-18 16:55

Hi Dave,

I checked out your link and I tried moving the Lightbox folder into the gallery root, however, results were the same. The folder where Gallery is located is called gallery3 and I'm beginning to wonder if that's a problem?

I now have it working on my localhost wampserver, but, have been unable to make it work on my host server at www.asianproav.com

I've tried many things. Here's my results so far.....When I click on a thumbnail it opens the image in a browser window. At that point you can zoom in to full size or zoom out. The problem is its not finding the Lightbox javascript or at least I think that's what the problem is.

I'm using Lightbox for my product photos already and the java files are in root folders. I've tried copying this folder into my http://www.asianproav.com/gallery3/
and
http://www.asianproav.com/gallery3/themes/matrix/includes/js/

and it still acts like it can't find the lightbox scripts. I don't know why am having so much trouble. There's only 2 files to be concerned with. The theme.tpl and album.tpl. I haven't touched the album.tpl from the one that's working on my local. The fact that photos are opening in a browser window is a good sign the album.tpl is working.....I think.

So, I hope I've narrowed the problem down to one of two things...my theme.tpl URL's or my server?

Here's the URL code from my theme.tpl head section so far:

<link rel="stylesheet" type="text/css" href="{g->theme url="theme.css"}"/>

<script type="text/javascript" src="http://www.asianproav.com/gallery3/themes/matrix/includes/js/prototype.js"></script>
<script type="text/javascript" src="http://www.asianproav.com/gallery3/themes/matrix/includes/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="http://www.asianproav.com/gallery3/themes/matrix/includes/js/lightbox.js"></script>
<link rel="stylesheet" href="http://asianproav.com/gallery3/themes/matrix/includes/css/lightbox.css" type="text/css" media="screen" />

Dave, like I said before the code above is working on my localhost wampserver. I just substitute 127.0.0.1/drupal-6.11/
for www.asianproav.com

BTW, I've also tried entering the URLs with code like the one from the tutorial i.e.

<link rel="stylesheet" type="text/css" media="screen" href="{g->theme url="includes/css/lightbox.css"}" />
<script type="text/javascript" src="{g->theme url="includes//js/prototype.js"}"></script>

Any help greatly appreciated as I'm feeling desperate at this moment. Feel free to check out my site at www.asianproav.com