I am trying to get Lightbox 2.0 up and running. I have followed the instructions and but when I click on a thumbnail the picture opens in a new page. (http://www.teejayuu.co.uk/2006/07/08/allottment-update/). I have tried using the <body onload="initLightbox()";> intsruction as I picked up in another post but I still can't get it to work. Any help appreciated. Tony
I don't see where the lightbox.css file is in your head.<br /><br />
Also, your paths aren't set correctly. Where did you upload the js and css files? You should be able to type http://www.teejayuu.co.uk/path/to/lightbox/files/ and you should see them in text in your browser. I couldn't when I typed in the paths that you set...<br /><br />-Brian<br />-------------<br /><a href="http://zollinhofer.com">Zollinhofer.com</a>
I guess this is one of the problems I am having - I don't know where to put these files. Do I create a folder under root? Do I put the js in the js folder under the wp-includes folder?
This is what I did (I don't know much about wp, but this should still work)...<br /><br />
In your root folder, put the folder that all the lightbox files came in.<br /><br />
So I had /root/lightbox/<br /><br />
Inside that folder should be folders for css, images, and js.<br /><br />
Then put all the corresponding files in their respective folders.<br /><br />
See if that works. We may have to change some paths in the files themselves, but we can get to that in a little bit. Also, make sure that you change the paths in your headers to:<br /><br />
All done Brian and still no joy. There is a line in my header that contains an onload action - 'window.attachEvent("onload", correctPNG);' - could this be interfering with Lightbox?
One more thing...<br /> You have //JSTogglebox in your html (it looks like you wanted to comment it out) but you can see it in the top left hand corner (ever so slightly...)<br /><br /> -Brian<br /> -------------<br /> <a href="http://zollinhofer.com">Zollinhofer.com</a>
Did you hard refresh? (I don't remember the key combo on PCs) shift-f5 maybe?<br /><br /> -Brian<br /> -------------<br /> <a href="http://zollinhofer.com">Zollinhofer.com</a>
Here is my <a href="http://zollinhofer.com/random/screenshot.png">screenshot</a>.<br /><br /> Also, maybe change the paths to "http://www.teejayuu.co.uk/lightbox/images/loading.gif" (they still weren't coming up)...
Brian Your screenshot is exactly what should be happening - but not on my PC. All that happens is is that the image you get in your light box, just opens in a new window. I have even hard re-booted everything including the PC and I still don't see the light box
I don't know what to tell you. What is the pc keycombo for hard refresh in a browser?
The close button still isn't coming up, but the rest looks fine...<br /><br /> I would still change the paths on those 2 images to see if that will fix it..<br />
I think there is a difference between "reload" and hard refresh... Maybe I'm wrong. Try holding down control while clicking the browser's refresh button and see if that does anything different...
I've emptied the cache, deleted store files, pressed every combination of keys, icons and menu items I can think of and still can't get what you see Brian. I think there must be some setting that is stopping Lightbox that may be peculiar to my machine - seeing as everything works ok with you. Thank you for your efforts Brian I appreciate your help - I think I need to check my browser settings, although other scripts seem too work - I may change may theme and see if that changes things
Sorry it didn't work for you... Let us know what you figure out!<br /><br /> -Brian<br /> -------------<br /> <a href="http://zollinhofer.com">Zollinhofer.com</a>
I am at last getting somewhere - there is a plug-in for WordPress that I've downloaded, at least now I've got a Lightbox working offline (just need to sort out the navigation - but I'll try that on the WP forums. Thanks once again