sgrayban Posted March 22, 2010 Share Posted March 22, 2010 (edited) What this module does is force your clients to agree to the new Terms or Service or they are denied access to there account. Its pretty simple but effective as many sites now require you to agree to new terms or face having your account disabled and services terminated. I will give the license away for free to the first 5 beta testers who want to try out this addon. The annual cost is $15.00 - there is no owned license and upgrades will always be free. To install this addon.... Import the file tblterms.sql into your WHMCS mysql database.using phpmyadmin or what ever else you can use. Upload the files in the correct directory structure. /ROOTPATH_FOR_WHMCS/terms.php /ROOTPATH_FOR_WHMCS/tos.php /ROOTPATH_FOR_WHMCS/includes/hooks/terms.php /ROOTPATH_FOR_WHMCS/modules/admin/terms/terms.php /ROOTPATH_FOR_WHMCS/templates/ACTIVE-TEMPLATE/tos.tpl Edit the template file tos.tpl to suit your needs - becarefull to not remove the smarty codes ! The settings are located under the admin Addon Modules section - admin/addonmodules.php?module=terms. Sample page will look like this. Terms On this page, it's possible to manage the "Terms of Service" modification. Your current revision is 2. Change revision * Update revision (+1) * Downgrade revision (-1) What would you like to see? * Users with the current revision (2) * Users with a previous revision (<2) * Users with revision * Users who didn't accept the ToS yet All feedback will be appreciated. To be a tester you must reply to this thread and I will send you a link where you can signup and get your license key and the link to the file. Edited March 22, 2010 by sgrayban 0 Quote Link to comment Share on other sites More sharing options...
hightekhosting Posted March 22, 2010 Share Posted March 22, 2010 Will this module work if the TOS is stored outside the WHMCS directory? IE: In the root of the website Example: Our tos is at http://www.domain.com/policies/tos.php Our WHMCS is at: http://www.domain.com/whmcs/ Cheers. 0 Quote Link to comment Share on other sites More sharing options...
timgws Posted March 22, 2010 Share Posted March 22, 2010 Hi sgrayban, Could I please be one of your lucky beta testers? Regards, Tim 0 Quote Link to comment Share on other sites More sharing options...
j4m3s Posted March 22, 2010 Share Posted March 22, 2010 Hi, I would like to be one of the beta-testers. Regards, Luciano 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted March 22, 2010 Author Share Posted March 22, 2010 (edited) Will this module work if the TOS is stored outside the WHMCS directory? IE: In the root of the website Example: Our tos is at http://www.domain.com/policies/tos.php Our WHMCS is at: http://www.domain.com/whmcs/ Cheers. No. The tos.tpl has to be under your current template path. The file I use is called tos.php which in turn opens the tos.tpl - in the tos.tpl there is a smarty syntax that can tell whether the url contains the ?accept variable which the smarty tag pickups and produces the accept button for the client to click on. If they don't click on accept they can never get into their client area. Edited March 22, 2010 by sgrayban 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted March 22, 2010 Author Share Posted March 22, 2010 @j4m3s please enable your PM 0 Quote Link to comment Share on other sites More sharing options...
EasyWHMCS Posted March 22, 2010 Share Posted March 22, 2010 Could i be a beta tester please 0 Quote Link to comment Share on other sites More sharing options...
Jan Posted March 22, 2010 Share Posted March 22, 2010 Hi, I would like to be one of the beta testers. Best regards Jan 0 Quote Link to comment Share on other sites More sharing options...
j4m3s Posted March 22, 2010 Share Posted March 22, 2010 @j4m3s please enable your PM You could send by mail, please? luciano @ hetonline . net 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted March 22, 2010 Author Share Posted March 22, 2010 Could i be a beta tester please Sent the info in PM with the download link and key. Please report any issues in this thread. 0 Quote Link to comment Share on other sites More sharing options...
j4m3s Posted March 22, 2010 Share Posted March 22, 2010 After sending the files, any page of my WHMCS is with error 500 (Internal Server Error), but removing the file /includes/hooks/terms.php, the problem disappears. Im using whmcs v4.2.1 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted March 22, 2010 Author Share Posted March 22, 2010 After sending the files, any page of my WHMCS is with error 500 (Internal Server Error), but removing the file /includes/hooks/terms.php, the problem disappears.Im using whmcs v4.2.1 Can you turn on debugging and paste the errors ? 0 Quote Link to comment Share on other sites More sharing options...
easyhosting Posted March 22, 2010 Share Posted March 22, 2010 Please i would lie to beta test this What this module does is force your clients to agree to the new Terms or Service or they are denied access to there account. Its pretty simple but effective as many sites now require you to agree to new terms or face having your account disabled and services terminated. I will give the license away for free to the first 5 beta testers who want to try out this addon. The annual cost is $15.00 - there is no owned license and upgrades will always be free. All feedback will be appreciated. To be a tester you must reply to this thread and I will send you a link where you can signup and get your license key and the link to the file. 0 Quote Link to comment Share on other sites More sharing options...
j4m3s Posted March 22, 2010 Share Posted March 22, 2010 Can you turn on debugging and paste the errors ? I've done, but has nothing recorded. Only when accessing the page that appears in the error 500. 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted March 22, 2010 Author Share Posted March 22, 2010 I've done, but has nothing recorded.Only when accessing the page that appears in the error 500. There must be something in your error logs. Edit your configuration.php and enable debug - $display_errors = "true"; If that doesn't work then enable apache debug logging but without a error reason I have no idea where to look. My initial testing did not have any problems. 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted March 22, 2010 Author Share Posted March 22, 2010 There is a error in the hook script terms.php -- I will fix this today upload a new version of the addon and post when it is ready. 0 Quote Link to comment Share on other sites More sharing options...
equipc Posted March 22, 2010 Share Posted March 22, 2010 Do you still need beta tester ? 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted March 22, 2010 Author Share Posted March 22, 2010 Not just yet -- I have to fix a hook script first before I accept any other testers. 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted March 23, 2010 Author Share Posted March 23, 2010 Ok beta testers I uploaded a new version to test. Just use the same url to download the file and install it. Overwrite all files other then editing your templates. Any issues please use the forum thread. 0 Quote Link to comment Share on other sites More sharing options...
j4m3s Posted March 23, 2010 Share Posted March 23, 2010 In admin: By listing the customers who accepted / not accepted, and click delete, it is erasing any revision version. I believe he is not getting the client ID, because even when you click the name of the client, it opens the page: 'clientssummary.php?userid=' without the client ID. 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted March 23, 2010 Author Share Posted March 23, 2010 Ahh I see this -- LOL I never noticed that until just now. It's basically a cosmetic issue but the function isn't wrong. Is everything else working other then that ? 0 Quote Link to comment Share on other sites More sharing options...
arhost Posted March 23, 2010 Share Posted March 23, 2010 Hi, I would like to be one of the beta testers 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted March 23, 2010 Author Share Posted March 23, 2010 (edited) Also you can manually test this by logging in as any client and going to /tos.php?action=accept You should see.... You must agree to the new TOS to continue.Scroll down and click the "I agree" button. And at the bottom that accept button should show up. Edited March 23, 2010 by sgrayban fixed typo 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted March 23, 2010 Author Share Posted March 23, 2010 Hi, I would like to be one of the beta testers Sorry but I have 5 beta testers now. 0 Quote Link to comment Share on other sites More sharing options...
j4m3s Posted March 23, 2010 Share Posted March 23, 2010 Ok, I accepted the TOS (logged as client), then went to admin and clicked to remove the client from the list that version of the TOS. But the client is not removed from the list 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.