Jump to content
mktngguy

Way to automatically grant password access to members area during signup?

Recommended Posts

I  first posted the following to the Developers area of this community, before realizing it may be a better fit here...

 

Hello, all WHMCS programmers and other experts!

A question for you:

Suppose I had a password protected membership site, and would like to add new hosting customers to it automatically when they sign up for hosting.

Is there a plugin or method to automatically grant new hosting customers password access to a private members area, at the same time they purchase hosting through WHMCS?

Is there a way to do this that would not require custom programming? I suspect this could be done using hooks in WHMCS, and wondering if there's already an "out of the box" solution for solving this challenge?

Thank you in advance for any and all feedback, tips, and suggestions. Looking forward to them.

 

Share this post


Link to post
Share on other sites

There are multiple ways but they all require a bit of coding.

Use ClientAdd hook point to check if user has an active hosting account as soon as he registers. If the answer is true create an access on the fly for your members area via curl() or something like that. Of course don't forget to check if he's already registered and to terminate/delete his membership when he stops renewing his hosting plan.
 

Alternatively you can use AfterModuleCreate to perform the account creation on your members area when WHMCS runs the auto-provisioning for the hosting.

 

Share this post


Link to post
Share on other sites
5 hours ago, Kian said:

There are multiple ways but they all require a bit of coding.

Use ClientAdd hook point to check if user has an active hosting account as soon as he registers. If the answer is true create an access on the fly for your members area via curl() or something like that. Of course don't forget to check if he's already registered and to terminate/delete his membership when he stops renewing his hosting plan.
 

Alternatively you can use AfterModuleCreate to perform the account creation on your members area when WHMCS runs the auto-provisioning for the hosting.

 

Fantastic tips, Kian. Thank you very much!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated