Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Auto-Login to cPanel/Plesk from My Services #36

Open
mrburgercheese opened this issue Sep 10, 2021 · 2 comments
Open

[Bug] Auto-Login to cPanel/Plesk from My Services #36

mrburgercheese opened this issue Sep 10, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@mrburgercheese
Copy link

Before reporting a bug

Action Hook File Name

AutoLoginToAnyPanelFromMyServices.php

Describe the Bug

After i edit client area products.tpl like the post. i got view on whmcs like this

https://i.imgur.com/qAeoKNh.jpg

To Reproduce

Expected behavior

Affected Version

  • WHMCS [8.1.0]
  • PHP [ 7.4]

Screenshots

https://i.imgur.com/qAeoKNh.jpg

Additional context

our script with view problem

https://pastebin.com/1k52NWyE

please more advice

thanks

@mrburgercheese mrburgercheese added the bug Something isn't working label Sep 10, 2021
@LosBooom
Copy link

Hello.

You should check your templates/{YOUR_TEMPLATE}/clientareaproducts.tpl file.
Due to the fact that you are using a column with SSL, the header of the table in your case will look something like this:

<table id="tableServicesList" class="table table-list hidden">
    <thead>
        <tr>
            <th></th>
            <th>{$LANG.orderproduct}</th>
            <th>{$LANG.clientareaaddonpricing}</th>
            <th>{$LANG.clientareahostingnextduedate}</th>
            <th>{$LANG.clientareastatus}</th>
            <th>{$LANG.manage}</th>
            <th class="responsive-edit-button" style="display: none;"></th>
        </tr>
    </thead>

@mrburgercheese
Copy link
Author

mrburgercheese commented Sep 13, 2021

it was done

on thead i used

<thead> <tr> <th></th> <th>{lang key='orderproduct'}</th> <th>{lang key='clientareaaddonpricing'}</th> <th>{lang key='clientareahostingnextduedate'}</th> <th>{lang key='clientareastatus'}</th> <th> Login Panel </th> </tr> </thead>

on foreach i added

<td class="text-center"> {if $kt_autologin[$service.id]} <div class="btn-group btn-group-sm plesk-login" style="width:60px;"> <a href="clientarea.php?action=productdetails&id={$service.id}&autologin=1" target="_blank" class="btn btn-primary btn-xs" alt="Click to Login Panel" title="Click to Login Panel" style="padding: 2px 5px;"><i class="fa fa-sign-in fa-fw" aria-hidden="true"></i></a> </div> {/if} </td>

and it's work

Picture :
image

Thank's for the hook's its very useful.
😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants