PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Pending Users and "Lost Password" Form

  1. Hey all,

    had a quick question. I have a registration form set up, and it's working beautifully - no issues there. I've got it set up so that when someone registers for the site, they are auto-set to "pending" as their status (new members have to be approved by an admin before they can get a password) - which is also working wonderfully.

    My question is this: if someone registers for the site, it won't send them a password (which is what I want), and if they actually click the "lost password?" link on the login page and put in the username or email they registered with BEFORE they are sent a password (and their status is still "pending") i does what it's supposed to do: nothing.

    However, I see a pink box that seems like it's telling the end user that they haven't been approved, thus no password will be sent - but it's blank. it only shows the pink "error message" box, with nothing in it. I'd like to put a message in there. Am I missing something on how?

    Posted 12 years ago on Wednesday March 21, 2012 | Permalink
  2. Hi - you ever figure this one out? I have a similar question?

    Can i ask you how you set the users status to 'pending'? You use user META?

    Posted 12 years ago on Thursday March 22, 2012 | Permalink
  3. No, I just posted the question yesterday :) If I do figure it out, I'll post the aswer.

    As for "pending", it's in the User Registration add on. When you map the Registration to the form, there's a dropdown choice to set a user as "pending."

    Posted 12 years ago on Thursday March 22, 2012 | Permalink
  4. Hi Shelly thanks,

    Err I don't see the 'pending' option! Do you need to create this user meta field first then map it?

    My set up is i have a registration for on one of my pages created with Gravity Forms. I have the registration add on activated and i have this form tied to it and mapped all the fields including 6 more custom user fields i've created. So all is good. Thing is i don't want the registering user to be active straight away. I want the admin to come in and activate him/her.

    When i go to the 'User Registration' link and select my registration form. I see all the mappings. I see 'User Settings' which maps all the standard user fields to my form fields. I also see 'User Meta' where i map all my custom user meta to fields on my form. I also see 'Additional Options' which has 2 options 1) send email and 2) Registration Condition - the latter just asking is there something onmy form that needs to be ticked or something before the user is able to register. I thought that it was this you were talking about?

    Posted 12 years ago on Thursday March 22, 2012 | Permalink
  5. Hi, I would like to accomplish the same thing. I have not found the "pending" option either.
    Thanks.

    Posted 12 years ago on Thursday March 22, 2012 | Permalink
  6. I've just a few Google searches there and it doesn't seem like it's possible to set a user as 'inactive' without the use of a plug-in of some kind?

    What would be amazing - if this is what Shelly is talking about - would be IF when a user registers that the actual user isn't created until the admin goes into the actual form and presses something like 'activate' thus creating the user. Now that would be the ideal scenario!

    Posted 12 years ago on Thursday March 22, 2012 | Permalink
  7. There's no mention of it on http://gravityhelp.com/documentation/page/User_Registration_Add-On either? God i'd love this feature! :)

    Posted 12 years ago on Thursday March 22, 2012 | Permalink
  8. Well, I discovered (by accident) that the blank pink box is a WordPress thing, not a Gravity Forms thing. If a user doesn't have a password set (or if registrations are disabled and someone tries to register anyway) on a default WP setup, it'll show the blank pink box. So WordPress must not have error messages for this sort of setup. I suppose this can be marked as "resolved" as far as Gravity Forms goes, since it's a WP issue, not a GF issue.

    As for you ICAN, the "pending" option IS there. I've used it on three sites already, and working on the fourth. Here is a screenshot. Whn the person registers, it'll create the user, but it'll not give them a user level, and no password. The client has to manually approve the user, set their user level and send them a password (or a link to the "lost password" page). If the end user registered, but isn't approved, and goes to the "lost password" page themselves to try and get a password (and circumvent the system) it won't send them one, because they have no user level set. My issue was that it wouldn't give them an error message when they try - just shows a blank pink box (which I've discovered is a WordPress thing.)

    Posted 12 years ago on Saturday March 24, 2012 | Permalink
  9. A note - just in case. I'm also using the "Theme My Login" plugin, which adds an extra level of stuff, and hides the back-end administration, allows for redirects, custom profiles, etc. I thought maybe it had something to do with the "Pending" status in the role, but when I deactivated the plugin, the "Pending" status is still there in GF. So I'm pretty sure this is a GF thing - you should be able to choose "Pending" as a user level (which is actually no user level at all). But just in case, I thought I'd mention that I'm using this plugin as well, so *maybe* that has something to do with it.

    Posted 12 years ago on Saturday March 24, 2012 | Permalink
  10. I figured out the problem with the missing "pending" option. If you select "send password to user", it won't show up because that is a process done only during activation. You don't want them to get their login credentials until they are approved.

    Posted 12 years ago on Tuesday March 27, 2012 | Permalink
  11. well there you go! :) Thanks valerama :)

    Posted 12 years ago on Tuesday March 27, 2012 | Permalink
  12. brettg98
    Member

    OK, I'm almost sure that this is user error (on my part), but would you be able to post versions, etc.?

    I'm pulling my hair out looking for "pending"

    Here are my details: WP 3.3.1, GF 1.6.3.3.4, and UR add-on 1.4

    I've disabled "Send Email?" and still don't have "pending" as an available option in my role dropdown.

    Thanks,

    Posted 12 years ago on Wednesday March 28, 2012 | Permalink
  13. Baloney
    Member

    Trying to work the same thing out myself and the Pending role only appeared after installing the Theme My Login and expending a lot of swear juice.

    I need an ajax login form and an approval process that holds the registration until the boss gets a look at this hopeful punter trying to join her wooshop.

    I also had some luck with using code from this textbook http://wpajax.com/ (example at end of the book) as a registration form, and also this for approving new registrations
    http://wordpress.org/extend/plugins/new-user-approve/ - though I think I've caused a corruption in the database and haven't had time to dump all the relevant content and reload a fresh install, or whatever a wiseman with ample time before deadlines would do.

    Jeepers.

    Posted 12 years ago on Monday April 16, 2012 | Permalink
  14. Baloney
    Member

    Ok swearing at 250dB and installing Theme My Login did get it working.

    If anyone's interested I can untangle what I did, but it involved the WP General Settings page checkbox for allowing a new user to register (on or off? can't remember); having Notification to User on or off (can't remember - there's a pattern here) in the Edit Form part of GF; having Send Email? in User Registration Settings unchecked. Then to approve going to the WP User page and on hover an "Approve" link was magically there, which when nervously pressed sent off The Approval Message which was a WP message (not GF notification) allowing the hopeful new user the privilege of being able to sign in and waste money in my wooshop. And if I'm really lucky I'll find where Theme My Plugin lets me style and edit the markup in The Approval Message - I did have the themes / css-ing part of Theme My Plugin disabled.

    There must've been an easier way.

    That's all.

    Posted 12 years ago on Monday April 16, 2012 | Permalink
  15. Here's the steps I took to make it work. It does require "Theme My Login" (or another "user approval" plugin) to get the "Pending" status. I'm using a clean install of WordPress to write out the steps for you...

    Okay, default installation - I keep my WordPress sites and plugins up-to-date, so if there's a release, I always update it. The current version I'm using (for future reference) is WP 3.2.2 and Gravity Forms 1.6.4.1.1. with the User Registration Add-On activated.

    WordPress settings: "anyone can register" is checked, default role is "Subscriber". (you MUST have this, or no one will be able to register at all)

    Simplest form: Desired Username (required, no duplicates); Email (required, no duplicates).

    Under "User Registration", uncheck "Send this password to the new user by email." Leave the default role as "Subscriber" for now. Map your email and username fields. Save.

    Under "Settings > Theme My Login", click on the "Modules" tab, and check the "Enable User Moderation" box. Return to "User Registration", and your "Pending" status shows up.

    Apparently you can use *any* plugin that will allow you to create a new role (you can create a "Pending" role and not allow them access to anything at all) or any plugin that will help you require approval before you allow someone to get a password. There's several available. I just like "Theme My Login" because it allows you to set up custom redirects for each user level, and makes for easy pages for stuff like profiles and editing from the front-end instead of the back.

    As for editing the The My Login output, they have a tutorial - all you have to do is copy the files you want to edit from the plugin's "themes" directory and put it in your theme directory - the plugin is set to look in your theme first. (I edit the lostpassword-form.php, the login-form.php, and the profile-form.php files so I can edit the links and what's displayed.)

    Posted 12 years ago on Thursday May 3, 2012 | Permalink