-1

On my WHMCS, the client is redirected to clientarea.php after signup, and I want them to be redirected to affiliates.php

  • So what's your question? And before you say, "how do I do it?", remember that questions like that are too broad and will be closed as such. So if you've written any code thus far I highly recommend adding it to your question. You should read "[how do I ask a good question?](http://stackoverflow.com/help/how-to-ask)". – John Conde Feb 23 '17 at 13:07
  • Bro , why being so presumptuous ? – Maaz Rehman Jan 27 '19 at 11:12

3 Answers3

1

There is a setting in the new version of WHMCS.

  • Visit WHMCS Admin > Setup > General Settings > Other

  • Now uncheck "Tick this box to skip the homepage and forward users directly to the client area/login form upon first visiting WHMCS"

hope this helps

Abdul Rafay
  • 312
  • 6
  • 17
1

Haven't had time to test but maybe this hook can be used: https://developers.whmcs.com/hooks-reference/authentication/#clientlogin

Try if you can redirect when the hook is executed to affiliates.php and then break script execution.

0

You can use a client_add hook to redirect it to your own page. Details,

https://developers.whmcs.com/hooks-reference/client/#clientadd

Maaz Rehman
  • 674
  • 1
  • 7
  • 20