Jump to content

Using WHMCS custom pages with standard clientarea.php?action=mycustompage links


alankis

Recommended Posts

Hi folks,

 

I have successfully create WHMCS custom page for our clientarea, where logic is under my whmcsroot/mycustompage, and .tpl file inside my active template directory. Now I wan't to achieve, for example, as clicking to /clientarea.php?action=domains, leads to domain page (.tpl) file, to be able to redirect user to my custom page clicking to '/clientarea.php?action=mycustompage', instead for URL to lead inside my logic directory /whmcsroot/mycsustompage/index.php and then rendering tpl file. Is this possible, and how do I achieve it?

 

Thanks in advance,

 

Alan

Link to comment
Share on other sites

Alan,

 

Is this possible, and how do I achieve it?

 

my first thought is don't do it... in fact, my second thought was don't do it too! :)

 

the problem you're going to run into is that I think these existing redirects (action=domains etc) are all hard-coded in an encrypted file, and as you can't edit that file, you are unable to add additional options to redirect custom pages elsewhere...

 

it may be possible to use .htaccess to do an internal redirection and keep the existing URL in the browser, but that could get very messy and, unless you're familiar with htaccess, it might cause more problems than it solves.

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