New User Approve - Version 1.7.3

Version Description

  • place content in metaboxes in place of dynamically pulling from website
  • tested with WordPress 4.3.1
Download this release

Release Info

Developer picklewagon
Plugin Icon 128x128 New User Approve
Version 1.7.3
Comparing to
See all releases

Code changes from version 1.7.2 to 1.7.3

Files changed (3) hide show
  1. includes/admin-approve.php +37 -3
  2. new-user-approve.php +1 -1
  3. readme.txt +6 -2
includes/admin-approve.php CHANGED
@@ -218,9 +218,9 @@ class pw_new_user_approve_admin_approve {
218
 
219
  public function add_meta_boxes() {
220
  add_meta_box( 'nua-approve-admin', __( 'Approve Users', 'new-user-approve' ), array( $this, 'metabox_main' ), 'users_page_new-user-approve-admin', 'main', 'high' );
221
- add_meta_box( 'nua-updates', __( 'Updates', 'new-user-approve' ), array( $this, 'metabox_ajax' ), 'users_page_new-user-approve-admin', 'side', 'default', array( 'url' => 'http://newuserapprove.com/wp-json/posts/52' ) );
222
- add_meta_box( 'nua-support', __( 'Support', 'new-user-approve' ), array( $this, 'metabox_ajax' ), 'users_page_new-user-approve-admin', 'side', 'default', array( 'url' => 'http://newuserapprove.com/wp-json/posts/54' ) );
223
- add_meta_box( 'nua-feedback', __( 'Feedback', 'new-user-approve' ), array( $this, 'metabox_ajax' ), 'users_page_new-user-approve-admin', 'side', 'default', array( 'url' => 'http://newuserapprove.com/wp-json/posts/56' ) );
224
  }
225
 
226
  public function metabox_main() {
@@ -251,6 +251,40 @@ elseif ( $active_tab == 'denied_users' ) : ?>
251
  <?php endif;
252
  }
253
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
254
  public function metabox_ajax( $post, $metabox = array() ) {
255
  $response = wp_remote_get( $metabox['args']['url'] );
256
  if ( wp_remote_retrieve_response_code( $response ) == 200 ) {
218
 
219
  public function add_meta_boxes() {
220
  add_meta_box( 'nua-approve-admin', __( 'Approve Users', 'new-user-approve' ), array( $this, 'metabox_main' ), 'users_page_new-user-approve-admin', 'main', 'high' );
221
+ add_meta_box( 'nua-updates', __( 'Updates', 'new-user-approve' ), array( $this, 'metabox_updates' ), 'users_page_new-user-approve-admin', 'side', 'default' );
222
+ add_meta_box( 'nua-support', __( 'Support', 'new-user-approve' ), array( $this, 'metabox_support' ), 'users_page_new-user-approve-admin', 'side', 'default' );
223
+ add_meta_box( 'nua-feedback', __( 'Feedback', 'new-user-approve' ), array( $this, 'metabox_feedback' ), 'users_page_new-user-approve-admin', 'side', 'default' );
224
  }
225
 
226
  public function metabox_main() {
251
  <?php endif;
252
  }
253
 
254
+ public function metabox_updates() {
255
+ ?>
256
+ <p>I have created a site to help with the support of this plugin. Check it out at <a title="newuserapprove.com" href="https://newuserapprove.com/" target="_blank">newuserapprove.com</a>.</p>
257
+ <p>Please signup for the mailing list to keep up to date.</p>
258
+
259
+ <!-- Begin MailChimp Signup Form -->
260
+ <div id="mc_embed_signup">
261
+ <form id="mc-embedded-subscribe-form" class="validate" style="padding: 0;" action="//picklewagon.us2.list-manage.com/subscribe/post?u=a602ec75eeb3c876324a4c400&amp;id=11b386471b" method="post" name="mc-embedded-subscribe-form" novalidate="" target="_blank">
262
+ <input id="mce-EMAIL" class="email" style="width: 100%;" name="EMAIL" required="" type="email" value="" placeholder="email address" />
263
+ <input name="group[13117][4]" type="hidden" value="4" />
264
+ <div style="position: absolute; left: -5000px;">
265
+ <input tabindex="-1" name="b_a602ec75eeb3c876324a4c400_11b386471b" type="text" value="" />
266
+ </div>
267
+ <div class="clear" style="margin-top: 10px;">
268
+ <input id="mc-embedded-subscribe" class="button" name="subscribe" type="submit" value="Subscribe" />
269
+ </div>
270
+ </form>
271
+ </div>
272
+ <?php
273
+ }
274
+
275
+ public function metabox_support() {
276
+ ?>
277
+ <p>If you haven't already, check out the <a href="https://wordpress.org/plugins/new-user-approve/faq/" target="_blank">Frequently Asked Questions</a>.</p>
278
+ <p>Still not fixed? Please <a href="https://wordpress.org/support/plugin/new-user-approve" target="_blank">start a support topic</a> and I or someone from the community will be able to assist you.</p>
279
+ <?php
280
+ }
281
+
282
+ public function metabox_feedback() {
283
+ ?>
284
+ <p>Please show your appreciation for New User Approve by giving it a positive <a href="https://wordpress.org/support/view/plugin-reviews/new-user-approve#postform" target="_blank">review</a> in the plugin repository!</p>
285
+ <?php
286
+ }
287
+
288
  public function metabox_ajax( $post, $metabox = array() ) {
289
  $response = wp_remote_get( $metabox['args']['url'] );
290
  if ( wp_remote_retrieve_response_code( $response ) == 200 ) {
new-user-approve.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: http://www.picklewagon.com/wordpress/new-user-approve/
5
  Description: Allow administrators to approve users once they register. Only approved users will be allowed to access the site. For support, please go to the <a href="http://wordpress.org/support/plugin/new-user-approve">support forums</a> on wordpress.org.
6
  Author: Josh Harrison
7
- Version: 1.7.2
8
  Author URI: http://picklewagon.com/
9
  */
10
 
4
  Plugin URI: http://www.picklewagon.com/wordpress/new-user-approve/
5
  Description: Allow administrators to approve users once they register. Only approved users will be allowed to access the site. For support, please go to the <a href="http://wordpress.org/support/plugin/new-user-approve">support forums</a> on wordpress.org.
6
  Author: Josh Harrison
7
+ Version: 1.7.3
8
  Author URI: http://picklewagon.com/
9
  */
10
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: picklewagon
3
  Donate link: http://picklewagon.com/wordpress/new-user-approve/donate
4
  Tags: users, registration, sign up, user management, login
5
  Requires at least: 3.5.1
6
- Tested up to: 4.1
7
- Stable tag: 1.7.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -105,6 +105,10 @@ as they have their username and passwords.
105
 
106
  == Changelog ==
107
 
 
 
 
 
108
  = 1.7.2 =
109
  * tested with WordPress 4.1
110
  * fix translation bug
3
  Donate link: http://picklewagon.com/wordpress/new-user-approve/donate
4
  Tags: users, registration, sign up, user management, login
5
  Requires at least: 3.5.1
6
+ Tested up to: 4.3.1
7
+ Stable tag: 1.7.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
105
 
106
  == Changelog ==
107
 
108
+ = 1.7.3 =
109
+ * place content in metaboxes in place of dynamically pulling from website
110
+ * tested with WordPress 4.3.1
111
+
112
  = 1.7.2 =
113
  * tested with WordPress 4.1
114
  * fix translation bug