Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mike Koepke

    (@mike_koepke)

    The error would seem to indicate the theme wasn’t calling the wp_head action or that some other weird error preventing the plugin from setting the javascript variable.

    Anyway I have gone ahead and set some default in the plugin’s thickbox javascript file to address this if it should occur again.

    arthurd2

    (@arthurd2)

    Hi Mike, I was just discussing the problem with Rodolfo.
    It seams a deeper problem.

    Because when he takes the “wp_deregister_script” out, and the original script is printed, the other thickbox-based features starts to work.
    Maybe is a version problem?

    We made another test too, call the tb_show() from the browser console.
    The screen goes gray but no DIV opens.
    The same test works if we disable the auto-thickbox plugin.
    =(

    Plugin Author Mike Koepke

    (@mike_koepke)

    Basically it is some incompatibility with a theme or plugin you are using that is using Thickbox. The actual thickbox functionality has not been updated since 2007. The Auto Thickbox plugin has its own version of the thickbox javascript that fixes bugs the current WP version does not.

    Also there were changes made in WP 3.8 (or was it 3.9) to the thickbox css for revised WP dashboard presentation. Those changes conflicted with this plugin, so the plugin has is version of thickbox.css that is a merging of the 2.

    If a plugin or theme you are using is now doing it’s own thickbox changes then you’re going to have conflicts.

    My suggestion would be to look to using a Lightbox type popop for images you are displaying to help avoid the conflicts.

    Thread Starter rodolfolottin

    (@rodolfolottin)

    FIXED

    It seems there was a problem with the order which our plugin was calling the wp_register_script function.

    We solved this problem adding the parameter $in_footer (true) on the wp_register_script function.

    Here is our example:
    wp_register_script(‘foo’, plugins_url(‘/foo.js’, __FILE__), array(‘thickbox’), 1, true);

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Thickbox doesnt work with Auto Thickbox Plugin’ is closed to new replies.