Changes Coming for Shadowbox JS
With the last release of Shadowbox JS I added the functionality to add Shadowbox to all image links automatically.
With the next release the following features will be added:
- Admin settings page for configuration.
- Advanced configuration options to tweak most Shadowbox initialization options.
- Automatically add Shadowbox to movie links.
- Automatically add Shadowbox to audio links.
- Automatically add Shadowbox to YouTube and Google Video links.
- WordPress 2.7 uninstall compatibility.
- Enqueue JavaScript and CSS files
- Move Initialization JavaScript to the footer
The admin page is something I have been debating for a while. And with the list of configuration options growing, I figured it best to give users an easier way to configure the plugin, rather than having to edit the variables in the source. The admin page will match the styling of the other pages by using the WordPress admin CSS which isn’t something many plugins do.
As for the additional automation, I had already written the code to add the rel attribute to image links so figured why not re-use it and give users an easy way to show all of their media using Shadowbox.
Anyway…I have some testing to do. Hopefully should be releasing within the next several weeks.
Anyone wishing to test out the development version can download it from the WordPress Plugins Repository.

Thanks much. I’m using it on http://mudlet.org/screenshots/, seems to be working out great.
Ack, ignore that, latest one gives “Fatal error: Method name must be a string in /home/vadix/public_html/mudlet.org/wp-content/plugins/shadowbox-js/shadowbox-js.php on line 84″ error.
As Vadim pointed out there was an issue with the plugin. The plugin was not properly adding the default options on plugin activation. This has been fixed. There have also been some updates to the plugin. Use the download link provided above to update.
Which brings me to another point. I recommend updating at least daily so that you have the most recent development version, as it is the development version WordPress will not notify you that there is a newer version available until it is tagged as the latest stable release, which I will do when it is ready.
Seems to work great now, thank you.
I had this error after: Fatal error: Call to undefined method sbGenHead::() in /home/vadix/public_html/mudlet.org/wp-content/plugins/shadowbox-js/shadowbox-js.php on line 84
Thanks so much for this! I got scared when i understood this wasn’t seamlessly since i had to manually insert tags into link xD Glad that’s been taken care of, will try it soon.
A usability issue imho is that when you have something like an Image gallery (slideshow of thumbs), the next & previous buttons are usually not that great since when you more from an image to another they tend to move since the different sized of the images, so people will usually find them selfs in need to relocate button / then click. I know it has good hotkeys, but consider tablet pc’s and other devices without keyboard.
I really like how lightbox takes care of this issue by being able to click directly on the image, such as: hovering over the left or right side of the will trigger an “next” or “previous” overlay display, as expected when clicking you will switch to another image…
Any tips for this? Can you take care of the issue?
Thanks so much for the great work on this plug-in. I’m definitely recommending it to people. Cheers!
so sick! can’t wait. thanks for refining this awesome plugin!
Hey Thanks for updating this plugin I really appreciate your hard work and just wanted to let you know!
WOW!!!!!! This is EXACTLY what I have been looking for. I have always loved Lightbox, and Lightbox-type scripts to display images. I found two other plugins, but they didn’t resize the image to fit the screen like yours did! Since I have large image, often over 2000px on sides, this works perfect. Will suggest this to my fellow webmaster friends.
You can see the plugin by visiting on of my photo galleries here: http://fanzonesports.net/nascar/photos/2008-photos
Thanks again!!!! Can’t wait for the admin page, that will only make it better!
I’ve been working on adding advanced configuration options to the admin page to allow changes to the Shadowbox initialization options. Probably the one initialization option that people have been asking about recently is handleOversize. While this can be overridden on a per link basis this new ability to the plugin will allow you to configure this globally.
Hopefully I’ll get this released soon!
Just added localization support. Bumped the version to 2.0.2.9. Download the development release using the link in the post.
I just bumped the development version to 2.0.2.9.1.
There have been huge updates to the actual functionality of the plugin. The plugin now enqueues the javascript files and css files, and outputs the Shadowbox initialization javascript to the footer.
There was a lot of other reorganizing in the main plugin file but that isn’t important to most of you. Update your development release using http://downloads.wordpress.org/plugin/shadowbox-js.zip
This plug-in is awesome. I was looking for light box but is much sweeter. The only thing I would like to see is a way to add additional text.
I want to put a blurb about the image with each picture within the shadowbox or put some javascript. Is this something you could look at?
Other than that, awesome. Keep up the nice work
Finally a great plugin for my galleries, thank you very much. I wait for the options page, if you need a hand to write it, let me know (I worte so many config pages I can’t remember).
Un gran trabajo :) muchas gracias por esta pieza maestra de código.
Nice work :) thank you very much for this master piece of code.
Nice plugin! I’d like to try to port it to FlatPress if you agree.
Great plugin!