WP Photo Album Plus - Version 7.4.01.002

Version Description

= 7.4.01 =

  • This version addresses various bug fixes and feature requests.
Download this release

Release Info

Developer opajaap
Plugin Icon wp plugin WP Photo Album Plus
Version 7.4.01.002
Comparing to
See all releases

Code changes from version 7.4.01.001 to 7.4.01.002

changelog.txt CHANGED
@@ -4,6 +4,7 @@ WP Photo Album Plus Changelog
4
 
5
  * New setting Table IV-A35.1: Request info dialog text. Requesting info now opens a dialog box that asks the user to specify his request.
6
  * New setting Table IV-A36: Use Gallery not Album. Changes all 'album' into 'gallery' in all texts.
 
7
 
8
  = 7.4.00 =
9
 
4
 
5
  * New setting Table IV-A35.1: Request info dialog text. Requesting info now opens a dialog box that asks the user to specify his request.
6
  * New setting Table IV-A36: Use Gallery not Album. Changes all 'album' into 'gallery' in all texts.
7
+ * New setting Table IV-A27.2: Admins choice me only. Shows the link to the current users zipfile only.
8
 
9
  = 7.4.00 =
10
 
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: opajaap
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=OpaJaap@OpaJaap.nl&item_name=WP-Photo-Album-Plus&item_number=Support-Open-Source&currency_code=USD&lc=US
4
  Tags: photo, album, slideshow, video, audio, lightbox, iptc, exif, cloudinary, fotomoto, imagemagick, pdf
5
- Version: 7.4.01.001
6
  Stable tag: 7.4.00.005
7
  Author: J.N. Breetvelt
8
  Author URI: http://www.opajaap.nl/
@@ -137,7 +137,7 @@ See for the full changelog: <a href="http://www.wppa.nl/changelog/" >The documen
137
 
138
  == Upgrade Notice ==
139
 
140
- = 7.4.00 =
141
 
142
  * This version addresses various bug fixes and feature requests.
143
 
2
  Contributors: opajaap
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=OpaJaap@OpaJaap.nl&item_name=WP-Photo-Album-Plus&item_number=Support-Open-Source&currency_code=USD&lc=US
4
  Tags: photo, album, slideshow, video, audio, lightbox, iptc, exif, cloudinary, fotomoto, imagemagick, pdf
5
+ Version: 7.4.01.002
6
  Stable tag: 7.4.00.005
7
  Author: J.N. Breetvelt
8
  Author URI: http://www.opajaap.nl/
137
 
138
  == Upgrade Notice ==
139
 
140
+ = 7.4.01 =
141
 
142
  * This version addresses various bug fixes and feature requests.
143
 
wppa-ajax.php CHANGED
@@ -789,8 +789,9 @@ wppa_log('obs', 'POST args are: '.wppa_compress_html(var_export(array_keys($_POS
789
 
790
  // Remove user id as tag to the item if configured
791
  if ( wppa_switch( 'choice_is_tag' ) ) {
792
- $tags = strtolower( wppa_get_photo_item( $photo, 'tags' ) );
793
- $tags = str_replace( ',user-' . wppa_get_user( 'id' ) . ',', ',', $tags );
 
794
  wppa_update_photo( array( 'id' => $photo, 'tags' => wppa_sanitize_tags( $tags ) ) );
795
  wppa_clear_taglist();
796
  }
@@ -820,8 +821,9 @@ wppa_log('obs', 'POST args are: '.wppa_compress_html(var_export(array_keys($_POS
820
  WHERE tags LIKE '%," . $tag . ",%'", ARRAY_A );
821
  foreach( $items as $item ) {
822
  $id = $item['id'];
823
- $tags = strtolower( $item['tags'] );
824
- $tags = str_replace( $tag, '', $tags );
 
825
  $tags = wppa_sanitize_tags( $tags );
826
  wppa_update_photo( array( 'id' => $id, 'tags' => $tags ) );
827
  }
789
 
790
  // Remove user id as tag to the item if configured
791
  if ( wppa_switch( 'choice_is_tag' ) ) {
792
+ $tags = preg_replace( '/,user-'.wppa_get_user( 'id' ).',/siu', ',', $tags );
793
+ // $tags = strtolower( wppa_get_photo_item( $photo, 'tags' ) );
794
+ // $tags = str_replace( ',user-' . wppa_get_user( 'id' ) . ',', ',', $tags );
795
  wppa_update_photo( array( 'id' => $photo, 'tags' => wppa_sanitize_tags( $tags ) ) );
796
  wppa_clear_taglist();
797
  }
821
  WHERE tags LIKE '%," . $tag . ",%'", ARRAY_A );
822
  foreach( $items as $item ) {
823
  $id = $item['id'];
824
+ $tags = preg_replace( '/,'.$tag.',/siu', ',', $tags );
825
+ // $tags = strtolower( $item['tags'] );
826
+ // $tags = str_replace( $tag, '', $tags );
827
  $tags = wppa_sanitize_tags( $tags );
828
  wppa_update_photo( array( 'id' => $id, 'tags' => $tags ) );
829
  }
wppa-album-admin-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * create, edit and delete albums
6
- * Version 7.4.00
7
  *
8
  */
9
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * create, edit and delete albums
6
+ * Version 7.4.01
7
  *
8
  */
9
 
wppa-boxes-html.php CHANGED
@@ -1144,7 +1144,12 @@ function wppa_get_admins_choice_html( $admins ) {
1144
  $zipsdir = WPPA_UPLOAD_PATH.'/zips/';
1145
 
1146
  // Find all zipfiles
1147
- $zipfiles = wppa_glob($zipsdir.'*.zip');
 
 
 
 
 
1148
 
1149
  // admins specified?
1150
  if ( $admins ) {
1144
  $zipsdir = WPPA_UPLOAD_PATH.'/zips/';
1145
 
1146
  // Find all zipfiles
1147
+ if ( wppa_switch( 'admins_choice_meonly' ) ) {
1148
+ $zipfiles = wppa_glob($zipsdir.wppa_get_user().'.zip');
1149
+ }
1150
+ else {
1151
+ $zipfiles = wppa_glob($zipsdir.'*.zip');
1152
+ }
1153
 
1154
  // admins specified?
1155
  if ( $admins ) {
wppa-defaults.php CHANGED
@@ -554,6 +554,7 @@ horizrailenabled:false,";
554
  'wppa_capitalize_tags' => 'yes',
555
  'wppa_enable_admins_choice' => 'no',
556
  'wppa_admins_choice' => 'none',
 
557
  'wppa_choice_is_tag' => 'no',
558
  'wppa_owner_to_name' => 'no',
559
 
554
  'wppa_capitalize_tags' => 'yes',
555
  'wppa_enable_admins_choice' => 'no',
556
  'wppa_admins_choice' => 'none',
557
+ 'wppa_admins_choice_meonly' => 'no',
558
  'wppa_choice_is_tag' => 'no',
559
  'wppa_owner_to_name' => 'no',
560
 
wppa-settings-autosave.php CHANGED
@@ -4452,6 +4452,15 @@ global $wppa_supported_camara_brands;
4452
  $tags = 'system,meta';
4453
  wppa_setting($slug, '27.1', $name, $desc, $html, $help, $clas, $tags);
4454
 
 
 
 
 
 
 
 
 
 
4455
  $name = __('Make owner like photoname', 'wp-photo-album-plus');
4456
  $desc = __('Change the owner to the user who\'s display name equals photoname.', 'wp-photo-album-plus');
4457
  $help = '';
4452
  $tags = 'system,meta';
4453
  wppa_setting($slug, '27.1', $name, $desc, $html, $help, $clas, $tags);
4454
 
4455
+ $name = __('Admins choice me only', 'wp-photo-album-plus');
4456
+ $desc = __('Shows the link to the current users zipfile only', 'wp-photo-album-plus');
4457
+ $help = '';
4458
+ $slug = 'wppa_admins_choice_meonly';
4459
+ $html = wppa_checkbox($slug);
4460
+ $clas = '';
4461
+ $tags = 'system,meta';
4462
+ wppa_setting($slug, '27.2', $name, $desc, $html, $help, $clas, $tags);
4463
+
4464
  $name = __('Make owner like photoname', 'wp-photo-album-plus');
4465
  $desc = __('Change the owner to the user who\'s display name equals photoname.', 'wp-photo-album-plus');
4466
  $help = '';
wppa.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * Plugin Name: WP Photo Album Plus
4
  * Description: Easily manage and display your photo albums and slideshows within your WordPress site.
5
- * Version: 7.4.01.001
6
  * Author: J.N. Breetvelt a.k.a. OpaJaap
7
  * Author URI: http://wppa.opajaap.nl/
8
  * Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
@@ -24,7 +24,7 @@ global $wp_version;
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_revno; $wppa_revno = '7400'; // WPPA db version
27
- global $wppa_api_version; $wppa_api_version = '7.4.01.001'; // WPPA software version
28
 
29
  /* Init page js data */
30
  global $wppa_js_page_data; $wppa_js_page_data = '';
2
  /*
3
  * Plugin Name: WP Photo Album Plus
4
  * Description: Easily manage and display your photo albums and slideshows within your WordPress site.
5
+ * Version: 7.4.01.002
6
  * Author: J.N. Breetvelt a.k.a. OpaJaap
7
  * Author URI: http://wppa.opajaap.nl/
8
  * Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_revno; $wppa_revno = '7400'; // WPPA db version
27
+ global $wppa_api_version; $wppa_api_version = '7.4.01.002'; // WPPA software version
28
 
29
  /* Init page js data */
30
  global $wppa_js_page_data; $wppa_js_page_data = '';