• Resolved textweaver

    (@textweaver)


    Hi,
    I am having some trouble with the NextGEN gallery in general and with NextGEN Download Gallery in particular since I updated to NextGEN version 2.7 which introduces a new short code structure.
    When I use the code [nggallery id=3 template=download] I get a message saying this is not a valid template. Is there a new short code I need to use?
    Thanks for any help.

    http://wordpress.org/plugins/nextgen-download-gallery/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author webaware

    (@webaware)

    G’day textweaver,

    Please ensure that you are using the latest version of NextGEN Gallery. Their current version is 2.0.17 and the NextGEN Download Gallery tests as working with it.

    Do you have any other plugins that integrate with NextGEN Gallery, or does your theme profess to working with NextGEN Gallery? I’ve seen a problem in the past where the Pagelines theme messes up custom gallery templates in this way.

    cheers,
    Ross

    Thread Starter textweaver

    (@textweaver)

    Hi,
    Thanks so much for your help. I just updated to NextGEN Gallery 2.0.17 but the problem is persisting. When I add the download gallery using the old short code [nggallery id=1 template=download] I get a message on the page saying “This is not a valid template”. I have no other plugins that integrate with NextGEN Gallery, though I am using 6 other plugins within my site. Am I using the right code? Thanky again for any suggestions or help.

    Thread Starter textweaver

    (@textweaver)

    Hi once again. I just deactivated all the plugins in my site to check whether the Download Gallery would work on its own. I found out that the Dowload Gallery is interacting with one of the plugins I use (WP Simple PayPal Shopping Cart). It works fine with all the other plugins I use, but when I activate the Shopping Cart the message “This is not a valid template” shows up. If anyone has any suggestions for fixing this problem I’d appreciate it.

    Plugin Author webaware

    (@webaware)

    G’day textweaver,

    Yes, that plugin has an error in its code for NextGEN Gallery templates. It has this function for diverting the template to its own:

    function wp_cart_ngg_template_handler($arg1,$arg2)
    {
        if($arg2=="gallery-wp-cart"){
            $template_name = "gallery-wp-cart";
            $gallery_template = WP_CART_PATH. "/lib/$template_name.php";
            return $gallery_template;
        }
        return $arg2;
    }

    The last line should be return $arg1; not return $arg2;

    Please advise the plugin author.

    cheers,
    Ross

    Thread Starter textweaver

    (@textweaver)

    Thanks kindly for your great support! I will definitely advise the WP Simple PayPal Shopping Cart author.
    Sabra

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Short code not working since NextGEN Gallery 2.0’ is closed to new replies.