Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

  • _awpcp
    Member

    @_awpcp

    For anyone using Another WordPress Classifieds Plugin, the above recommendations for removing the function awpcp_insert_thickbox() and the line add_action(‘wp_head’, ‘awpcp_insert_thickbox’, 10); are on target. You just need to take one additional step of going to “Image Settings” in the classifieds options and turning off the thickbox/lightbox option. At least as far as Another WordPress Classifieds Plugin is concerned this is indeed a thickbox.js conflict.

    If you’re having the problem but not using AWPCP, one of your plugins might be using thickbox.js and calling it directly without using wp_enqueue_script. Or they could be using wp_enqueue_script but the placement in the page header still creates a conflict. This is just one possibility you might explore. There could be other causes.


    _awpcp
    Member

    @_awpcp

    First reports back from tester: above recommendations did not fix problem, so will continue to check to see how awpcp might be contributing to this problem for the people using the plugin and will update when more info is available.


    _awpcp
    Member

    @_awpcp

    For those of you using Another WordPress Classifieds Plugin it’s quite possible there is a conflict with the thickbox.js reference. I am revising the method used by the plugin to insert the thickbox code in the header. I believe that might be the cause of the conflict as it relates to AWPCP. I have not verified this yet. Have sent a modified test file to the user who reported this thread to me and awaiting his report on whether the changes do in fact fix his problem. Will update once that information is provided.

    If you want to test for yourself in the meantime you can find and completely remove this function at around line 144 in awpcp.php

    function awpcp_insert_thickbox() {

    global $siteurl,$wpinc;

    echo “n”.’

    <link rel=”stylesheet” href=”‘.$siteurl.’/’.$wpinc.’/js/thickbox/thickbox.css” type=”text/css” media=”screen” />

    <script type=”text/javascript”>

    var tb_pathToImage = “‘.$siteurl.’/’.$wpinc.’/js/thickbox/loadingAnimation.gif”;

    var tb_closeImage = “‘.$siteurl.’/’.$wpinc.’/js/thickbox/tb-close.png”;

    </script>

    ‘;

    }

    Update: you will also need to remove the line

    add_action(‘wp_head’, ‘awpcp_insert_thickbox’, 10);

    (you’ll find it around line 167)

Viewing 3 replies - 1 through 3 (of 3 total)
Skip to toolbar