Jump to content

Custom cPanel login link from clientarea productdetails


asd200

Recommended Posts

Hi everyone!

 

I have question if it's possible to change login link to cPanel - this one in product details.

 

Now in my temeplate is this code:

<a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Email_Accounts" target="_blank">

<img src="modules/servers/cpanel/img/email_accounts.png" />

{$LANG.cPanel.emailAccounts}

</a>

and after click it redirecting me to myserver.com:2083/cpasses....

 

What I want is this, that after click it redirecting to cpanel.mydomain.com/cpasses...

 

Thanks for your answears, regards!

 

 

Is is possible?

Link to comment
Share on other sites

i'm not sure if you're talking about the cpanel sidebar login, or the cpanel quick shortcuts - if it's the sidebar, then that would be modified by an action hook...

 

http://forum.whmcs.com/showthread.php?104894-Login-to-cPanel-amp-Webmail-on-Client-Product-Details

 

if it's the shortcuts, then they're changed by editing a template.

 

http://docs.whmcs.com/CPanel_Single_Sign-On#Customising_Single_Sign-On_Shortcuts

http://docs.whmcs.com/Working_with_Module_Templates

Link to comment
Share on other sites

Yep exactly it's shortcuts in product details. And I already knew that responsible file is /modules/servers/cpanel/templates/overview.tpl but I don't know how to edit this code to change login link.

 

As I mentioned above the link code looking like this:

<a href="clientarea.php?action=productdetails&id= {$serviceid}&dosinglesignon=1&app=Email_Ac counts" />

this adress is pointing to myservername.com:2083

 

What I want is change link pointing to cpanel.mydomain.com

 

Do you have any solution?

Link to comment
Share on other sites

I don't think there is one that you'll like - yes, you can change the link to go direct to the cpanel url... but that wouldn't use SSO and so the client would need to login.

 

... and I suspect you can't easily tweak the resulting URL as it will be in one of the encrypted files.

Link to comment
Share on other sites

  • 5 years later...

Hi, 
Since 2016, Is there a way to achieve this ? 
Personally I get "IPAddress:2083/cpasses..."  
I do not see any easy way to solve this issue.

I would love to redirect my users to heir own domain with the cpanel subdomain and SSO enabled. 

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