New User Approve Plugin Updates

Last September I release a WordPress plugin that allows an administrator to approve new users after they register for your site. I built the plugin for a private blog that I have and I wanted control over each member of the site. Since I thought others would be interested in using the plugin I decided to release it.

I didn’t realize the amount of work it would create to maintain it.

The thing is, there are many plugin developers donating their time for plugins that I am using. So I don’t mind doing it.

In fact, releasing the plugin was actually the best thing I could do. A few users found bugs and even sent a patch to fix the bug. That’s how it should be.

Anyway, the first update to the New User Approve Plugin was released last night. No new features. Just some bug fixes and code cleanup. Here are the details.

  • correctly display error message if registration is empty
  • clean up code
  • style updates
  • if a user is created through the admin interface, set the status as approved instead of pending
  • add avatars to user management admin page
  • improvements to SQL
  • verify the user does not already exist before the process is started
  • add nonces to approve and deny actions
  • temporary fix for pagination bug if more the 50 users are present in the WP database

If you are a user of the plugin, please let me know if you find any more issues or your thoughts in general on the plugin. And don’t forget to donate if you find this plugin useful.

Tags: , ,

10 Comments

  • Logophilos says:

    Hi – since I downloaded the latest version, I can no longer approve or deny users through the WP interface. I get a ‘page not found’ error (perhaps to do with the new nonce feature?) I have to go to the database and manually delete users who I deny.

    I love this plugin but this issue is a serious problem.

  • @Logophilos I am unable to recreate the bug. I can successfully approve and deny users.

  • I am experiencing the same issue.

    First time it happened, I deleted the user and registered him myself, which bypassed the approval process. I’m going to do the same thing for someone else now.

    It’s a really handy plugin, though. Thanks.

    Error message:

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, support@supportwebsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

  • I just uploaded a fix. Let me know if there are more problems. Sorry for the inconvenience.

  • bradms98 says:

    I’m using this plugin in conjunction with “Registered Users Only” to create a blog that is private, but still lets visitors register and go through the approval process.

    So far, its working, but emails are not being sent to the site admins when a new user registers and needs approval, nor are emails being sent to users once approved or denied.Any ideas on how to get it to send these emails? I’m new to wordpress in general, my apologies in advance for my ignorance.

  • Sorry you’re not getting your emails. Are you getting any emails from your blog? For example, when somebody changes their password, are you being notified via email? The New User Approve plugin uses the wordpress API to send emails.

  • Mark says:

    Hi

    I am interested in having a system where people can register on my blog/site and then they can upload their own files and post their own topic where they basically promote themselves, is this the kind of thing I need or do you know of anything that will work for me?

  • bradms98 says:

    Josh, thanks for the tip about my Wordpress install not sending emails. I didn’t have an address filled in under “Settings > General > E-mail Address”. After entering a valid address here, I started getting the emails I was expecting. Thanks for making this great plugin!

    Mark, it sounds like you want to change the default role for your new users. In your admin console, click “Settings” then change “New User Default Role” to whatever level you want them to have. This plugin will still be handy though, as you may want to approve these users first, instead of just letting any person (or spam bot) register and start posting stuff on your site.

  • Kyle says:

    This is a very interesting plugin. I used Register Plus in the past, but it hasn’t been updated for quite some time.

    I like the way everything is organized. Do you have any ideas on how to allow users to define their own passwords? I guess that function is dependent on whether or not your plugin simply withholds their login credentials, or if it prevents early login.

    That being said, your plugin is effective, and it is much appreciated. I see a lot of potential here, and I look forward to seeing how this evolves.

    I do like the idea of being able to customize the notifications sent. If I cannot allow users to create their own password, I would, at the very least like to point them to their profile page, where they can change it themselves.

    Thanks for the effort

  • Jay says:

    Hi Josh,

    I upgraded to 2.8, had big probs, rolled back to 2.7.1 and now getting:

    Fatal error: Call to undefined function esc_url() in /data/18/1/16/4/1668004/user/1798997/htdocs/ops/wp-content/plugins/new-user-approve/new-user-approve.php on line 286

    That line in my editor is only a }

    Here’s the code just above it:

    if ($deny) {
    $deny_link = get_option(’siteurl’).’/wp-admin/users.php?page=’.basename(__FILE__).’&user=’.$user->ID.’&status=deny’;
    $deny_link = ( function_exists(’wp_nonce_url’) ) ? wp_nonce_url($deny_link, ‘plugin-name-action_’ . get_class($this)) : $deny_link;

    Sorry to bother you with this, but if you have an idea what might have happened it would be greatly appreciated.

    Thanks for the great plugin.

Post a Comment

Your email is never published nor shared.