1337Box Enhanced Lightbox v0.62
bwg
Registered Users, Retired Mod Posts: 2,119 SmugMug Employee
I really like lightbox, i think it's a much more efficient way to view photos than single image view. I've put together a script that will modify the thumbnails in all the gallery styles to open in lightbox (even slideshow and filmstrip).
There is also an option to force singleImage url's to open in lightbox as well. For example: http://bigwebguy2.smugmug.com/gallery/883844/2/41496382/Large will be opened straight into lightbox instead of being opened in singleImage.
This script has been tested on Firefox 1.5, IE6 on WinXP and Safari, Camino 1.0, Firefox 1.5 on OSX. It works with image protection on or off.
To use this script, copy the contents of the attached file to the javascript block in your customization screen. There are more detailed instructions in the script.
Please post any bugs/questions in this thread. Enjoy!
16 January 2007 v0.62
- fixed bug where 1337 would throw errors if you hid galleries/categories on your homepage
04 June 2006 v0.61
- removed cart button due to SM implementing cart in LB
25 April 2006 v0.6
- fixed cart disappearing on size change
25 April 2006 v0.5
- Renamed to 1337Box and added cart functionality. Minor bug fixes.
24 April 2006 v0.4
- Initial release
There is also an option to force singleImage url's to open in lightbox as well. For example: http://bigwebguy2.smugmug.com/gallery/883844/2/41496382/Large will be opened straight into lightbox instead of being opened in singleImage.
This script has been tested on Firefox 1.5, IE6 on WinXP and Safari, Camino 1.0, Firefox 1.5 on OSX. It works with image protection on or off.
To use this script, copy the contents of the attached file to the javascript block in your customization screen. There are more detailed instructions in the script.
Please post any bugs/questions in this thread. Enjoy!
16 January 2007 v0.62
- fixed bug where 1337 would throw errors if you hid galleries/categories on your homepage
04 June 2006 v0.61
- removed cart button due to SM implementing cart in LB
25 April 2006 v0.6
- fixed cart disappearing on size change
25 April 2006 v0.5
- Renamed to 1337Box and added cart functionality. Minor bug fixes.
24 April 2006 v0.4
- Initial release
Pedal faster
0
This discussion has been closed.
Comments
Thanks for hacking!
Portfolio • Workshops • Facebook • Twitter
I think this is a great hack & I'll be using it on my site. I only wish there were an overlay (similar to the thumbs up/down rating overlay) that pops up allowing a user to add the current photo to the shopping cart. The trouble with the lightbox view on the traditional or all thumbs views is that you can only purchase via the "buy multiple photos" link.
Any chance SM could add a "buy" overlay to the image overlays?
excellent suggestion. new version 0.5 with cart! check out the first post.
Dgrin FAQ | Me | Workshops
i tested this thing backwards and forwards...key presses and everything.
forgot to test size changing.
sigh.
Testing is hard. There are a dozen of us testing stuff all the time - still hard!
Portfolio • Workshops • Facebook • Twitter
fixed. new version 0.6
http://photos.mikelanestudios.com/
:lol4
http://photos.mikelanestudios.com/
And can I disable this hack from activating when using the Slideshow & Journal styles? I use Journal style for my videos section, so when someone clicks to see a video, Lightbox pops up & doesnt take them to the next page where the vid is located. Theres no way to get to it, besides changing the viewing style.
forcing medium is an issue? with my script? methinksnot.
J/K, but I did run into that Journal problem with my video gallery. But this script does rock pretty hard & I did figure out how to disable the hack in Journal style (just erase it). Duh on my part, but I honestly didnt think it would be that simple in javascript for some reason. Script is scary to me.
But now, the shifting nav bar in Lightbox Large is a little annoying, but maybe thats just how it is without the script, I never really noticed it before. Which is why I just wanted it to automatically default to Medium across the board, but still allow Larges to be clicked on. But, alas. I will never figure that one out. :
i'll see if i can integrate the medium thing into it...but it goes away from the way preferred sizes are currently handled so i'm not really sure if i want to give the option on forcing an initial size. I'm all about consistency and one thing i hate is getting an unexpected result from a previously realized behavior.
you can always use the keyboard arrows to navigate instead of the < > buttons
I wish Lightbox was smart enough to counteract that & sense when the browser displays the scroll bar so the nav bar would compensate for it. Perhaps the overall nav bar length could be shortened so it didnt touch the ends of the browser window?? That would do it.
But, yeah. In the meantime, I would like to force Medium at start up.
ok, glad you finally switched on. i only said that 4 posts ago.
To sum it up, yes. Im stupid. I'll just sit quietly over here in the corner so I wont disturb the other kids who are here to learn. :snore
bwg - feature request time!
Think you could make the "photo options" drop down appear somewhere onscreen with the lightbox if you're logged in? I have some galleries set to "all thumbs" and I need to change that to something else temporarily in order to get to those options.
Thanks!
Also, as another feature request...
Any way you can prevent the page from scrolling back to the top upon the lightbox closing?
you'll have to be patient with me on this...i got big plans for this but i am super busy right now so it may be a while before i can get around to it.
http://dgrin.com/showthread.php?p=294226#post294226
FEATURE REQUEST:
Put a "save photo" or "D" for download link beside the image sizes, just like it is in the regular viewer in SM style. This is really the only thing keeping me from letting Lightbox open when someone clicks on a thumbnail. Full access like that would be killer. I know they could always go original & then right-click, but thats not very elegant.
BTW, take a look at this dude's site. Click on some of those links & pics on his page & then close them. Isnt that soo cool? You think Lightbox could be made to act that pretty??
that guy has a cool effect for sure...and like i said i have plans. just be patient.