Forums

Approval for New User Registration. (7 posts)

  1. wickedlips17
    Member
    Posted 4 years ago #

    Hi, I wanted to enable the user registration on my site, but I'm wondering if there's a plugin or hack so that those who do register, get approval BEFORE getting the email and password. If you need any further clarifications please let me know and thanks for the help anyone!

  2. wickedlips17
    Member
    Posted 4 years ago #


  3. macmanx
    Member
    Posted 4 years ago #

    I don't know of a method yet, but you can be rest assured that newly registered users won't be able to do much. They are created with a user level of 0. As user level of 0 can login, edit their own profile, and see the Dashboard, Users/Your Profile, and the existing posts. That is all they can do.

    http://codex.wordpress.org/User_Levels

  4. tomthewebmaster
    Member
    Posted 3 years ago #

    I decided to compile links to all of the threads on this topic and post them on all of the threads on the topic. Maybe this will spark an idea for someone.

    See these threads:

    http://wordpress.org/support/topic/58132 (most recent)
    http://wordpress.org/support/topic/53585
    http://wordpress.org/support/topic/35979
    http://wordpress.org/support/topic/35703
    http://wordpress.org/support/topic/39182

    These (below) might also sort of help.

    http://wordpress.org/support/topic/66775
    http://wordpress.org/support/topic/64278

  5. kwesitn
    Member
    Posted 3 years ago #

    I found a solution that worked for me. Instead of having the email with the username and password be sent to the registrant, I tweaked it so that it comes to me. If I want to approve the user I then just forward the email on to the user. Here is a summary of what I changed:

    In wp-includes/pluggable-functions.php

    I changed this function on line 427 or so from this:

    wp_mail($user_email, sprintf(__('[%s] Your username and password'), get_settings('blogname')), $message);

    To this:

    wp_mail('webmaster@mydomain', sprintf(__('[%s] Your username and password'), get_settings('blogname')), $message);

    So the user does not get their username and password without me sending it to them. This could probably be turned into a plugin pretty easily...and would do it when I have some time.

  6. successws
    Member
    Posted 3 years ago #

    Hi kwesitn, I have to say thankl you for this Approval system - I have looked for a plugin that did this with no luck.

    Then I found this thread and VIOLA! You fixed my problem - thanks for a great solution

  7. revm
    Member
    Posted 3 years ago #

    Kwesitn:

    Thanks for your post about sending authorising email to admin for forwarding to actual registrant. I pasted your line of code, changed the receiving address and it worked beautifully.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags