joe123 Posted February 15, 2007 Share Posted February 15, 2007 Hello does anyone know which .tpl file to edit if i want to add a registration button in the affiliate login page ? /clients/affiliates.php thanks 0 Quote Link to comment Share on other sites More sharing options...
joe123 Posted February 16, 2007 Author Share Posted February 16, 2007 I really wish to have an answer for this . i know it looks like it's not possible but i need a confirmation . 0 Quote Link to comment Share on other sites More sharing options...
dbosch Posted February 27, 2007 Share Posted February 27, 2007 hi u have to great a free Package so that user is sign up ! like this "quantushosting.net/whmcs/order.php?step=2&pid=7" hope this helps 0 Quote Link to comment Share on other sites More sharing options...
joe123 Posted March 1, 2007 Author Share Posted March 1, 2007 hi u have to great a free Package so that useris sign up ! like this "quantushosting.net/whmcs/order.php?step=2&pid=7" hope this helps I know that but i want to add a button in clients/affiliates.php file to redirect the clients to that free package when clicked. thanks 0 Quote Link to comment Share on other sites More sharing options...
addeacher Posted March 1, 2007 Share Posted March 1, 2007 Did you find out how to have this redirect tp the free package order form? 0 Quote Link to comment Share on other sites More sharing options...
joe123 Posted March 1, 2007 Author Share Posted March 1, 2007 No , i do not think it is possible because the affiliates.php is encrypted and looks like the only way to add it is in that file. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted March 1, 2007 WHMCS CEO Share Posted March 1, 2007 No , i do not think it is possible because the affiliates.php is encrypted and looks like the only way to add it is in that file. This is possible. You never add code to the PHP files - all code goes in the templates. In this case it would be affiliates.tpl 0 Quote Link to comment Share on other sites More sharing options...
joe123 Posted March 1, 2007 Author Share Posted March 1, 2007 I tried that but if you say so i must of done something wrong , i will give it another try. Thanks 0 Quote Link to comment Share on other sites More sharing options...
joe123 Posted March 1, 2007 Author Share Posted March 1, 2007 affiliates.tpl is for the client when he is logged in as i can see it , and it's not possible to add any button to register to be visible when clients/affiliates.php is called. I gave up ! thanks 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted March 1, 2007 WHMCS CEO Share Posted March 1, 2007 Indeed it is. Try the template file affiliatesignup.tpl - all the templates are named what they are for so it should be possible to work out which template is used where. Matt 0 Quote Link to comment Share on other sites More sharing options...
joe123 Posted March 2, 2007 Author Share Posted March 2, 2007 NO it's not affiliatesignup.tpl , it's the login.tpl but if i make any changes there it will be visible in both clientarea.php and affiliates.php because both use this file . i guess the only way to do it is make a new affiliates.php file , which is not that complicated. thanks 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted March 2, 2007 WHMCS CEO Share Posted March 2, 2007 Or you could just use an if statement in the login file. {if $pagetitle eq "Affiliates"}Display your button code here{/if} 0 Quote Link to comment Share on other sites More sharing options...
joe123 Posted March 2, 2007 Author Share Posted March 2, 2007 great ! that code did the job thanks very much matt 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.