Membership login - admin approval?

7 posts by 3 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: July 27, 2012   (RSS)

Hi, there.

Does anyone know of a way to allow new members to sign up and receive a password after their application has been approved by someone with a CMSB admin account? Currently anyone that's not set up can sign up and a password is automatically emailed to them. The client wants it set so that they have to personally authorize the addition of every user.

Thanks,
Nigel Gordijk

Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net

Re: [Jason] Membership login - admin approval?

Thanks for the advice, Jason. I'll try the option #1 first.

Cheers,
Nigel Gordijk

Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net

Re: [Jason] Membership login - admin approval?

Hi, Jason.

One other thing: There's a button in the far right of the main navigation that says "Login": http://www.globalmedelite.com/. Is there a way of replacing this with a "Log out" button when the members are already logged in? I would create a replacement graphic, of course, but how do I get it to appear instead, so users don't see the Login button when they've already done so?

Cheers,
Nigel Gordijk

Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net

Re: [NigelGordijk] Membership login - admin approval?

By Jason - July 24, 2012

Hi Nigel,

Sure, what you can do is have an if statement that looks for the existence of the $CURRENT_USER variable.

For example:

<?php if ($CURRENT_USER): ?>
// code/HTML for when a person is logged in
<?php else: ?>
// code/HTML for when a person is not logged in.
<?php endif ?>


Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Membership login - admin approval?

That works perfectly! Thanks for your help.
Nigel Gordijk

Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net

Re: [NigelGordijk] Membership login - admin approval?

By gkornbluth - July 27, 2012 - edited: July 27, 2012

Hi Nigel,

Sorry I didn't see your post earlier.

I send a password only after a member is approval for an organization I work with, and I've documented the process and code in my CMSB Cookbook thecmsbcookbook.com. in a recipe called IMPLEMENTING THE (CORRECTED) EMAILONAPPROVED PLUGIN WITH THE WEBSITE MEMBERSHIP PLUGIN (ENCRYPTED PASSWORDS).

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php