Jump to content

Using WHMCS Action Hooks on outside pages


Recommended Posts

I have been searching for a while and cant seem to find it so if this has been discussed a link to the previous discussion will be fine. Thanks ahead of time.

 

I am running whmcs from a /billing/ subdirectory and have it integrated quite well. I have a login bar on my home page that logs clients into their stuff. I would like it to display links to thier cpanel, webmail, and customer area in place of that login bar if they are logged in.

 

How can i call the whmcs hooks to get the user/password/domain to create the links?

Link to comment
Share on other sites

Actionhooks are designed to trigger functions within whmcs based on certain events, so I do not think that's what you're looking for. However, you could probably get the information you're looking for from the API. You may want to check to see what $_COOKIE is set for whmcs that can tell if a user is logged in or not.

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