Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • For those still using version 1.9.13 of NGGallery.

    You need to patch the saveImageOrder() function. There are many ways to do this.

    Here is how I fixed the sort order problem without modifying the plugin code.

    1. I created a file in my theme called admin.js with the following code in it

    jQuery(function() {
        window.saveImageOrder = function ()
        {
            var serial = [];
            jQuery("div.imageBox, div.imageBoxHighlighted").each(function () {
                serial.push("sortArray[]=" + this.id);
            });
            jQuery('input[name=sortorder]').val(serial.join('&'));
        }
    });

    2. added the following code to my functions.php file

    function admin_enqueue_script() {
        if(is_admin()){
            wp_enqueue_script('admin_script', get_bloginfo('template_url').'/admin.js', array('jquery'));
        }
    }
    add_action('init', 'admin_enqueue_script');

    Would like to filter by custom taxonomies too.

    Ok figured it out… the problem was that W3 Total Cache wasn’t loading the right config file (since I was remapping my domain)

    I have a multisite setup which is basically as follows

    1. main domaain my-blogs.com
    2. multisite enabled with subdomain with site blog1.my-blogs.com
    3. using WordPress MU Domain Mapping so that blog1.my-blogs.com redirectos to my-real-blog.com

    Problem was that W3 Total Cache was trying to load the config file w3-total-cache-config-my-real-blog.com.php instead of w3-total-cache-config-blog1.my-blogs.com.php.

    What I did to fix the problem I created a symlink from w3-total-cache-config-blog1.my-blogs.com.php to w3-total-cache-config-my-real-blog.com.php.

    Was having problems in wordpress 3.0.4 with the code above (and other object caching tests)

    I had problems with W3 Total Cache Version 0.9.1.3.

    Tried WP File Cache plugin and got the cache working.

    Now invistigating why W3 Total Cache is not working.

    Note: I am using a multisite setup with one other plugin enabled WordPress MU Domain Mapping.

    If any one has the solution or know what’s causing the problem help is welcome.

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