vmunich Posted June 29, 2013 Share Posted June 29, 2013 Hello, I am making a script that will show some info inside the Client Area for selected clients only. I want this script to check my custom DB, if the logged user is in my custom DB, then it will show some info inside WHMCS, if not, it will do nothing. How can I pull data about the user that is logged in? My data I mean, email address and customer ID. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted June 30, 2013 Share Posted June 30, 2013 If you are wanting to create a new page in the WHMCS client area then follow these instructions. The current logged user is available by calling $ca->getUserID(); http://docs.whmcs.com/Creating_Pages If you are wanting to add something to existing page then you would want to create a client area page hook to return a variable and then edit the .tpl file to show your new variable. Information about the client is passed in the incoming variable. http://docs.whmcs.com/Hooks:System#ClientAreaPage 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.