Membership plugin. Disable Access checked by default

By JeffC - April 24, 2016

Hi

I would like new members who signup via the membership plugin to sit in a quarantine area before being authorised by the admin. I thought a simple way to do this would be to disable their access by default, ready for the admin to log in and manually uncheck. So I require help with two things.

1. how can I change the default for disable access to checked (in the section editor it is greyed out, presumably because changing it could create problems elsewhere?)

2. I will need to alert the admin everytime a new user has attempted to sign up. How can I set up an email alert to do this.

thank you

jeff

Jeff

By Damon - April 25, 2016

Hi Jeff,

Here are the steps:

1. how can I change the default for disable access to checked (in the section editor it is greyed out, presumably because changing it could create problems elsewhere?)

Pass in the disabled value when the user signs up in the signup form. Open your user_signup.php file (or the whatever you have named it) and add this code around line 66:

$colsToValues['disabled']         = 1;

You can also at the same time modify the Thanks message that appears on the screen when the user submits the form.

Save and upload the form back to your site. 


2. I will need to alert the admin everytime a new user has attempted to sign up. How can I set up an email alert to do this.

Log into CMS Builder and go to Admin > Email Templates

Click the modify link fr the USER-SIGNUP email template. This is the email that gets sent when users signup.

Add #settings.adminEmail# into the BCC field and the admin will get sent the same email when users signup.

Let me know if you have any questions about any of the steps.

Cheers,
Damon Edis - interactivetools.com

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

By JeffC - April 26, 2016

Thank you. Perfect solution.

Jeff