Vainilla forum

Vanilla Forums WHCMS Single Sign-On
The following is a quick guide to using WHMCS to sign into Vanilla Forums.

Screenshots
http://error405.com/wp-content/uploads/2010/08/Vanilla.png

Installation
Medium. You need to edit code and have access to the server.

Licence needed ?
No

Author
Joe Clarke from www.serverping.net

Download From us with support
Not Available now.

Detailed step by step
e.g. https://whmcs.yourdomain.com/forumauth.php e.g. https://whmcs.yourdomain.com/forumlogin.php
 * 1) Follow the normal instructions for downloading/installing Vanilla Forums: http://vanillaforums.org/download
 * 2) Download and unzip the jsconnect plugin to the plugins folder: http://vanillaforums.org/addon/jsconnect-plugin
 * 3) Go to http://forums.yourdomain.com/settings, then go to Plugins and click enable next to jsconnect.
 * 4) Click the settings button next to jsconnect
 * 5) Click Add Connection
 * 6) Scroll down to the bottom and click Generate Client ID and Secret.
 * 7) For the Site Name enter your company's name
 * 8) For the Authentication URL, enter in the url to a page we will create on your WHMCS server.
 * 1) The signin url is a special page on your whmcs server we will setup to allow users to sign to WHMCS than redirect back to the forums.
 * 1) The Register URL should be a link to signup for an account with your service or register with your WHMCS instance.
 * 2) Click Save.

The next step is setup the authentication script on your WHMCS server.


 * 1) Download the jsConnectPHP library from https://github.com/vanillaforums/jsConnectPHP
 * 2) Upload the functions.jsconnect.php file to your whmcs directory
 * 3) Create a new file in your whmcs directory called forumauth.php with the following code.
 * 4) Update the clientID and secret variable to match what was generate earlier in the jsConnect screen.

Then create another new file called forumlogin.php with the following code: Change the $_SESSION['loginurlredirect'], variable to the url for your forums.

Now go back to your new forums and you will see a signin with Your Company Name button. If the user has already signed in with WHMCS they will be automatically logged in once they press the signin button. If they are not signed into whmcs, they will be redirected to the new login page we just created then redirect back to the forums.

If you would like your users to be automatically signed in without having to press the sign in button, you can install the auto sign plugin: http://vanillaforums.org/addon/jsconnectautosignin-plugin