Guillermo
Forum Replies Created
-
What you’re saying not only makes sense, it’s exactly the approach I’m using to prevent Fancybox from launching.
By the way, I’ve just tested your site and now it works: Fancybox doesn’t launch.
Have you tried clearing your cache?
Try this code:
jQuery(document).ready(function(){ //Remove thickbox effect: jQuery('a.thickbox').removeClass ("thickbox"); //Remove lightbox effect: jQuery('a[rel^="lightbox"]').attr("rel",""); //Remove highslide effect: jQuery('a.highslide').removeClass("highslide").attr("onclick",""); //Remove shutter effect: jQuery('a[class^=shutterset]').removeClass (function (index, css) { return (css.match (/\bshutterset\S+/g) || []).join(' '); }); //Remove fancybox effect: jQuery('a.fancybox').unbind('click.fb').addClass('nolightbox').removeClass('fancybox'); });
Put my plugin in “Always replace viewer with Photoswipe” mode in your test page and I’ll try to find what’s wrong.
Try this:
In my plugin, edit ngg-photoswipe.js, and replace this:
jQuery(document).ready(function(){ //Remove thickbox effect: jQuery('a.thickbox').removeClass ("thickbox"); //Remove lightbox effect: jQuery('a[rel^="lightbox"]').attr("rel",""); //Remove highslide effect: jQuery('a.highslide').removeClass("highslide").attr("onclick",""); //Remove shutter effect: jQuery('a[class^=shutterset]').removeClass (function (index, css) { return (css.match (/\bshutterset\S+/g) || []).join(' '); }); });
with this:
jQuery(document).ready(function(){ //Remove thickbox effect: jQuery('a.thickbox').removeClass ("thickbox"); //Remove lightbox effect: jQuery('a[rel^="lightbox"]').attr("rel",""); //Remove highslide effect: jQuery('a.highslide').removeClass("highslide").attr("onclick",""); //Remove shutter effect: jQuery('a[class^=shutterset]').removeClass (function (index, css) { return (css.match (/\bshutterset\S+/g) || []).join(' '); }); //Remove fancybox effect: jQuery('a.fancybox').unbind('click.fb').removeClass('fancybox'); });
Let me know if it works.
Send me an URL that uses Fancybox + NextGEN and I’ll give it a try.
I had the same problem, and took me some time to figure out how to solve it. So, why don’t make a plugin to help others?
I’m happy to see it’s useful.
Enjoy!
I’m glad you’ve got your website ready! ??
Did you try the first option?
Your page is still showing the
rel="themeblvd_lightbox[set_6]"
attribute…Easy one ??
The Link Code Line its not the default. To solve your issue, you can do one of these two things:
a) Change the “Link Code Line” to its default value:
rel="lightbox[%GALLERY_NAME%]"
b) In my plugin, change the line 22 of ngg-photoswipe.js from
jQuery('a[rel^="lightbox"]').attr("rel","");
to
jQuery('a[rel^="themeblvd_lightbox"]').attr("rel","");
Option a is way easier.
What about rating the plugin? ??
The plugin should be already disabling the lightbox effect.
Have you changed the “Link Code Line” setting in the “Effect” tab? Can you send me a URL to check it?
Thanks!
I was here two months ago, when I had the same problem.
Now, I have a solution: check this plugin I’ve just made.
It replaces the default viewer with Photoswipe when using a mobile browser. It’s really simple to use.
Give it a try!
I had a hard time trying to use Photoswipe with NextGEN Gallery, so after I found a solution I made a plugin to do such thing without editing the files.
It replaces the default viewer with Photoswipe when using a mobile browser. It’s really simple to use.
Give it a try!
Why don’t you try my plugin?
It replaces the default viewer with Photoswipe when using a mobile browser. It’s really simple to use.