Results 1 to 13 of 13

Thread: Affiliates Register Button

  1. #1
    Join Date
    Nov 2006
    Posts
    565

    Default Affiliates Register Button

    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

  2. #2
    Join Date
    Nov 2006
    Posts
    565

    Default

    I really wish to have an answer for this .
    i know it looks like it's not possible but i need a confirmation .

  3. #3
    Join Date
    Feb 2007
    Posts
    19

    Default

    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

  4. #4
    Join Date
    Nov 2006
    Posts
    565

    Default

    Quote Originally Posted by dbosch
    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
    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

  5. #5
    Join Date
    Dec 2006
    Location
    Earth
    Posts
    94

    Default

    Did you find out how to have this redirect tp the free package order form?
    Thinking

  6. #6
    Join Date
    Nov 2006
    Posts
    565

    Default

    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.

  7. #7
    Join Date
    Jul 2005
    Location
    UK
    Posts
    8,437

    Default

    Quote Originally Posted by joe123
    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
    WHMCompleteSolution
    The Complete Client Management, Billing & Support Solution
    www.whmcs.com

  8. #8
    Join Date
    Nov 2006
    Posts
    565

    Default

    I tried that but if you say so i must of done something wrong , i will give it another try.


    Thanks

  9. #9
    Join Date
    Nov 2006
    Posts
    565

    Default

    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

  10. #10
    Join Date
    Jul 2005
    Location
    UK
    Posts
    8,437

    Default

    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
    WHMCompleteSolution
    The Complete Client Management, Billing & Support Solution
    www.whmcs.com

  11. #11
    Join Date
    Nov 2006
    Posts
    565

    Default

    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

  12. #12
    Join Date
    Jul 2005
    Location
    UK
    Posts
    8,437

    Default

    Or you could just use an if statement in the login file.

    Code:
    {if $pagetitle eq "Affiliates"}Display your button code here{/if}
    WHMCompleteSolution
    The Complete Client Management, Billing & Support Solution
    www.whmcs.com

  13. #13
    Join Date
    Nov 2006
    Posts
    565

    Default

    great !

    that code did the job

    thanks very much matt

Similar Threads

  1. Add Register Button to /clientarea.php
    By XRumerGeek in forum Customisation & Integration Questions
    Replies: 3
    Last Post: 05-12-12, 12:36 PM
  2. User Register with phpBB3 when they register with billing
    By sean14592 in forum Customisation & Integration Questions
    Replies: 1
    Last Post: 01-13-09, 05:29 PM
  3. Commission from the affiliates of the affiliates
    By paniza in forum Feature Requests
    Replies: 2
    Last Post: 07-27-06, 11:27 PM