I posted this in response to another thread but figured I would post it in here since this a theme that has been created.
I created a theme using Lightbox.js
I basicaly have 2 versions..
One is my theme that I have colored to how I like things, with some simple blue's and greys
http://www.chilifrei.net/downloads/Chili-Light_Official.zipand just the default theme but with Lightbox.js
http://www.chilifrei.net/downloads/Chili-Light_Default.zipThis theme uses the lightbox on the thumbnail page and basically removes the single image/commenting page.
you can see a demo at
http://beta.chilifrei.net/zenphotoAnymore information that I may not have posted here will be here:
http://www.chilifrei.net/?p=41Enjoy
Comments
The implementation of lightbox on my part simply consisted of linking the js file on the page and adding a rel="lightbox" to the image tag
The only things I can think of is for some reason the path to the loading.gif is incorrect in the js file on line 36... it should start read
var loadingImage = 'themes/Chili-Light/images/loading.gif';
The only other thing that sparks my attention is on line 193 in the js file is
objLoadingImage.style.display = 'none';
since the error says no properties on 193.. give it some properties.. make 'none' into 'block'
I really dont know much about javascript at all.. what I gathered from setting all this up was just ensuring that you have the correct paths.. once I figured out what they should be everything worked fine..
I did just try to load the theme directly out of the zip into one of my test galleries and everything worked fine...
were any of the paths changed?
I tried various things and I finally just removed the line 193 and now it works fine. I really don't know why this error happened. The lightbox effect simply would not work, neither with Firefox nor with IE.
The line 36 doesn't work either. I tried to change the path to loading.gif but never get it to appear.
Thanks for your help on this issue !!
Now I have a new problem but it has nothing to do with your Lightbox theme : my images are just too large !! When I click on the thumbnail, the lightbox effet works fine but the image is much bigger than the screen ... so, it's not really nice-looking !
... it would seem silly to just put the lightbox on the image page where the image is already displayed wouldnt it? If you have a logical way of doing it I will certinately try but if it is just gonna add an effect just for the sake of adding the effect and not be functional....
http://serennz.cool.ne.jp/sb/sp/lightbox/
Just replace lightbox.js with lightbox_plus.js in the header part of the albums.php page in the template set.
This will then show your full sized images shrunk to the size of the page first, and the user can choose to click a button in the top left of the image to see it full size.
Also of note, to get the "loading" animated gif to load in the center of the screen, put
text-align:left;
in the
#overlay{
area of zen.css
Works like a charm for me. Big thanks to Chili for the work!
http://www.huddletogether.com/projects/lightbox2/
http://beta.chilifrei.net/zenphoto2
The link to the download is
http://www.chilifrei.net/downloads/Chili-Light2-Default.zip
A couple things with this and I havent decided really how I would do this.. I am hoping there will be a way. In lightbox.js v.2, they have the option scroll through the images from within the lightbox. This will only scroll through the images on that page.. which means if you have more than 1 page you have to exit lightbox and go to page 2 and restart... or make the images per page in your config.php to a crazy number like 100 to make this work.. which would be fine(sorta) except lightbox.js will only start working once the page is loaded.. so if you have 100 images.. you will have to wait a while for the pages to load..
if anyone knows of a way to override a setting in the config.php in the templates file please let me know and I will do what I can.
Until then.. enjoy..
Side Note: This is hosted off my home server.. as my connection is not bad.. it really cannot handle a large amount of connections.. If it is down or really slow.. please just be patient..
Also.. I am upgrading my webserver in about a week and a half.. so there may be intermittent downtime during that time frame.. please just be patient with me.
var fileLoadingImage = "../themes/Chili-Light2/images/loading.gif";
var fileBottomNavCloseImage = "../themes/Chili-Light2/images/close.gif";
(the difference is the '../' on each line)
In case you need to know, I am on Dreamhost, PHP5, NOT using php-cgi, using mod_rewrite.
I hope this helps some people
http://www.benscottarts.co.uk/zenphoto/
i realise the reason for a bit of link coming on the overlay area but cannot get the graphics to appear for load or close
also found many difficulties getting the lightbox.js 2nd version from huddle together to work or the chilli theme to work
does javascript reference a url in a weird way like css or is it plain html reference?
Lightbox2 stores references to 2 images in the js file on line 60 and 61 which are hardcoded for my theme.
the loading image and the close image
Just change the path in the js file to your path and both images should work for you
http://beta.chilifrei.net/zenphoto2/
also.. after looking at your sources.. it looks like you are using lightbox version 1 and trying to add the close.gif to that.. version 2 would be much easier.
Also. I remember having a problem with using "../" in the js file which is why it was hardcoded.
try hardcoding it with the webpath which in your case would be.
"themes/stopdesign/img/close.gif"
yes yours works
tried the hardcoding of link, wasnt sure if maybe it is something to do with conflict of style names with stop design template
I am looking to implement lightbox by clicking the album picture itself (no images/commenting page), is that possible?
Thanks.