addeacher Posted December 29, 2006 Share Posted December 29, 2006 I do not use whmcs for cpanel at all and its not enable on the package however when customer order the package an dlogin to there client area snd click view hosting pacakges it shows link for cpanel and webmail, how can i remove those links? Also if i may add another question. Does subscription create invoices? because we already have subscription from old billing system this is what i did, we chang ethe ipn in paypal already then add the hosting package tot he clients account and put the subscription # as well hopefully that good enough. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted December 29, 2006 Share Posted December 29, 2006 just remove them in the templates. shoudl be under productdetails.tpl or something like that. 0 Quote Link to comment Share on other sites More sharing options...
addeacher Posted December 29, 2006 Author Share Posted December 29, 2006 No productdetails.tpl file well at least if i can find the file i can remove it. Anyone know which file is this to edit? 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted December 29, 2006 Share Posted December 29, 2006 No productdetails.tpl file well at least if i can find the file i can remove it. Anyone know which file is this to edit? I said "or something like that" its the file: clientareaproductdetails.tpl sheesh, open your eyes a little 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted December 29, 2006 Share Posted December 29, 2006 here, even easier, comment out these lines: <p align=center> {if $type eq "hostingaccount"} <form method="post" action="http://{$ipaddress}:2082/login/" method="post" target="_blank"><input type="hidden" name="user" value="{$username}"><input type="hidden" name="pass" value="{$password}"><input type="submit" value="{$LANG.clientareacpanellink}"> <input type="button" value="{$LANG.clientareawebmaillink}" onClick="window.open('http://{$ipaddress}/webmail')"></form> {elseif $type eq "reselleraccount"} <form method="post" action="http://{$ipaddress}:2086/login/" method="post" target="_blank"><input type="hidden" name="user" value="{$username}"><input type="hidden" name="pass" value="{$password}"><input type="submit" value="{$LANG.clientareawhmlink}"></form> {/if} </p> 0 Quote Link to comment Share on other sites More sharing options...
jasonthewebmaster Posted August 26, 2011 Share Posted August 26, 2011 Thanks for the tip! Since I am selling mostly SaaS and do not want my clients to have the opportunity to login to cpanel and steal all the software, then this is very useful. I just wish there was a little checbox when setting up a product/service to disable this in the template without removing it from ALL products/services... maybe i should develop that idea as a plugin? would anyone have use for that besides me? 0 Quote Link to comment Share on other sites More sharing options...
jasonthewebmaster Posted August 26, 2011 Share Posted August 26, 2011 Oh wow, i just realized how old this post is! The code inside this file has changed, so anyone reading this, here is how to remove the Cpanel/Webmail links from your clientareaproductdetails.tpl.. Find this code around line 33: <div align="center">{$moduleclientarea}</div> {if $username} {if $modulechangepassword} <form method="post" action="{$smarty.server.PHP_SELF}?action=productdetails"> <input type="hidden" name="id" value="{$id}" /> <input type="hidden" name="modulechangepassword" value="true" /> {/if} <p><strong> » {$LANG.serverlogindetails}</strong></p> {if $modulechangepasswordmessage} <div class="errorbox">{$modulechangepasswordmessage|replace:'<li>':' # '} # </div><br /> {/if} <table cellspacing="1" cellpadding="0" class="frame"><tr><td> <table width="100%" cellpadding="2"> <tr><td width="150" class="fieldarea">{$LANG.serverusername}/{$LANG.serverpassword}:</td><td>{$username}{if $password} / {$password}{/if}</td></tr> {if $modulechangepassword}<tr><td width="150" class="fieldarea">{$LANG.serverchangepasswordenter}:</td><td width="175"><input type="password" name="newpassword1" id="newpw" size="25" /></td><td><script type="text/javascript">showStrengthBar();</script></td></tr> <tr><td class="fieldarea">{$LANG.serverchangepasswordconfirm}:</td><td><input type="password" name="newpassword2" size="25" /></td></tr>{/if} </table> </td></tr></table> {if $modulechangepassword} <p align="center"><input type="submit" value="{$LANG.serverchangepasswordupdate}" class="buttongo" /></p> </form> {/if} {/if} and change it to... <!--<div align="center">{$moduleclientarea}</div> {if $username} {if $modulechangepassword} <form method="post" action="{$smarty.server.PHP_SELF}?action=productdetails"> <input type="hidden" name="id" value="{$id}" /> <input type="hidden" name="modulechangepassword" value="true" /> {/if} <p><strong> » {$LANG.serverlogindetails}</strong></p> {if $modulechangepasswordmessage} <div class="errorbox">{$modulechangepasswordmessage|replace:'<li>':' # '} # </div><br /> {/if} <table cellspacing="1" cellpadding="0" class="frame"><tr><td> <table width="100%" cellpadding="2"> <tr><td width="150" class="fieldarea">{$LANG.serverusername}/{$LANG.serverpassword}:</td><td>{$username}{if $password} / {$password}{/if}</td></tr> {if $modulechangepassword}<tr><td width="150" class="fieldarea">{$LANG.serverchangepasswordenter}:</td><td width="175"><input type="password" name="newpassword1" id="newpw" size="25" /></td><td><script type="text/javascript">showStrengthBar();</script></td></tr> <tr><td class="fieldarea">{$LANG.serverchangepasswordconfirm}:</td><td><input type="password" name="newpassword2" size="25" /></td></tr>{/if} </table> </td></tr></table> {if $modulechangepassword} <p align="center"><input type="submit" value="{$LANG.serverchangepasswordupdate}" class="buttongo" /></p> </form> {/if} {/if} --> So basically just comment it out by putting <!-- and --> around the whole area (for you noobs) 0 Quote Link to comment Share on other sites More sharing options...
jasonthewebmaster Posted August 26, 2011 Share Posted August 26, 2011 NOW... if any experienced WHMCS PHP developers want a job, PM me and I will pay to have a custom checkbox created to enable/disable this section of code on a per-product basis. cheers Jason 0 Quote Link to comment Share on other sites More sharing options...
stormraider Posted September 4, 2011 Share Posted September 4, 2011 you would want to run an {if} statement 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.