a4atiph Posted December 3, 2009 Share Posted December 3, 2009 Hi, Just upgraded to New Version of WHMCS from v 3.8 and found that actionhooks.php not working properly after putting in correct directory (/includes/hooks/). I checked for help on forums but couldn't find information about variables so using a simple foreach loop, i got the variables of function. Here it is function actionhook_ClientLogin($vars) { # This function runs when a client logs in # $vars["ClientID"] ClientID was the variable index in old version but changed in new version. $show=""; foreach ($vars as $key => $value) { $show.= "$key => $value<br />\n"; } mail('YOUR EMAIL','VARIABLE CHECK',$show); } add_hook("ClientLogin",0,"actionhook_ClientLogin",""); Hope it will help..Also suggestion for WHMCS team to upload document of changes for Decoded (Open for changes) files. Thanks, 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.