Jump to content

How can I remove the affiliate option from the menus?


PeterS

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?

Link to comment
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 />
     {$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

 


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

Link to comment
Share on other sites

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:

 

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

 

replace with:

 

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated