NextGEN Gallery – WordPress Gallery Plugin - Version 1.5.5

Version Description

  • 14.06.2010 =
  • Bugfix : Compat issue for post thumbnails with WP2.9
  • NEW : Adding more hooks for custom fields plugin
Download this release

Release Info

Developer alexrabe
Plugin Icon 128x128 NextGEN Gallery – WordPress Gallery Plugin
Version 1.5.5
Comparing to
See all releases

Code changes from version 1.5.4 to 1.5.5

admin/album.php CHANGED
@@ -146,6 +146,9 @@ class nggManageAlbum {
146
 
147
  $result = $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->nggalbum SET name= '%s', albumdesc= '%s', previewpic= %d, pageid= %d WHERE id = '$this->currentID'" , $name, $desc, $prev, $link ) );
148
 
 
 
 
149
  if ($result)
150
  nggGallery::show_message(__('Update Successfully','nggallery'));
151
  }
@@ -428,6 +431,9 @@ function showDialog() {
428
  </select>
429
  </th>
430
  </tr>
 
 
 
431
  <tr align="right">
432
  <td class="submit">
433
  <input type="submit" class="button-primary" name="update_album" value="<?php _e("OK",'nggallery')?>" />
146
 
147
  $result = $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->nggalbum SET name= '%s', albumdesc= '%s', previewpic= %d, pageid= %d WHERE id = '$this->currentID'" , $name, $desc, $prev, $link ) );
148
 
149
+ //hook for other plugin to update the fields
150
+ do_action('ngg_update_album', $this->currentID, $_POST);
151
+
152
  if ($result)
153
  nggGallery::show_message(__('Update Successfully','nggallery'));
154
  }
431
  </select>
432
  </th>
433
  </tr>
434
+
435
+ <?php do_action('ngg_edit_album_settings', $this->currentID); ?>
436
+
437
  <tr align="right">
438
  <td class="submit">
439
  <input type="submit" class="button-primary" name="update_album" value="<?php _e("OK",'nggallery')?>" />
admin/manage-images.php CHANGED
@@ -270,6 +270,7 @@ jQuery(document).ready( function() {
270
  </th>
271
  </tr>
272
  <?php endif; ?>
 
273
  </table>
274
 
275
  <div class="submit">
270
  </th>
271
  </tr>
272
  <?php endif; ?>
273
+ <?php do_action('ngg_manage_gallery_settings', $act_gid); ?>
274
  </table>
275
 
276
  <div class="submit">
changelog.txt CHANGED
@@ -1,6 +1,10 @@
1
  NextGEN Gallery
2
  by Alex Rabe & NextGEN DEV Team
3
 
 
 
 
 
4
  = V1.5.4 - 14.06.2010 =
5
  * Bugfix : No resize of smaller images
6
  * Bugfix : Compat issues for Post Thumbnails under WP3.0
1
  NextGEN Gallery
2
  by Alex Rabe & NextGEN DEV Team
3
 
4
+ = V1.5.5 - 14.06.2010 =
5
+ * Bugfix : Compat issue for post thumbnails with WP2.9
6
+ * NEW : Adding more hooks for custom fields plugin
7
+
8
  = V1.5.4 - 14.06.2010 =
9
  * Bugfix : No resize of smaller images
10
  * Bugfix : Compat issues for Post Thumbnails under WP3.0
lib/post-thumbnail.php CHANGED
@@ -173,9 +173,12 @@ class nggPostThumbnail {
173
  function _wp_post_thumbnail_html( $thumbnail_id = NULL ) {
174
 
175
  global $_wp_additional_image_sizes, $post_ID;
176
-
177
- $set_thumbnail_link = '<p class="hide-if-no-js"><a title="' . esc_attr__( 'Set featured image' ) . '" href="' . esc_url( get_upload_iframe_src('image') ) . '" id="set-post-thumbnail" class="thickbox">%s</a></p>';
178
- $content = sprintf($set_thumbnail_link, esc_html__( 'Set featured image' ));
 
 
 
179
 
180
  $image = nggdb::find_image($thumbnail_id);
181
  $img_src = false;
173
  function _wp_post_thumbnail_html( $thumbnail_id = NULL ) {
174
 
175
  global $_wp_additional_image_sizes, $post_ID;
176
+
177
+ if (function_exists('get_upload_iframe_src')) {
178
+ $set_thumbnail_link = '<p class="hide-if-no-js"><a title="' . esc_attr__( 'Set featured image' ) . '" href="' . esc_url( get_upload_iframe_src('image') ) . '" id="set-post-thumbnail" class="thickbox">%s</a></p>';
179
+ $content = sprintf($set_thumbnail_link, esc_html__( 'Set featured image' ));
180
+ } else
181
+ $content = '<p class="hide-if-no-js"><a href="#" id="set-post-thumbnail" onclick="jQuery(\'#add_image\').click();return false;">' . esc_html__( 'Set thumbnail' ) . '</a></p>';
182
 
183
  $image = nggdb::find_image($thumbnail_id);
184
  $img_src = false;
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.5.4
8
 
9
  Author URI: http://alexrabe.de/
10
 
@@ -44,7 +44,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
44
  if (!class_exists('nggLoader')) {
45
  class nggLoader {
46
 
47
- var $version = '1.5.4';
48
  var $dbversion = '1.5.0';
49
  var $minium_WP = '2.9';
50
  var $minium_WPMU = '2.9';
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.5.5
8
 
9
  Author URI: http://alexrabe.de/
10
 
44
  if (!class_exists('nggLoader')) {
45
  class nggLoader {
46
 
47
+ var $version = '1.5.5';
48
  var $dbversion = '1.5.0';
49
  var $minium_WP = '2.9';
50
  var $minium_WPMU = '2.9';
readme.txt CHANGED
@@ -141,6 +141,10 @@ To show the most recent added mages : **[recent max=x ]**
141
 
142
  == Changelog ==
143
 
 
 
 
 
144
  = V1.5.4 - 14.06.2010 =
145
  * Bugfix : No resize of smaller images
146
  * Bugfix : Compat issues for Post Thumbnails under WP3.0
141
 
142
  == Changelog ==
143
 
144
+ = V1.5.5 - 14.06.2010 =
145
+ * Bugfix : Compat issue for post thumbnails with WP2.9
146
+ * NEW : Adding more hooks for custom fields plugin
147
+
148
  = V1.5.4 - 14.06.2010 =
149
  * Bugfix : No resize of smaller images
150
  * Bugfix : Compat issues for Post Thumbnails under WP3.0