WordPress.org

Support

Support » Plugins and Hacks » Disable Checkbox Possible Bug

Disable Checkbox Possible Bug

Viewing 5 replies - 1 through 5 (of 5 total)
  • solution:
    in ngg-photoswipe.php, put the update_option in the if ($_REQUEST[‘nggphotoswipe_enabled’]) on line 73

    if ($_REQUEST['nggphotoswipe_enabled']) {
      update_option('nggphotoswipe_enabled',$_REQUEST['nggphotoswipe_enabled']		;
      update_option('additional_viewers',$_REQUEST['additional_viewers']);
    }

    My only worry here is in directly editing the plugin files? Isn’t this generally frowned upon? I’m worried that whoever updates this may overwrite the changes.

    you will lose the hack if the plugin update.
    but i think it will be corrected/integrated by the plugin developper on next version 😉

    or you can simply disable fancybox in your theme directly:
    and dont’t care of the option in option page 😉

    by using something like that:

    if( wp_is_mobile() ) {
      wp_enqueue_script('ngg-photoswipe-disable-fancybox.js',get_template_directory_uri().'/js/ngg-photoswipe-disable-fancybox.js', array( 'jquery' );
    }

    n.b.
    copy ngg-photoswipe-disable-fancybox.js from plugin directory in your theme directory

    This doesn’t work for me. It just seems to be impossible to disable Fancybox when Photoswipe is in use on mobile. Despite the fact it is supposed to be achieved with a simple checkbox in the plugin settings!

    Can you provide any more help on this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Disable Checkbox Possible Bug’ is closed to new replies.