How do you limit the plugin to being loaded ONLY on single posts and pages? I’ve tried to modified the code, but it seems to not do anything at all.
global $post;
if (!is_single($post) && !is_admin()) { // if we are *not* viewing an admin page, like writing a post or making a page:
wp_enqueue_script('lightbox', ($stimuli_lightbox_plugin_prefix.$stimuli_lightbox_js), array('scriptaculous-effects'), '1.8');
}
Please help…
]]>People have mentioned that it is hard to scroll through my galleries using an iPad because the lightbox would always open.
Here is an example of a portfolio page
Does anyone know how I can make it more user friendly for iPad users??
]]>Why is the title appearing in the stimuli when activated in the widget, but not in the regular gallery?
widget ouput via chrome:
<a href="https://shaccamp.org/wordpress/wp-content/gallery/franklin-climbing-trip/100_2738.jpg" title="" rel="lightbox[ngg-images-3]"><img src="https://shaccamp.org/wordpress/wp-content/gallery/franklin-climbing-trip/thumbs/thumbs_100_2738.jpg" width="75" height="50" title="Franklin overhangs" alt="Franklin overhangs"></a>
regular gallery ouput:
<a href="https://shaccamp.org/wordpress/wp-content/gallery/franklin-climbing-trip/100_2738.jpg" title=" " rel="lightbox[set_3]"><img title="Franklin overhangs" alt="Franklin overhangs" src="https://shaccamp.org/wordpress/wp-content/gallery/franklin-climbing-trip/thumbs/thumbs_100_2738.jpg" width="100" height="75"></a>
The close button doesn’t seem to work when working with large images while viewing on a small height screen (like a laptop).
Some examples:
https://www.kerkarchitect.nl/projecten/duruzame-verwarming-sint-bavo-nudge-prijsvraag/
https://www.nielsinmiami.nl/?page_id=25
Both sites use WordPress 3.2.1 and have the option checked to shrink larger images to fit smaller screens. Clicking beneath the close button seems to work for some images.
This seems like a CSS issue to me, i’ll look into it myself as soon as I have some spare time. ?? Just thought I’d let you know.
]]>Hello,
the plugin works OK in WP3.2.1 and the option ‘Add rel=”lightbox[]” to all linked images’ is very nice. Nevertheless, is there any possibility to EXCLUDE some if linked images in the page/post from this “auto-add” option?
I tried to add something like rel=”false” to these items manually, but the only result is nonvalid code:
rel=”false” rel=”lightbox[]”
It seems the hack have to be done in regular expressions for adding of the lightbox[] string:
$pattern = “/(<a(?![^>]*?rel=[‘\”]lightbox.*)[^>]*?href=[‘\”][^’\”]+?\.(?:bmp|gif|jpg|jpeg|png)[‘\”][^\>]*)>/i”;
$replacement = ‘$1 rel=”lightbox[‘.$post->ID.’]”>’;
$content = preg_replace($pattern, $replacement, $content);
Do you have any idea?
Thank yoe very much,
with best regard, Joo
Worked just fine up until recently. Doesn’t seem to work with 3.2.1 (can’t confirm).
Program no longer in development, so no fix is forthcoming.
]]>I’m using Lightbox 2 v2.9.2 and upload medium size pics 1280 x 960 to wordpress. When I’m using my 13″ macbook, it is set to resize the images so that the entire image fits, but it looks like it makes them too small and I’d prefer if there wasn’t so much space around teh photo. see pic attached:
https://dl.dropbox.com/u/338264/lightbox.jpg
It seems like the pic height could be 10-20% larger. Can anyone help me change the appropriate setting to adjust the size of these photos?
thanks in advance!
]]>I install lightbox-2 in WordPress3.2.1.
IE9 and Firefox and Chrome works no problem.
But it doesn’t work in IE7 and IE8.
Is this WordPress3.2.1’s Bug?
Would you please tell me about solution for this trouble.
]]>I tried the latest verson of this plugin with Opera browser 11.5 and the caption background disappears at the end of the animation, leaving the caption text itself and the close button on top of the dark grey layer.
]]>I have tried all including this time LightBox 2 but all will just show the loading… with image links like this: https://lh4.ggpht.com/-ucltP0QMYco/ThxNf6y8CQI/AAAAAAAAGX8/H0aoV-EVpfI/s1600-h/f3ggn3vg%25255B2%25255D.jpg
You can try creating thumbnail and link to it, then the image won’t load.
For Blogspot Blogger, there is a fix with the script https://simplexdesign.blogspot.com/2011/03/lightbox-auto-show-image.html to remove the s1600-h. So please, implement this to work with all image links.
]]>I am using WordPress Version 3.1.2 with Internet Explorer 8 and with this version of WordPress I get the potential errors below:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; IE0006_ver1;EN_US)
Timestamp: Thu, 14 Jul 2011 07:52:08 UTC
Message: Object doesn’t support this property or method
Line: 4821
Char: 5
Code: 0
URI: https://www.itsnoprob.co.uk/Birmingham_Ecommerce_Web_Design/wp-includes/js/prototype.js?ver=1.6.1
Message: Object doesn’t support this property or method
Line: 25
Char: 264
Code: 0
URI: https://www.itsnoprob.co.uk/Birmingham_Ecommerce_Web_Design/wp-includes/js/jquery/jquery.js?ver=1.4.4
Question: Although the fuinctionality of Lightbox appears unaffected, is there anyway to remove the potential error warning??
Many thanks.
]]>have all images linked to the file url on my hosting. Works once, then not again. Sucks because another plugin works, but its a bit slower. Fix thisss? Running newest wordpress btw.
]]>Hi There,
looking for a solution to this challenge ??
i would like to use lightbox 2 to present a set of pictures from an exhibition. Each element of the exhibition can be photographed from different angles.
So we have one thumbnail and more pictures under it (to save some space and not to display more than one thumbnail of one element)
thx for any help
…
https://stimuli.ca/2011/04/13/wordpress-plugins-discontinued-lightbox-2-slickr/
WordPress plugins discontinued (Lightbox-2, Slickr).
It has been a long time coming, but today, at last, I can say with absolute certainty that all work on WordPress plugins has stopped for good here at stimuli.ca.
Actually, development stalled years ago on both the plugins, as my 3D graphics career has blossomed, I settled into married life, and now my wife and I have a baby due in May 2011. The thing is, people haven’t necessarily realized that and continue to regularly seek support on this site (stimuli.ca) in the comments or via email, and my heart goes out to them. I wish them to seek out actively developed plugins, and toss my old, broken defunct plugins onto the scrapheap of history.
I sadly don’t have the spare time to work on either plugin. I wrote the plugins for me, years ago, and decided to share them with others, back when the functionality I sought didn’t already exist. Now, however, there are countless plugins that do similar, if not identical, things to my plugins.
All of my code is open source, as is the code my plugins depend upon (like Flickr code and the Lightbox javascripts). If anyone wishes to, please feel free to take over the reigns of either plugin. Barring that, and thus barring either plugin being brought up to date and made to work again, everybody please use alternative plugins that actually get updated more than every three years ??
Lightbox users, I recommend looking into jQuery Lightbox Plugin. The reason is, besides the fact it is actively updated, 99.999% of issues people have had with my plugin is due to javascript conflicts. You will have fewer WordPress/javascript conflicts if you switch to a plugin that uses jQuery javascript libraries. Mixing Prototype and jQuery leads to heartache and busted website for less technical people.
Regardless of which plugins you opt for, just be aware that my wordpress plugins are old, broken, and utterly unsupported, and no longer in development.
Spread the word, and good luck to you and your blog! It’s been a blast.
Thanks for using Lightbox-2, and Slickr, I’ve enjoyed working on them and don’t regret a minute of it.
]]>resize.js throws the following error in IE8 (but works in Chrome and Firefox):
Message: ‘style’ is null or not an object
Line: 33
Char: 6
Code: 0
Ever since upgrading to wordpress 3.1, the lightbox2 plugin has stopped functioning unless I put IE8 into compatibility mode. Then it works as expected. I would rather not have to change the theme if I don’t have to. (In firefox it works as expected…)
kparnell
]]>Using Window 7, I try to move my Firefox window to my second monitor. I click the title bar and drag it. It resizes a bit as it should and then stops moving. After several seconds, I get an error saying that a script has stopped working. When I look at that script, it’s the one used by Lightbox 2.
If I disable Lightbox 2 in my WordPress 3.1 dashboard, everything works fine. Also, it works fine – even with the plugin enabled – in Chrome.
BTW, I’ve been using Lightbox 2 on this site for a long time and never had a problem with until I upgraded to WP 3.1 today.
I’ve disabled the plugin for now, but my site relies on Lightbox 2, so how do I fix it?
Alan
PhotoCitizen.com
Does anyone know of a way to add a ‘print’ button to the lightbox windows?
Thanks
]]>After updating from 3.0.3 to 3.0.4 Lightbox 2 is no longer working on pages; in posts it is still working.
]]>the plugin is not working anymore. the developer needs to fix it.
]]>https://www.backwardtracings.com
thumbnail on main page is linked to a larger image. Am I missing some script code or something?
Thanks
]]>so i made a website in which i use WP carousel and Lightbox 2
here it is
and as you can see if you visit the site in IE and Opera, Carousel on the top of the page won’t slide to the right for extra news, but instead keeps bouncing back like there aren’t any elements on the right. this only happens in IE and Opera and it only happens when i turn on the Lightbox 2 plugin
can anyone tell me why does this happen and how i can fix it? Why is Lightbox 2 conflicting with WP Carousel?
]]>Lightbox 2.9.2 doesn’t work with latest jquery 1.4.4 correct.
Wp 3.0.1 comes with jquery 1.4.2 and no conflict.
Updating jquery to Version 1..4.4 gives following error:
element.dispatchEvent is not a function
element.dispatchEvent(event);
protot…r=1.6.1 (line 4619)
cause of prototype.js
element.style is undefined
element.style.width = w “px”;
lightb…ver=1.8 (line 33
cause of lightbox.resize.js
that means just jquery conflics with lightbox!!!!!!!
Any Solution known????????????????????????????
]]>Please fix that in your FAQ
]]>I get this message when Lightbox 2 is activated:
Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.
Does the developer care to comment? Thanks.
]]>Does this work for Featured Images? If so, how do I get it to work? It works on normal images fine but not Featured Images.
]]>i think lightbox-2 is calling an older version of jQuery and i am using a more updated version for another script i am useing, so i would like to get them all on teh same page.. anyone know where i can find this?
thanks.
clint.
]]>Hi
I’m using the NextGen Gallery and the Lightbox 2 Plugin. Everything works fine, but i just want to use the ImageSet Option without linking every Image from the Post. Is it possible to link rel=”lightbox[%GALLERY_NAME%]” just once in a post to open a complete gallery?
Thanks!
Trying to get lightbox to loop around the front and back of a gallery. I was using slimbox and had it working there, but slimbox won’t work with AF + pro (my theme) so lightbox it is….
Anyone know what to change/edit to force lightbox to wrap around the end of a gallery? If you’re on the last image I want the right arrow to remain allowing me to go to the first and from the first a left arrow should take me to the last…
]]>Anyone else have that problem? My Google Friend Connect code worked fine until I installed Lightbox 2. Now, the GFC code won’t display. There’s just a white box where the code was supposed to display. If I disable Lightbox the GFC code DOES display.
Is there a known conflict? Any ideas of what to do?
Scott