Jump to content

Product showing cpanel login


addeacher

Recommended Posts

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.

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

  • 4 years later...

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?

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

  • 2 weeks later...

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