Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter renoproc

    (@renoproc)

    I’ve modified the nggScrollGallery.php file of the 2.0.2beta to put js scripts inclusion code of the version 1. And that works fine now.
    But not sure if that the best way to do it, Benedikt can you take a look ?

    Moifications in nggScrollGallery.php ———–

    in public function SGShow commented these lines :

    //only if we have output enque the registered scripts
    wp_enqueue_script('mootools');
    wp_enqueue_script('scrollGallery2');
    wp_enqueue_script('powertools');

    in public function SG2_enqueueScripts modified these lines :

    wp_register_script( 'mootools', SG2_URL.'/scrollGallery/js/mootools-core-1.3.2-full-compat.js', false, '1.3.2',false);
    wp_register_script( 'scrollGallery2', SG2_URL.'/scrollGallery/js/scrollGallery2.js', array('mootools'), '1.12',false);
    wp_register_script( 'powertools', SG2_URL.'/scrollGallery/js/powertools-mobile-1.1.1.js', array('mootools'), '1.1.1',false);

    for these ones (as the nggScrollGallery.php version 1 model) :

    // As a precaution, deregister any previous 'mootools' registrations.
    wp_deregister_script(array('mootools'));
    wp_register_script( 'mootools', SG2_URL.'/scrollGallery/js/mootools-core-1.3.2-full-compat.js', false, '1.3.2',true);
    wp_deregister_script(array('scrollGallery'));
    wp_register_script( 'scrollGallery2', SG2_URL.'/scrollGallery/js/scrollGallery2.js', array('mootools'), '1.12',true);
    wp_deregister_script(array('powertools'));
    wp_register_script( 'powertools', SG2_URL.'/scrollGallery/js/powertools-mobile-1.1.1.js', array('mootools'), '1.1.1',true);
    
    if (function_exists('wp_enqueue_script')) {
    	wp_enqueue_script('mootools');
    	wp_enqueue_script('scrollGallery2');
    	wp_enqueue_script('powertools');
    }

    And just remember do not erase the <?php wp_footer(); ?> line from footer.php of your theme.

    Plugin Author Benedikt Mo

    (@bmodesign2)

    Thanks. The problem was, that to much people erase the wp_footer() line from there theme….

    Thread Starter renoproc

    (@renoproc)

    U’re welcome Benedikt.

    What do you think about the email I sent to you with the porposal to be able to use nextgen gallery tags given to pictures in scrollgallery plugin ? That could be useful

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: NextGEN Scroll Gallery] no js scripts integration in footer – v. 2.0.2 beta’ is closed to new replies.