sentq Posted May 13, 2016 Share Posted May 13, 2016 These ActionHook functions will add some restrictions to unverified accounts. Current features: 1) Prevent account from placing orders in WHMCS, and display error message guide them to activate first. 2) Change account status to Inactive after x days. 3) Change account status to Closed after x days. Do not hesitate to share any ideas, requests or features to extend this functions. Download 0 Quote Link to comment Share on other sites More sharing options...
sol2010 Posted May 24, 2016 Share Posted May 24, 2016 (edited) Thanks for sharing. I'm new to hooks - Do you know how I can check if email verification has been completed in an action hook? I'm not using capsule, so would this code still work? if (!is_null($client) && $client->emailVerified!==true){ Also, a suggestion for you, rather than CLOSEACCOUNTAFTERXDAYS how about a resendverification afterxdays function (I don't think the system does that). I suppose you'd need to apply the resend only to newly created accounts. Edited May 24, 2016 by sol2010 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted May 24, 2016 Author Share Posted May 24, 2016 Thanks for sharing. I'm new to hooks - Do you know how I can check if email verification has been completed in an action hook? I'm not using capsule, so would this code still work? if (!is_null($client) && $client->emailVerified!==true){ you may use something like that use WHMCS\View\Menu\Item as MenuItem; $client = Menu::context("client"); if (!is_null($client) && $client->emailVerified===true){ // Client email verified } else { // Client email not verified yet or not logged-in } Also, a suggestion for you, rather than CLOSEACCOUNTAFTERXDAYS how about a resendverification afterxdays function (I don't think the system does that). I suppose you'd need to apply the resend only to newly created accounts. I will add it as optional function in the next update Thank you 0 Quote Link to comment Share on other sites More sharing options...
Aqib2001 Posted July 4, 2018 Share Posted July 4, 2018 On 5/14/2016 at 3:28 AM, sentq said: These ActionHook functions will add some restrictions to unverified accounts. Current features: 1) Prevent account from placing orders in WHMCS, and display error message guide them to activate first. 2) Change account status to Inactive after x days. 3) Change account status to Closed after x days. Do not hesitate to share any ideas, requests or features to extend this functions. Download Thanks, but i am not able to download it. I am receiving 404 Page Not Found Error. 0 Quote Link to comment Share on other sites More sharing options...
Hostify Posted August 29, 2018 Share Posted August 29, 2018 On 5/14/2016 at 12:28 AM, sentq said: These ActionHook functions will add some restrictions to unverified accounts. Current features: 1) Prevent account from placing orders in WHMCS, and display error message guide them to activate first. 2) Change account status to Inactive after x days. 3) Change account status to Closed after x days. Do not hesitate to share any ideas, requests or features to extend this functions. Download Can you please share a new URL? This one is broken, i get a 404 Not Found Pagehttp://nimb.ws/ohF17L 0 Quote Link to comment Share on other sites More sharing options...
Manchester Web Hosting Posted August 30, 2018 Share Posted August 30, 2018 @Hostify 19 hours ago, Hostify said: Can you please share a new URL? This one is broken, i get a 404 Not Found Pagehttp://nimb.ws/ohF17L You can go here to download: https://www.whmcms.com/download/category/6/WHMCS-Free-Addon-Modules-and-Action-Hooks.html Hope the OG poster doesn't mind! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 18, 2021 Share Posted January 18, 2021 3 hours ago, JesusSuarz said: after checking this. I see that it does not work. could you check the code? apparently stopped working for whmcs v8 going by the v8 class docs, I assume it should now be $client->isEmailAddressVerified rather than $client->emailVerified 0 Quote Link to comment Share on other sites More sharing options...
MrGettingRatherFrustrated Posted February 6, 2021 Share Posted February 6, 2021 Great work & thanks for sharing. It is just a pity you have to do this to start with instead of it being part of the product - it is such a useful feature but WHMCS managed to implement it in such a way as to make their implementation pointless! 0 Quote Link to comment Share on other sites More sharing options...
Mike Vassileiou Posted November 28, 2021 Share Posted November 28, 2021 JesusSuarz your hook wokrs great!!! Thanks!!! I have modified its output a little bit, using language file for the output message: // mensaje global $_LANG; return $_LANG['verifyEmailAddress']; 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.