Results 1 to 4 of 4

Thread: How can I remove the affiliate option from the menus?

  1. #1
    Join Date
    May 2012
    Posts
    6

    Default How can I remove the affiliate option from the menus?

    At the moment we don't offer an affiliate option. The option within WHMCS to enable the affiliate system has not been selected, but the option to sign up as an affiliate still appears within the menu.

    Any idea how we can stop the affiliate option from appearing in the menus?

  2. #2
    Join Date
    Jan 2012
    Location
    USA
    Posts
    963

    Default

    in your templates folder open homepage.tpl and look for this part

    PHP Code:
    <td><div align="center"><a href="affiliates.php"><img src="templates/{$template}/images/affiliates.png" border="0" alt="" /></a></div></td>
        <
    td><strong><a href="affiliates.php">{$LANG.affiliatestitle}</a></strong><br />
          {
    $LANG.affiliatesdescription}</td
    you can comment out that section but warning if you comment out that section you need to put something it its place or it will look funky on the page, the next cell over is the order icon and links.

    Both are on the same row so if you take out the affiliate you will have a blank space there. Even putting

    [HTML]

    <td><div align="center">&nbsp;</div></td>
    <td>&nbsp;</td>

    [/HTML]

    It will still leave you with a dead space.


    What i would do is if you have something else to put in there then put it there, if not just do somthinglike this.

    comment out or remove the original one and put this in its place.

    [HTML]

    <td><div align="center"><img src="templates/{$template}/images/affiliates.png" border="0" alt="" /></div></td>
    <td><strong>{$LANG.affiliatestitle}</a></strong><br />
    We Currently Do Not Offer Any Affiliate Partnership</td>
    [/HTML]


    That way you keep the integrity of the space and just remove the liinks and put in a description that you dont have a aff program.

    hope that helps.

  3. #3
    Join Date
    Jul 2010
    Posts
    787

    Default

    Hello,

    Are you using the default WHMCS template and referring to the menu from that? If so you can remove the affiliates link by:

    - Open /templates/your_template/header.tpl

    Find the following code:

    Code:
    <ul>
    <li><a href="affiliates.php">{$LANG.affiliatestitle}</a></li>
    </ul>
    replace with:

    Code:
    {*<ul>
    <li><a href="affiliates.php">{$LANG.affiliatestitle}</a></li>
    </ul>*}
    ^ There is 2 sections of this code in the header.tpl file. One shows when a user is logged in and the other when logged out. You'll need to do the above for both cases.

    In the future you can easily re-enable these by removing {* & *} should you wish to add an affiliate program to your website.

    Jack
    Web hosting templates Responsive WHMCS & Wordpress + WHMCS templates | WHMCS Services

  4. #4
    Join Date
    May 2012
    Posts
    6

    Default

    Thanks for the replies guys.

    I haven't had time to try these as yet but will give them a try later this week.

    I really appreciate the assistance.

Similar Threads

  1. Remove Nameserver Option?
    By tommyquang in forum Customisation and Integration Questions
    Replies: 3
    Last Post: 12-13-09, 04:33 AM
  2. Remove domain option
    By royt in forum Technical Issues and Questions
    Replies: 1
    Last Post: 05-02-09, 01:18 AM
  3. Remove Attachment option
    By coolguyz_2009 in forum Technical Issues and Questions
    Replies: 3
    Last Post: 04-07-09, 05:48 PM
  4. Remove payment option?
    By Serenade in forum Technical Issues and Questions
    Replies: 1
    Last Post: 02-23-08, 12:43 AM
iron-diatonic