Katamaze / WHMCS-Action-Hook-Factory

Free collection of Action Hooks, Reports and Modules to perfect your WHMCS
https://katamaze.com
MIT License
210 stars 84 forks source link

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

Open mrburgercheese opened 3 years ago

mrburgercheese commented 3 years ago

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

Screenshots

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

Additional context

our script with view problem

https://pastebin.com/1k52NWyE

please more advice

thanks

LosBooom commented 3 years ago

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 commented 3 years ago

it was done

on thead i used

`

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

on foreach i added

` {if $kt_autologin[$service.id]}

                    {/if}
                </td>`

and it's work

Picture : image

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