Referrer Detector prevents Flickr Gallery lightbox from working (7 posts)

  1. dburr
    Posted 5 years ago #

    WordPress 3.0.1, Atahualpa 3.5.3 theme

    I believe I've found an incompatibility between two plugins, Referrer Detector (running the latest version and Flickr Gallery (version 1.5.2, just released this morning). If I have both plugins enabled, the "lightbox" feature of Flickr Gallery (where clicking on a picture displays it inline in a lightbox) does not work (instead taking you directly to the Flickr page of that picture). If I disable Referrer Detector, lightbox works perfectly. Not sure what the problem is here, and I have absolutely no clue as to how to go about diagnosing and fixing this. Any and all help greatly appreciated. Thanks!

  2. DanCoulter
    Posted 5 years ago #

    Referrer Detector is loading jQuery by dumping <script> tags into the header, not by using the proper wp_enqueue_script function. This wipes out any other jQuery extensions that have been properly loaded by other plugins like Flickr Gallery.

  3. casagli
    Posted 5 years ago #

    man, i'm not sure why, but your plugin is not working anymore with bigger images.
    it was working perfectly and then i've upgraded to the last version.
    i'm frustrated.

    my website is http://www.casagli.com

  4. DanCoulter
    Posted 5 years ago #


    Would you be willing to send me a login to your site so that I can look at how it's set up?


  5. vuthy
    Posted 5 years ago #

    I had the same issue tonight with the Referrer Detector preventing my lightboxes from working. I looked up what wp_enqueue_script was and was able to make it work. Probably not the best way to do it but both plugins now work for me.

    In RD's plugin folder, edit rd.class.php. Around line 230 (within the head function), delete or comment out the following:

    print('<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script>');

    So now instead of printing it directly into the header, we're going to put what WordPress suggested here http://codex.wordpress.org/Function_Reference/wp_enqueue_script#Load_a_default_WordPress_script_from_a_non-default_location in between our <head></head> tags:

    function my_init_method() {
        wp_deregister_script( 'jquery' );
        wp_register_script( 'jquery', 'http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js');
        wp_enqueue_script( 'jquery' );
    add_action('init', 'my_init_method');

    Works for me. Hope this helps!

  6. dburr
    Posted 5 years ago #


    Works like a charm. Thanks!!

  7. lilqhgal
    Posted 4 years ago #

    Thank you for posting this! Works for me too, except I have other plugins that already call the latest jQuery from google, so I simply commented out that line and everything works a charm now, even the Referrer Detector!

Topic Closed

This topic has been closed to new replies.

About this Topic