• Resolved tomicakorac

    (@tomicakorac)


    Hello,

    I’m having a problem on this website:

    https://madronafinancial.com

    There is a bunch of image links to youtube videos that are supposed to open in a lightbox. The links are on the front page (4 placeholders in the center left) and also on the Media page. For that I’m using WP Video Lightbox plugin:

    https://www.ads-software.com/plugins/wp-video-lightbox/

    However, when I enable WP Slimstat plugin, WP Video Lightbox shortcode fails to open the videos in a lightbox and instead redirects to Youtube.

    I’ve discovered that it’s wp-slimstat.js that’s causing the conflict, however there’s not much I can do about it because we’re using CDN and anyway I wouldn’t like to mess with the plugin code.

    Is there any way around this?

    https://www.ads-software.com/plugins/wp-slimstat/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Jason Crouse

    (@coolmann)

    Hi,

    unfortunately because of the way Javascript works, it’s impossible to detect if other event handlers are attached to a given external link. The solution I implemented requires the administrator to tell Slimstat what links to leave alone, either via a class name or a “rel” attribute.

    Please feel free to test this new version:

    https://github.com/getusedtoit/wp-slimstat/archive/master.zip

    In it you will find some new settings, under Settings > Filters, that allow you to specify either a classname or a “rel” value. The tracker will not attach its code to any link matching at least one of those criteria. Usually lightbox plugins use the rel attribute to mark a link that will open a lightbox, so I thought this would help ??

    Please keep me posted.

    Camu

    Thread Starter tomicakorac

    (@tomicakorac)

    camu this worked like a charm. Thank you very much for the quick reply. Your plugin rocks!

    Plugin Author Jason Crouse

    (@coolmann)

    Wonderful. A vote for Slimstat would be a nice way to say thank you.

    Plugin Author Jason Crouse

    (@coolmann)

    Can I ask you a huge favor? I updated the tracker, and added new “filters” (not just rel and class) for the lightbox links. Could you test it and see if it still works?

    https://github.com/getusedtoit/wp-slimstat/archive/master.zip

    Hi there,

    I’m having the exact same problem. I’m using wp slimstat version 3.9.2 (I believe to be the latest). Томица Кора? could you please share the solution you used with the new version of wp-slimstat. Specifically, what “rel” attribute did you enter under “Ignore Rel” in the wp slimstat settings (under Internal and Outbound Links) to prevent the conflict with your lightbox plugin. Also, I’m assuming this is the place I need to make the change.

    Thank you for your time,
    LC

    Thread Starter tomicakorac

    (@tomicakorac)

    camu man, I’m so sorry, I honestly thought I replied to you. I did test your latest version when you asked, and it worked! But I really thought I replied to you. Don’t know what happened there, I probably forgot to cilck ‘Submit’ after I wrote my answer. I’m really sorry for this.

    leecoder what you enter in the ‘Ignore Rel’ depends on your specific website. Can you please share more information? Like what’s your url and what are the exact images you’re seeing the problem with?

    Thanks for the reply. Basically, when I enable the wp slimstat plugin any videos on the site which play in a Lightbox fails to open and instead it redirects to Youtube and plays the video instantly. It also has the effect of temporarily breaking the site unless you know where to click to get it to come back. Right now, I have wp slimstat deactivated which is a shame because there’s really no better tool to run analytics and I wish I could toy with it but I don’t want to keep crashing the site.

    LC

    Using Pretty Photo Lightbox BTW. Anyone know of a fix?

    Okay, just had to follow up in case someone else out there is pulling their hair out over this one. My conflict is with Slimstat and PrettyPhoto Lightbox. Did some research. PrettyPhoto uses rel=”prettyPhoto” to evolk the plugin. So adding the “prettyPhoto” exclusion in the Slimstat settings (Filter tab) should have done the trick – no go. Didn’t fix. Bummer!

    My videos are all YouTube embedding links which all have the following text somewhere in the href tag:

    https://www.youtube.com/watch”

    So I added this to the Ignore URL settings on the Filter tab – bingo! Fixed my problem. Now Slimstat plays nicely with PrettyPhoto.

    Hope this helps some one else,
    LC

    Plugin Author Jason Crouse

    (@coolmann)

    That’s strange, maybe the plugin is not adding “prettyPhoto” but something else? Anyway, I’m glad it worked!

    Thank you leecoder. It worked, except I added “wp-video-lightbox” under the “No Callback on Rel” section.

    Plugin Author Jason Crouse

    (@coolmann)

    Great, thanks for sharing.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘wp-slimstat.js causing WP Video Lightbox plugin to fail’ is closed to new replies.