Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • The problem with menus not expanding is due to a javascript error. The jquery ui dialog script is not getting loaded because of an extra space in the wp_enqueue_script command in the /includes/scripts.php file. On line 21, the command is

    wp_enqueue_script(‘ jquery-ui-dialog’);

    but it should be

    wp_enqueue_script(‘jquery-ui-dialog’);

    The problem with menus not expanding is due to a javascript error. The jquery ui dialog script is not getting loaded because of an extra space in the wp_enqueue_script command in the /includes/scripts.php file. On line 21, the command is

    wp_enqueue_script(‘ jquery-ui-dialog’);

    but it should be

    wp_enqueue_script(‘jquery-ui-dialog’);

    .

    This appears to be a change that was made with the WordPress 3.6 update and the way wpdb::prepare works. Mine worked fine with 3.5.2 but broke with the 3.6 update. To fix this, edit the ./wp-content/plugins/cubepoints/cp-hooks.php file. In the function cp_add_points_user_query() on line 305, replace with
    $sql = $wpdb->prepare('SELECT * from‘ . $wpdb->prefix . ‘usersWHEREuser_loginLIKE %s LIMIT 1',trim($_REQUEST['q']));
    then add another line right below it with
    $user = $wpdb->get_row($sql, ARRAY_A);

    I know this is 8 months old but I had the same issue with a WordPress site that I took over. If you go into swa.js, line 157, change the code from:

    /* Comment / comment reply links */
    		if ( target.attr('class') == 'acomment-reply' || target.parent().attr('class') == 'acomment-reply' ) {
    			if ( target.parent().attr('class') == 'acomment-reply' )

    to:

    /* Comment / comment reply links */
    		if ( target.hasClass('acomment-reply') || target.parent().hasClass('acomment-reply') ) {
    			if ( target.parent().hasClass('acomment-reply') )

    Thanks,
    Dan

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