WP Photo Album Plus - Version 8.0.02.008

Version Description

= 8.0.02 =

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

Release Info

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

Code changes from version 8.0.02.007 to 8.0.02.008

changelog.txt CHANGED
@@ -6,10 +6,11 @@ WP Photo Album Plus Changelog
6
  * Re-added the feature that non loggedin users can upload photos. Be careful wit this, especially make sure moderating is on.
7
  See Advanced settings -> Users -> I Item 32: Upload logout, and Advanced settings -> Admin -> II Item 11: Upload moderation.
8
  Added an admin notice about this if applicable.
 
9
  * Added option Advanced settings -> System -> I Item 5: Ajax method.
10
  In vertsion 8 the official way to use Ajax at the frontend as documented in the Developers manual was implemented.
11
  Unfortunately this method appears not to work on every site, so i added a selectionbox with 4 options.
12
- If links at the frontend do not work, or frontend upload does not work, try one of the alternate methods.
13
 
14
  = 8.0.01 =
15
 
6
  * Re-added the feature that non loggedin users can upload photos. Be careful wit this, especially make sure moderating is on.
7
  See Advanced settings -> Users -> I Item 32: Upload logout, and Advanced settings -> Admin -> II Item 11: Upload moderation.
8
  Added an admin notice about this if applicable.
9
+ * Fixed frontend upload issues.
10
  * Added option Advanced settings -> System -> I Item 5: Ajax method.
11
  In vertsion 8 the official way to use Ajax at the frontend as documented in the Developers manual was implemented.
12
  Unfortunately this method appears not to work on every site, so i added a selectionbox with 4 options.
13
+ If certain links at the frontend do not work, or frontend upload still does not work properly, try one of the alternate methods.
14
 
15
  = 8.0.01 =
16
 
readme.txt CHANGED
@@ -134,7 +134,7 @@ See for the full changelog: <a href="http://www.wppa.nl/changelog/" >The documen
134
 
135
  == Upgrade Notice ==
136
 
137
- = 8.0.01 =
138
 
139
  * This version addresses various minor bug fixes and feature requests.
140
 
134
 
135
  == Upgrade Notice ==
136
 
137
+ = 8.0.02 =
138
 
139
  * This version addresses various minor bug fixes and feature requests.
140
 
wppa-ajax.php CHANGED
@@ -3987,9 +3987,9 @@ global $wppa;
3987
  break;
3988
 
3989
  case 'do-fe-upload':
3990
- if ( is_admin() ) {
3991
  require_once 'wppa-non-admin.php';
3992
- }
3993
  wppa_user_upload();
3994
  echo wppa( 'out' );
3995
  global $wppa_upload_succes_id;
3987
  break;
3988
 
3989
  case 'do-fe-upload':
3990
+ // if ( is_admin() ) {
3991
  require_once 'wppa-non-admin.php';
3992
+ // }
3993
  wppa_user_upload();
3994
  echo wppa( 'out' );
3995
  global $wppa_upload_succes_id;
wppa-common-functions.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-common-functions.php
3
  *
4
  * Functions used in admin and in themes
5
- * Version 8.0.02.006
6
  *
7
  */
8
 
@@ -1235,7 +1235,7 @@ global $wppa;
1235
 
1236
  if ( ! $reload && $msg ) {
1237
  echo
1238
- wppa_js( 'alert( "' . $msg . '" );jQuery( "#wppaer" ).html( "" )' );
1239
  }
1240
  elseif ( $reload == 'home' ) {
1241
  echo
2
  /* wppa-common-functions.php
3
  *
4
  * Functions used in admin and in themes
5
+ * Version 8.0.02.008
6
  *
7
  */
8
 
1235
 
1236
  if ( ! $reload && $msg ) {
1237
  echo
1238
+ wppa_js( 'alert( "' . $msg . '" );jQuery( "#wppaer" ).html( "" );' );
1239
  }
1240
  elseif ( $reload == 'home' ) {
1241
  echo
wppa-links.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Frontend links
6
- * Version 8.0.01.002
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
@@ -111,13 +111,30 @@ global $wppa_runtime_settings;
111
 
112
  if ( ! $key && is_search() ) $key = wppa_opt( 'search_linkpage' );
113
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  if ( ! is_admin() ) {
115
  $al = site_url() . '/wppaajax/?action=wppa&amp;wppa-action=render';
116
  }
117
  else {
118
  $al = admin_url( 'admin-ajax.php' ).'?action=wppa&amp;wppa-action=render';
119
  }
120
-
121
  // See if this call is from an ajax operation or...
122
  if ( wppa( 'ajax' ) ) {
123
  if ( wppa_get_get( 'size' ) ) $al .= '&amp;wppa-size=' . wppa_get_get( 'size' );
3
  * Package: wp-photo-album-plus
4
  *
5
  * Frontend links
6
+ * Version 8.0.02.008
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
111
 
112
  if ( ! $key && is_search() ) $key = wppa_opt( 'search_linkpage' );
113
 
114
+ switch ( wppa_opt( 'ajax_method' ) ) {
115
+ case 'normal':
116
+ if ( is_admin() ) $al = site_url() . '/wp-admin/admin-ajax.php/?action=wppa&amp;wppa-action=render';
117
+ else $al = site_url() . '/wppaajax/?action=wppa&amp;wppa-action=render';
118
+ break;
119
+ case 'wppaajax':
120
+ $al = site_url() . '/wppaajax/?action=wppa&amp;wppa-action=render';
121
+ break;
122
+ case 'admin':
123
+ $al = site_url() . '/wp-admin/admin-ajax.php/?action=wppa&amp;wppa-action=render';
124
+ break;
125
+ case 'none':
126
+ $al = site_url() . '/wp-admin/admin-ajax.php/?action=wppa&amp;wppa-action=render';
127
+ // $can_ajax = 'false'; // works on frontend only, is handled by js
128
+ break;
129
+ }
130
+ /*
131
  if ( ! is_admin() ) {
132
  $al = site_url() . '/wppaajax/?action=wppa&amp;wppa-action=render';
133
  }
134
  else {
135
  $al = admin_url( 'admin-ajax.php' ).'?action=wppa&amp;wppa-action=render';
136
  }
137
+ */
138
  // See if this call is from an ajax operation or...
139
  if ( wppa( 'ajax' ) ) {
140
  if ( wppa_get_get( 'size' ) ) $al .= '&amp;wppa-size=' . wppa_get_get( 'size' );
wppa-settings-autosave.php CHANGED
@@ -6431,13 +6431,13 @@ global $wppa_subtab_names;
6431
  wppa_setting_new($slug, '4', $name, $desc, $html, $help);
6432
 
6433
  $name = __('Ajax method', 'wp-photo-album-plus');
6434
- $desc = __('The urls Ajax will use', 'wp-photo-album-plus');
6435
  $help = __('Only change this setting when there are links that do not work', 'wp-photo-album-plus');
6436
  $slug = 'wppa_ajax_method';
6437
- $opts = array( __('(Normal) Frontend: /wppaajax/, Backend: /wp-admin/admin-ajax.php', 'wp-photo-album-plus'),
6438
- __('Both: /wppaajax/', 'wp-photo-album-plus'),
6439
- __('Both: /wp-admin/admin-ajax.php', 'wp-photo-album-plus'),
6440
- __('Frontend: none, Backend: /wp-admin/admin-ajax.php', 'wp-photo-album-plus'),
6441
  );
6442
  $vals = array( 'normal',
6443
  'wppaajax',
6431
  wppa_setting_new($slug, '4', $name, $desc, $html, $help);
6432
 
6433
  $name = __('Ajax method', 'wp-photo-album-plus');
6434
+ $desc = __('The method Ajax will use', 'wp-photo-album-plus');
6435
  $help = __('Only change this setting when there are links that do not work', 'wp-photo-album-plus');
6436
  $slug = 'wppa_ajax_method';
6437
+ $opts = array( __('Normal', 'wp-photo-album-plus'),
6438
+ __('Frontend and Backend: Frontend method', 'wp-photo-album-plus'),
6439
+ __('Frontend and Backend: Backend method', 'wp-photo-album-plus'),
6440
+ __('Frontend: none, Backend: Backend method', 'wp-photo-album-plus'),
6441
  );
6442
  $vals = array( 'normal',
6443
  'wppaajax',
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: 8.0.02.007
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_api_version;
27
- $wppa_api_version = '8.0.02.007'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30
 
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: 8.0.02.008
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_api_version;
27
+ $wppa_api_version = '8.0.02.008'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30