Jump to content

How to get info about the user which is logged in WHMCS ?


vmunich

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated