WordPress.org

Forums

NextGEN Download Gallery
[resolved] No Checkboxes or Download Functionality At All (10 posts)

  1. thomstark
    Member
    Posted 2 years ago #

    I installed NextGen Gallery then your plugin, and I used the shortcode:

    [nggallery id=1 template=download]

    All I got is a standard gallery with now download checkboxes or buttons at all. The plugin doesn't seem to be working.

    Here's the location of the page:
    http://worldfest.org/worldfest/remi-winners/

    Please let me know what I'm doing wrong as soon as possible. Thanks very much!

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

  2. thomstark
    Member
    Posted 2 years ago #

    I found the point of conflict. Your plugin has some conflict with the Pagelines theme (Pagelines is a CMS/site builder). Pagelines is indispensable to me but I really want to use your plugin as well, as I haven't been able to find anything else like it.

    So the conflict must be disabling your functionality somehow.

    I have Ajax disabled in NextGen settings, but your plugin isn't working whether Ajax is enabled or disabled. It's a conflict with the Pagelines CMS. If you have the time, I'd really appreciate your help!

  3. webaware
    Member
    Plugin Author

    Posted 2 years ago #

    G'day, it looks like my gallery template isn't being called at all, so it isn't a JavaScript conflict. At a guess, I'd say that Pagelines must be intercepting the filter hook for 'ngg_render_template' and somehow messing things up so that my plugin doesn't get called, or perhaps they have their own gallery template also called 'download'.

    Since Pagelines is a premium product, you have access to support when you buy from them. I suggest you contact their support and ask them what the conflict is.

    cheers,
    Ross

  4. webaware
    Member
    Plugin Author

    Posted 2 years ago #

    G'day, on a whim I googled "pagelines ngg_render_template" and found their source code.

    They have a function that buggers up any custom templates (they're _doing_it_wrong()!)

    /**
    *
    * @TODO document
    *
    */
    function gallery_filter( $a, $template_name) {
    
      if ( $template_name == 'gallery-plcarousel')
          return sprintf( '%s/carousel/gallery-plcarousel.php', PL_SECTIONS);
      else
          return false;
    }

    Instead of returning false they need to be returning $a. Tell them to fix their theme!

    cheers,
    Ross

  5. thomstark
    Member
    Posted 2 years ago #

    Ross,

    Thanks for taking the time to look into that. I'll definitely let Pagelines support know about this, and your correction of their code. In the meantime, did you catch the name of the file the source code was in? I'd like to try to fix it myself for the time being.

  6. thomstark
    Member
    Posted 2 years ago #

    Oh, sorry! You already linked to it. :)

    Thanks very much for your help!

  7. webaware
    Member
    Plugin Author

    Posted 2 years ago #

    No worries :)

  8. thomstark
    Member
    Posted 2 years ago #

    Found the source file, made the change you suggested, and voila, I have a working plugin!

    You're awesome, mate. Thanks heaps.

  9. crazycoder365
    Member
    Posted 1 year ago #

    I installed NextGen Download Gallery then your plugin, and I used the shortcode:[gallery ids="182,181,180,178,176,159" gallery=download].

    but it not display the checkbox & select all button for multiple images downloading in zip.its not working.what is wrong with it?plz help...thanks

  10. webaware
    Member
    Plugin Author

    Posted 1 year ago #

    @crazycoder365: please start a new topic, this one is resolved already.

    cheers,
    Ross

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.