Jump to content

how to modify/remove cpanel login link from whmcs?


Recommended Posts

how to modify/remove cpanel login link from client area, i don't use it because cpanel login link always go to hostname:2082 instead ip:2082 (i have one reseller account and my client will know my upline from hostname)

i have edited cpanel template and cpanel shortcut on main page removed, but i dont know how to remove/modify cpanel login link in left sidebar

how to remove/modify it? whats file?

 

https://dl.dropboxusercontent.com/u/95309504/cpanel.PNG

Edited by artetatu
Link to comment
Share on other sites

ideally, you'd need to use an action hook to modify or remove the sidebar entry.

 

e.g if you wanted to change the links for cpanel and/or webmail, you could use the hook in the thread below...

 

http://forum.whmcs.com/showthread.php?104894-Login-to-cPanel-amp-Webmail-on-Client-Product-Details&p=432807#post432807

 

you would create a .php file within the /includes/hooks/ folder and add the above code to it - when you refresh the page, the links should change to those specified in the hook.

 

btw - I suppose you could edit sidebar.tpl to tweak it, but I suspect the code required would not be worth considering - using the hook will be cleaner and easier. :idea:

Link to comment
Share on other sites

Did you try CSS hack using CSS3 :nth-of-type() Selector yet>?

 

Also, if using stock theme, you can just ® Click > Inspect and than you'll be able to create new style. So for example, this will hide the Log into cPanel sidebar nav item:

 

a#Primary_Sidebar-Service_Details_Actions-Login_to_cPanel {
   display: none;
}

 

If you want, send me a link to your site, create a demo test client and with the credentials, I'll hop in real swift, make a few tweaks and send you code.

 

TTYL

Link to comment
Share on other sites

Did you try CSS hack using CSS3 :nth-of-type() Selector yet>?

it's a quick way to remove it (though not as cleanly as a hook would), so I wouldn't use it unless the hook was too difficult to code.

 

for adding, removing or /modifying a sidebar entry, the hook would be better - there are plenty of examples in the forums of how to do it.

Link to comment
Share on other sites

ideally, you'd need to use an action hook to modify or remove the sidebar entry.

 

e.g if you wanted to change the links for cpanel and/or webmail, you could use the hook in the thread below...

 

http://forum.whmcs.com/showthread.php?104894-Login-to-cPanel-amp-Webmail-on-Client-Product-Details&p=432807#post432807

 

you would create a .php file within the /includes/hooks/ folder and add the above code to it - when you refresh the page, the links should change to those specified in the hook.

 

btw - I suppose you could edit sidebar.tpl to tweak it, but I suspect the code required would not be worth considering - using the hook will be cleaner and easier. :idea:

 

it works perfectly

thanks

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