NextCellent Gallery – NextGEN Legacy - Version 1.9.25.1

Version Description

  • 2015-02-01 - FIX =

What's in it for you?

  • Fix: nextcellent crash with an error on some sites with following error Parse error: syntax error, unexpected T_FUNCTION in /home/wpgetrea/public_html/wp-content/plugins/nextcellent-gallery-nextgen-legacy/widgets/class-ngg-slideshow-widget.php on line 174 Even the problem seems to be related with some old installations using PHP 5.2, we found the same problem with PHP 5.4.x installed. So this is fix is a MUST.
  • Fix: AJAX pagination stopped working

VERY IMPORTANT: Read ON!

NextCellent Gallery provides backward compatibility for older NextGEN until version 1.9.13 .

  • this plugin will gracefully deactivate if detects NextGEN is working (any version) to avoid compatibility issues.

  • Please remember to READ THE FAQ!!! Issues for failing to read the FAQ will be IGNORED!!!

  • If you like it, please spread the word and rate it accordingly. I guess a lot of annoyed users can take advantage of NextCellent. Thank you!

  • WE APPRECIATE YOUR FEEDBACK. Be our voice and comment it!!!!

Download this release

Release Info

Developer WPReady
Plugin Icon NextCellent Gallery – NextGEN Legacy
Version 1.9.25.1
Comparing to
See all releases

Code changes from version 1.9.25 to 1.9.25.1

js/ngg.js CHANGED
@@ -17,11 +17,12 @@ jQuery("document").ready(function(){
17
  jQuery("a.ngg-browser-prev").click(function(e) {
18
  return ngg_ajax_browser_navigation(e, this);
19
  });
 
20
  //Qunit conditional call
21
- if (ngg_get_url_vars().nextcellent) {
22
  //Como invoco esto?
23
  //edcal_test.runTests();
24
- }
25
 
26
  //Activate tooltip. Allow HTML content.
27
  //See http://jqueryui.com/tooltip/ for examples.
17
  jQuery("a.ngg-browser-prev").click(function(e) {
18
  return ngg_ajax_browser_navigation(e, this);
19
  });
20
+ //29/01/2015: this prevents ajax from running.
21
  //Qunit conditional call
22
+ /** if (ngg_get_url_vars().nextcellent) {
23
  //Como invoco esto?
24
  //edcal_test.runTests();
25
+ } */
26
 
27
  //Activate tooltip. Allow HTML content.
28
  //See http://jqueryui.com/tooltip/ for examples.
nggallery.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.wpgetready.com/nextcellent-gallery
5
  Description: A Photo Gallery for WordPress providing NextGEN legacy compatibility from version 1.9.13
6
  Author: WPGReady based on Alex Rabe & PhotoCrati work.
7
  Author URI: http://www.wpgetready.com
8
- Version: 1.9.25
9
 
10
  Copyright (c) 2007-2011 by Alex Rabe & NextGEN DEV-Team
11
  Copyright (c) 2012 Photocrati Media
@@ -52,7 +52,7 @@ if (!class_exists('nggLoader')) {
52
  */
53
  class nggLoader {
54
 
55
- var $version = '1.9.25';
56
  var $dbversion = '1.8.3';
57
  var $minimum_WP = '3.5';
58
  var $options = '';
@@ -503,6 +503,7 @@ if (!class_exists('nggLoader')) {
503
  // Load AJAX navigation script, works only with shutter script as we need to add the listener
504
  if ( $this->options['galAjaxNav'] ) {
505
  if ( ($this->options['thumbEffect'] == "shutter") || function_exists('srel_makeshutter') ) {
 
506
  wp_localize_script( 'ngg_script', 'ngg_ajax', array('path' => NGGALLERY_URLPATH,
507
  'callback' => trailingslashit( home_url() ) . 'index.php?callback=ngg-ajax',
508
  'loading' => __('loading', 'nggallery'),
5
  Description: A Photo Gallery for WordPress providing NextGEN legacy compatibility from version 1.9.13
6
  Author: WPGReady based on Alex Rabe & PhotoCrati work.
7
  Author URI: http://www.wpgetready.com
8
+ Version: 1.9.25.1
9
 
10
  Copyright (c) 2007-2011 by Alex Rabe & NextGEN DEV-Team
11
  Copyright (c) 2012 Photocrati Media
52
  */
53
  class nggLoader {
54
 
55
+ var $version = '1.9.25.1';
56
  var $dbversion = '1.8.3';
57
  var $minimum_WP = '3.5';
58
  var $options = '';
503
  // Load AJAX navigation script, works only with shutter script as we need to add the listener
504
  if ( $this->options['galAjaxNav'] ) {
505
  if ( ($this->options['thumbEffect'] == "shutter") || function_exists('srel_makeshutter') ) {
506
+ wp_enqueue_script ( 'ngg_script', NGGALLERY_URLPATH . 'js/ngg.js', array('jquery'), '2.1');
507
  wp_localize_script( 'ngg_script', 'ngg_ajax', array('path' => NGGALLERY_URLPATH,
508
  'callback' => trailingslashit( home_url() ) . 'index.php?callback=ngg-ajax',
509
  'loading' => __('loading', 'nggallery'),
readme.txt CHANGED
@@ -8,25 +8,14 @@ License: GPLv2
8
 
9
  == Description ==
10
 
11
- = 1.9.25 - 2015-01-26 =
12
 
13
  What's in it for you?
14
 
15
- * Fix for zup upload (Niko Strijbol)
16
- * More visual upgrade message (Niko Strijbol)
17
- * Preserve gallery's manual sort order in nggtags shortcode (Frank P. Walentynowicz)
18
- * Add a description field when adding a gallery (Niko Strijbol)
19
- * Show ID when editing a gallery (Niko Strijbol)
20
- * Fix for long album names (Niko Strijbol)
21
- * Update and fix translations (Niko Strijbol)
22
- * Improved Wordpress Integration (Niko Strijbol)
23
- * Image manipulation corrections (Frank P. Walentynowicz)
24
- * Fix manual sort (Niko Strijbol)
25
- * Fixes for multiuser (Niko Strijbol)
26
- * Slideshow Flash retired, replaced with CSS slideshow (Niko Strijbol)
27
- * Code refactoring and optimization (Fernando Zorrilla S.M.)
28
- * Adding QUnit for Javascript Unit testing (Fernando Zorrilla S.M.)
29
-
30
 
31
  VERY IMPORTANT: Read ON!
32
  -----------------------
@@ -336,6 +325,12 @@ Yes, since we use Javascript rather than flash, NextCellent Gallery is compatibl
336
 
337
  == Changelog ==
338
 
 
 
 
 
 
 
339
 
340
  = 1.9.25 - 2015-01-26 =
341
  * Tested up to Wordpress 4.1.
8
 
9
  == Description ==
10
 
11
+ = 1.9.25.1 - 2015-02-01 - FIX =
12
 
13
  What's in it for you?
14
 
15
+ * Fix: nextcellent crash with an error on some sites with following error
16
+ Parse error: syntax error, unexpected T_FUNCTION in /home/wpgetrea/public_html/wp-content/plugins/nextcellent-gallery-nextgen-legacy/widgets/class-ngg-slideshow-widget.php on line 174
17
+ Even the problem seems to be related with some old installations using PHP 5.2, we found the same problem with PHP 5.4.x installed. So this is fix is a MUST.
18
+ * Fix: AJAX pagination stopped working
 
 
 
 
 
 
 
 
 
 
 
19
 
20
  VERY IMPORTANT: Read ON!
21
  -----------------------
325
 
326
  == Changelog ==
327
 
328
+ = 1.9.25.1 - 2015-02-01 - FIX =
329
+
330
+ * Fix: nextcellent crash with an error on some sites with following error:
331
+ Parse error: syntax error, unexpected T_FUNCTION in /home/wpgetrea/public_html/wp-content/plugins/nextcellent-gallery-nextgen-legacy/widgets/class-ngg-slideshow-widget.php on line 174
332
+ Even the problem seems to be related with some old installations using PHP 5.2, we found the same problem with PHP 5.4.x installed. So this is fix is a MUST.
333
+ * Fix: AJAX pagination stopped working
334
 
335
  = 1.9.25 - 2015-01-26 =
336
  * Tested up to Wordpress 4.1.
widgets/class-ngg-gallery-widget.php CHANGED
@@ -249,6 +249,7 @@ class NGG_Gallery_Widget extends WP_Widget {
249
 
250
  }
251
  }
252
- add_action( 'widgets_init', function () {
253
- register_widget( 'NGG_Gallery_Widget' );
254
- } );
 
249
 
250
  }
251
  }
252
+
253
+ add_action('widgets_init',
254
+ create_function('', 'return register_widget("NGG_Gallery_Widget");')
255
+ );
widgets/class-ngg-media-rss-widget.php CHANGED
@@ -129,6 +129,6 @@ class NGG_Media_RSS_Widget extends WP_Widget {
129
  }
130
  }
131
 
132
- add_action( 'widgets_init', function () {
133
- register_widget( 'NGG_Media_RSS_Widget' );
134
- } );
129
  }
130
  }
131
 
132
+ add_action('widgets_init',
133
+ create_function('', 'return register_widget("NGG_Media_RSS_Widget");')
134
+ );
widgets/class-ngg-slideshow-widget.php CHANGED
@@ -171,6 +171,6 @@ class NGG_Slideshow_Widget extends WP_Widget {
171
 
172
  }
173
 
174
- add_action( 'widgets_init', function () {
175
- register_widget( 'NGG_Slideshow_Widget' );
176
- } );
171
 
172
  }
173
 
174
+ add_action('widgets_init',
175
+ create_function('', 'return register_widget("NGG_Slideshow_Widget");')
176
+ );