ditto Posted March 20, 2013 Share Posted March 20, 2013 After upgrade to WHMCS 5.2.2, it is not possible for new customers to sign up and activate affiliate account. When a customer first log in to client area, and then go to affiliates.php and click on the button to sign up, they are automatically kicked out and must log in again, and the affiliate account is not activated. So this code in affiliatessignup.tpl does not work: <input type="button" value="{$LANG.affiliatesactivate}" onclick="window.location='affiliates.php?activate=true'" /> 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted March 21, 2013 WHMCS CEO Share Posted March 21, 2013 The activate button should be a form post to be accepted successfully. So try replacing the button code you posted above with the following: <form method="post" action="affiliates.php"> <input type="hidden" name="activate" value="true" /> <p align="center"><input type="submit" value="{$LANG.affiliatesactivate}" class="btn btn-success" /></p> </form> Matt 0 Quote Link to comment Share on other sites More sharing options...
ditto Posted March 21, 2013 Author Share Posted March 21, 2013 The code I posted is from the Portal template in WHMCS 5.2.2. So you need to change it, it's not my code. Why is the Portal template not updated to work with 5.2.2? 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.