Version Description
- 08.09.2010 =
- Bugfix : Script load of swfobject.js failed
- Bugfix : Show sideshow also with 1 or 2 images
- Bugfix : Rework null byte check in zip upload
Download this release
Release Info
Developer | alexrabe |
Plugin | NextGEN Gallery – WordPress Gallery Plugin |
Version | 1.6.1 |
Comparing to | |
See all releases |
Code changes from version 1.6.0 to 1.6.1
- admin/functions.php +2 -1
- changelog.txt +5 -0
- js/ngg.slideshow.js +2 -2
- js/ngg.slideshow.min.js +1 -1
- nggallery.php +3 -3
- readme.txt +5 -0
admin/functions.php
CHANGED
@@ -778,7 +778,8 @@ class nggAdmin{
|
|
778 |
*/
|
779 |
function getOnlyImages($p_event, &$p_header) {
|
780 |
// avoid null byte hack (THX to Dominic Szablewski)
|
781 |
-
|
|
|
782 |
// check for extension
|
783 |
$info = pathinfo($p_header['filename']);
|
784 |
// check for extension
|
778 |
*/
|
779 |
function getOnlyImages($p_event, &$p_header) {
|
780 |
// avoid null byte hack (THX to Dominic Szablewski)
|
781 |
+
if ( strpos($p_header['filename'], chr(0) ) !== false )
|
782 |
+
$p_header['filename'] = substr ( $p_header['filename'], 0, strpos($p_header['filename'], chr(0) ));
|
783 |
// check for extension
|
784 |
$info = pathinfo($p_header['filename']);
|
785 |
// check for extension
|
changelog.txt
CHANGED
@@ -6,6 +6,11 @@ by Alex Rabe & NextGEN DEV Team
|
|
6 |
* TODO : Facebook connector
|
7 |
* TODO : Switch to Plupload (http://www.plupload.com/)
|
8 |
|
|
|
|
|
|
|
|
|
|
|
9 |
= V1.6.0 - 07.09.2010 =
|
10 |
* NEW : Wordpress 3.0 Network (Multi-Site) support
|
11 |
* NEW : Integrate jQuery Cycle as NON-Flash slideshow
|
6 |
* TODO : Facebook connector
|
7 |
* TODO : Switch to Plupload (http://www.plupload.com/)
|
8 |
|
9 |
+
= V1.6.1 - 08.09.2010 =
|
10 |
+
* Bugfix : Script load of swfobject.js failed
|
11 |
+
* Bugfix : Show sideshow also with 1 or 2 images
|
12 |
+
* Bugfix : Rework null byte check in zip upload
|
13 |
+
|
14 |
= V1.6.0 - 07.09.2010 =
|
15 |
* NEW : Wordpress 3.0 Network (Multi-Site) support
|
16 |
* NEW : Integrate jQuery Cycle as NON-Flash slideshow
|
js/ngg.slideshow.js
CHANGED
@@ -30,8 +30,8 @@ jQuery.fn.nggSlideshow = function ( args ) {
|
|
30 |
jQuery( img ).bind('load', function() {
|
31 |
jQuery( obj ).append( imageResize(this, s.width , s.height) );
|
32 |
counter++;
|
33 |
-
// start cycle after the
|
34 |
-
if (counter == 3)
|
35 |
startSlideshow();
|
36 |
});
|
37 |
i++;
|
30 |
jQuery( img ).bind('load', function() {
|
31 |
jQuery( obj ).append( imageResize(this, s.width , s.height) );
|
32 |
counter++;
|
33 |
+
// start cycle after the third image
|
34 |
+
if (counter == 3 || stack.length == 0 )
|
35 |
startSlideshow();
|
36 |
});
|
37 |
i++;
|
js/ngg.slideshow.min.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
jQuery.fn.nggSlideshow=function(args){var defaults={id:1,width:320,height:240,fx:'fade',domain:'',timeout:5000,};var s=jQuery.extend({},defaults,args);var obj=this.selector;var stack=[];var url=s.domain+'index.php?callback=json&api_key=true&format=json&method=gallery&id='+s.id;jQuery.getJSON(url,function(r){if(r.stat=="ok"){for(img in r.images){var photo=r.images[img];stack.push(decodeURI(photo['imageURL']));}
|
2 |
-
var i=1,counter=0;while(stack.length&&i<=3){var img=new Image();img.src=stack.shift();jQuery(img).bind('load',function(){jQuery(obj).append(imageResize(this,s.width,s.height));counter++;if(counter==3)
|
3 |
startSlideshow();});i++;}}});function startSlideshow(){jQuery(obj+'-loader').empty().remove();jQuery(obj+' img:first').fadeIn(1000,function(){jQuery(obj).cycle({fx:s.fx,containerResize:1,fit:1,timeout:s.timeout,next:obj,before:jCycle_onBefore});});}
|
4 |
function imageResize(img,maxWidth,maxHeight){jQuery(img).css({'display':'none'});if(img.height==0||img.width==0)
|
5 |
return img;var height=(img.height<maxHeight)?img.height:maxHeight;var width=(img.width<maxWidth)?img.width:maxWidth;if(img.height>=img.width)
|
1 |
jQuery.fn.nggSlideshow=function(args){var defaults={id:1,width:320,height:240,fx:'fade',domain:'',timeout:5000,};var s=jQuery.extend({},defaults,args);var obj=this.selector;var stack=[];var url=s.domain+'index.php?callback=json&api_key=true&format=json&method=gallery&id='+s.id;jQuery.getJSON(url,function(r){if(r.stat=="ok"){for(img in r.images){var photo=r.images[img];stack.push(decodeURI(photo['imageURL']));}
|
2 |
+
var i=1,counter=0;while(stack.length&&i<=3){var img=new Image();img.src=stack.shift();jQuery(img).bind('load',function(){jQuery(obj).append(imageResize(this,s.width,s.height));counter++;if(counter==3||stack.length==0)
|
3 |
startSlideshow();});i++;}}});function startSlideshow(){jQuery(obj+'-loader').empty().remove();jQuery(obj+' img:first').fadeIn(1000,function(){jQuery(obj).cycle({fx:s.fx,containerResize:1,fit:1,timeout:s.timeout,next:obj,before:jCycle_onBefore});});}
|
4 |
function imageResize(img,maxWidth,maxHeight){jQuery(img).css({'display':'none'});if(img.height==0||img.width==0)
|
5 |
return img;var height=(img.height<maxHeight)?img.height:maxHeight;var width=(img.width<maxWidth)?img.width:maxWidth;if(img.height>=img.width)
|
nggallery.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: NextGEN Gallery
|
|
4 |
Plugin URI: http://alexrabe.de/?page_id=80
|
5 |
Description: A NextGENeration Photo gallery for the Web 2.0.
|
6 |
Author: Alex Rabe
|
7 |
-
Version: 1.6.
|
8 |
|
9 |
Author URI: http://alexrabe.de/
|
10 |
|
@@ -34,7 +34,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
|
|
34 |
if (!class_exists('nggLoader')) {
|
35 |
class nggLoader {
|
36 |
|
37 |
-
var $version = '1.6.
|
38 |
var $dbversion = '1.6.0';
|
39 |
var $minium_WP = '3.0';
|
40 |
var $updateURL = 'http://nextgen.boelinger.com/version.php';
|
@@ -318,7 +318,7 @@ class nggLoader {
|
|
318 |
}
|
319 |
|
320 |
// required for the slideshow
|
321 |
-
if ( NGGALLERY_IREXIST == true && $
|
322 |
wp_enqueue_script('swfobject', NGGALLERY_URLPATH .'admin/js/swfobject.js', FALSE, '2.2');
|
323 |
else
|
324 |
wp_enqueue_script ( 'jquery' );
|
4 |
Plugin URI: http://alexrabe.de/?page_id=80
|
5 |
Description: A NextGENeration Photo gallery for the Web 2.0.
|
6 |
Author: Alex Rabe
|
7 |
+
Version: 1.6.1
|
8 |
|
9 |
Author URI: http://alexrabe.de/
|
10 |
|
34 |
if (!class_exists('nggLoader')) {
|
35 |
class nggLoader {
|
36 |
|
37 |
+
var $version = '1.6.1';
|
38 |
var $dbversion = '1.6.0';
|
39 |
var $minium_WP = '3.0';
|
40 |
var $updateURL = 'http://nextgen.boelinger.com/version.php';
|
318 |
}
|
319 |
|
320 |
// required for the slideshow
|
321 |
+
if ( NGGALLERY_IREXIST == true && $this->options['enableIR'] == '1' && nggGallery::detect_mobile_phone() === false )
|
322 |
wp_enqueue_script('swfobject', NGGALLERY_URLPATH .'admin/js/swfobject.js', FALSE, '2.2');
|
323 |
else
|
324 |
wp_enqueue_script ( 'jquery' );
|
readme.txt
CHANGED
@@ -134,6 +134,11 @@ To show the most recent added mages : **[recent max=x ]**
|
|
134 |
|
135 |
== Changelog ==
|
136 |
|
|
|
|
|
|
|
|
|
|
|
137 |
= V1.6.0 - 07.09.2010 =
|
138 |
* NEW : Wordpress 3.0 Network (Multi-Site) support
|
139 |
* NEW : Integrate jQuery Cycle as NON-Flash slideshow
|
134 |
|
135 |
== Changelog ==
|
136 |
|
137 |
+
= V1.6.1 - 08.09.2010 =
|
138 |
+
* Bugfix : Script load of swfobject.js failed
|
139 |
+
* Bugfix : Show sideshow also with 1 or 2 images
|
140 |
+
* Bugfix : Rework null byte check in zip upload
|
141 |
+
|
142 |
= V1.6.0 - 07.09.2010 =
|
143 |
* NEW : Wordpress 3.0 Network (Multi-Site) support
|
144 |
* NEW : Integrate jQuery Cycle as NON-Flash slideshow
|