Jump to content

How can I remove the affiliate option from the menus?

Recommended Posts

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?

Share this post

Link to post
Share on other sites

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


<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 />


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


<td><div align="center"> </div></td>
   <td> </td>


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.


<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>



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.

Share this post

Link to post
Share on other sites



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:


<li><a href="affiliates.php">{$LANG.affiliatestitle}</a></li>


replace with:


<li><a href="affiliates.php">{$LANG.affiliatestitle}</a></li>


^ 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.



Share this post

Link to post
Share on other sites

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.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.


Important Information

By using this site, you agree to our Terms of Use & Guidelines