Jump to content

V8.80 Client Home Login to cPanel Option to be Removed, HELP PLEASE URGENT!!!


Recommended Posts

Hi, I informed in WHMCS Ticket and they informed me to post here.  Please help me asap. Very urgent.


In version 8.8 I found that there is no way to remove login to cPanel option in clients area, users part. See image Attached. I marked there. Can you please tell me how to remove those? If needed any hook then can you please give me the whole code please? I don't know advance level coding. Just basic I know. Help me. I don't want to give access to cPanel to my users.

1.png

Link to comment
Share on other sites

Not an effective way; it will only hide the login button, and it may also hide the login button for other services as well. Place this hook in includes/hooks/hide-login-button.php.

dev-test.jpg.230212ee2800f659c41fb1487f6f7af7.jpg

 

<?php

// Hook by DemoTiger & PreMadeKB to hide Login to cPanel button.
add_hook('ClientAreaHeadOutput', 1, function($vars) {
    
    if ($vars['filename'] == 'clientarea') {
        $css = '<style>
                   .btn-group-secondary.btn-group-sm.btn-group {
                        display: none !important;
                    }
                </style>';
        return $css;
    }
});

 

Warning: This will only 'hide' the button. You can still log in by overriding the css style using browser extensions or developer tools.

 

Edited by DemoTiger
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