Jump to content

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.

 

Link to comment
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.

 

Link to comment
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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

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