Jump to content

Custom Server Module login in Client Area


drblack

Recommended Posts

I just finished creating a custom Server Module. I have the "Login to panel" Login link working from within the Admin side of WHCMS. Is there an easy way to give the customer this link inside their ClientArea? Browsing through the forums it appears Cpanel has this functionality.

 

Thanks

 

Dr.B

Link to comment
Share on other sites

  • 6 months later...

Yes I was able to, in my /website/templates/template-name/clientareaproductdetails.tpl I added the following to add a "Manage my Backups" link:

 

 

<table cellspacing="1" cellpadding="0" class="frame"><tr><td>

<table width="100%" cellpadding="2">
<tr><td width="100" class="fieldarea">{$LANG.serverusername}:</td><td>{$username}</td></tr>
<tr><td class="fieldarea">{$LANG.serverpassword}:</td><td>{$password}</td></tr>
{if $groupname == "Offsite Backup"}
<tr><td class="fieldarea"><a href="http://{$server.ipaddress}/obs/user/logon.do?u={$username}&loginName={$username}&password={$password}" style="color:#cc0000">Manage my backups</a></td></tr>
{/if}
</table>

 

Hope that helps!

 

Dr.B

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