Jump to content
  • 0

RE-Creating the "C-Panel Logins" link that was removed prior to 4.11.2


turner2f

Question

Hello Support,

In version 4.0.1  a client could login to their Blesta account - - > Click the " Manage " button - - > and be taken to a page where they could manage their services.

On that page there WAS  a link within the left-side navigation where they could access their C-Panel account and webmail.

The file responsible for this function WAS called  " tab_client_login.pdt " .

It was located in the   /components/modules/cpanel/views/default    folder .

=================

 

After upgrading to Blesta 4.11.2 ,

1) - I see the " tab_client_login.pdt " was removed from the folder

2) - And the “C-Panel Logins” Link was also removed from the left-side navigation menu

 

=================

 

So I RE-Created this link  that was originally a part of  Blesta in version 4.0.1

1ST ) - I RE-inserted the " tab_client_login.pdt " from my former install ( from version 4.0.1 ) into the folder located at   /components/modules/cpanel/views/default   



2ND ) - Then I added the following code to LINE 14 of the " cpanel.php " file located at   /components/modules/cpanel/language/en_us

$lang['Cpanel.tab_client_login'] = 'CPanel Logins';

So that it looks like . . .

12. $lang['Cpanel.tab_client_stats'] = 'Web Stats & Usage';
13. $lang['Cpanel.tab_client_actions'] = 'Actions';
14. $lang['Cpanel.tab_client_login'] = 'CPanel Logins';

 

3RD ) - And finally I added the following code to LINE 62 of the " cpanel.php " file located at  /components/modules/cpanel

tabClientLogin' => Language::_('Cpanel.tab_client_login', true)

So that it looks like . . .

57.    public function getClientTabs($package)
58.    {
59.        return [
60.            'tabClientActions' => Language::_('Cpanel.tab_client_actions', true),
61.            'tabClientStats' => Language::_('Cpanel.tab_client_stats', true),
62.            'tabClientLogin' => Language::_('Cpanel.tab_client_login', true)
63.        ];
64.    }




The result is that I have successfully created a link within the left-side navigation menu that links to . . .

https://support.mywebsitename.com/clientcntr/services/manage/136/tabClientLogin/

[ See Attached Screenshot ]

. . .  BUT  . . .
 


I cannot get it to successfully link to the " tab_client_login.pdt "  file inside the folder located at . . .  

/components/modules/cpanel/views/default

In other words, when I click on the " CPanels Login " link, it just stays on the same page at . . .

https://support.pigomultimedia.com/clientcntr/services/manage/136

________________________________

 

NOTE : I am just trying to RE-create a function that was originally in Blesta 4.0.1, ( but was later removed at some point by versoin 4.11.2 )


Q1) - How do I get the " CPanels Login " link to connect and actually display the interface from the " tab_client_login.pdt "  file ?


Thanks in advance.

Please help.

 

 

re_created_cpanels_logins_link.jpg

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

tab_client_login.pdt has never existing in the official cPanel module.

Here's all of the files that were included with the cPanel module in version 4.0.1:

[root@goshen cpanel]# tree ./
./
├── apis
│   └── cpanel_api.php
├── composer.json
├── cpanel.php
├── language
│   └── en_us
│       └── cpanel.php
└── views
    └── default
        ├── add_row.pdt
        ├── admin_service_info.pdt
        ├── client_service_info.pdt
        ├── edit_row.pdt
        ├── images
        │   └── logo.png
        ├── manage.pdt
        ├── tab_client_actions.pdt
        ├── tab_client_stats.pdt
        └── tab_stats.pdt

6 directories, 13 files

An SSO powered login has since been added to cPanel by clicking the cPanel service row to expand the section, not under the "Manage" link, though we are open to adding it there also.. if you want to create a request.

Link to comment
Share on other sites

  • 0

@Paul

Fantastic.

As a client, I would not know to click on the bar that is listing my package/service so that it dynamically un-folds to see a "log-in" link .

-------------

Yes. Please add a "C-Panel Login"  link within the left-navigation of the " manage " area.

It is more likely to be found in that area since it is more obvious ( IMO ) .

 

Thanks in advance.

 

Link to comment
Share on other sites

  • 0

@Paul

I posted a NEWER request at . . .

https://requests.blesta.com/topic/add-an-sso-powered-c-panel-login-link-to-the-manage-area-for-client-front-end

But also . .

this request was already posted a few years ago at . . .

https://requests.blesta.com/topic/need-a-c-panel-login-link-inside-the-client-c-panel-manage-area

 

You commented on that ticket by saying . . .

Quote

Good idea. This would likely be part of a cPanel module overhaul to add extended functionality. I like the SSO recommendation as well .    ~ Paul

 

Link to comment
Share on other sites

  • 0
On 9/21/2020 at 8:55 AM, turner2f said:

Or maybe just add a Tool Tip via a rollover so the client knows to click the bar.

It's just missing a very basic UI element which has been an industry standard for years upon years when it comes to accordions or alike... the plus sign! Even the most basic user will recognise the plus sign as meaning "this element is expandable" and then the minus sign to contract it again. it's a simple convention but makes a world of difference.

For my latest project launching soon I'm using a table plugin in Wordpress and this is how the expandable UI element looks over there:

1279228262_Screenshot2020-09-22at17_59_47.thumb.png.9cc0df47a6a0d865295387a2524271d2.png

I'm also using an accordion on my custom blesta order template which again utilises the classic UI element to communicate expandability.
1177444627_Screenshot2020-09-22at18_15_12.thumb.png.87f8202ebf0a826499cfbb70f27600be.png

so Blesta just needs to figure out the best way to implement the plus and minus signs in their current table design. as the Manage button is on the right then it would probably be best to have the new UI element on the left.

Link to comment
Share on other sites

  • 0

@niyo  @Paul


I agree.

Just adding a  " + "  and a  " - "  sign would be great for identifying the accordian as being clickable for expanding / contracting

This would be great for BOTH Desktop and Mobile versions of the interface.

Thanks for sharing.

Hopefully it will make its way into a future update.

 

Please vote this up at . . .

https://requests.blesta.com/topic/need-a-tool-tip-to-see-the-extra-billing-details-on-client-dashboard

and at  . . .

https://requests.blesta.com/topic/need-a-tool-tip-to-see-the-c-panel-login-on-client-dashboard

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
Answer this question...

×   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.

Loading...
×
×
  • Create New...