Jump to content

Hosting Package Username is missing from WHMCS client area.


bluesteam

Recommended Posts

Hi,

 

For some reason I cant seem to find the cpanel username of the clients hosting package when viewing their profile using "Login as a client".

 

My client called me and asked me what his username is and I told him to go look on his profile and he told me he could not find it and so I went to look and lo and behold, it wasn't there.

 

Is anyone else seeing this as well?

 

Thanks

Brett

Link to comment
Share on other sites

I've seen this a time or two, nothing really duplicated (ie: I can't figure out how it happened). You can always add this back to the profile though.

Go into WHM, look for the client, add the username back into the service tab.

WHM?? I'm talking about WHMCS. Am I missing something?
Link to comment
Share on other sites

For some reason I cant seem to find the cpanel username of the clients hosting package when viewing their profile using "Login as a client".

 

My client called me and asked me what his username is and I told him to go look on his profile and he told me he could not find it and so I went to look and lo and behold, it wasn't there.

 

is the issue occur with all cPanel clients or this client only?

Link to comment
Share on other sites

You need to get the cpanel username from somewhere. That is done via WHM.

Get it using the list accounts feature, then re-add it to WHMCS

WHMCS won't automatically re-add this for you

thats just it, the username is in WHMCS. I can see it from the admin backend but not on the front end anywhere. If I go to services -> my services and click on one of the clients services, I can't see the username anywhere at all.

 

It's happening for all clients. What am I missing???? Am I looking in the completely wrong place or what??

 

What I can tell you is if I can't find it how the hell will my clients find it if it is in a different place?

Link to comment
Share on other sites

 

WTFeck???? Is WHMCS for real?? Who on their right mind would remove such a vital feature? Someone mustve been on something when they decide that.

 

Thank you for the solution. I'm completely awestruck as I sit here!!!

Link to comment
Share on other sites

My apologies. I had a problem understanding what your original post was saying, I thought you mentioned that it was missing in admin.

 

The proposed solution is good, but you'll need to re-apply this every time you update. A more effective solution is a hook which should never need updating (if done appropriately). I've put one together here, which lists the following as a sidebar module.

 

 

  1. Username
  2. Password
  3. Domain
  4. IP Address
  5. Hostname
  6. NS1
  7. NS2

 

 

Here's the PHP code. Just save this as includes/hooks/whateveryouwant.php and the sidebar will show up any time the 'username' variable is active in WHMCS.

 

<?php
use WHMCS\View\Menu\Item as MenuItem;
use Illuminate\Database\Capsule\Manager as Capsule;

/* 

Add credentials to the end of all secondary sidebars. 
From http://www.whmcsguru.com
*/
add_hook('ClientAreaSecondarySidebar', 1, function (MenuItem $secondarySidebar)
{
/* Get the credentials. */
$service = Menu::context('service');
$username = "{$service->username}";
$serverid = "{$service->server}";
$domain = "{$service->domain}";
$password = "{$service->password}";
$server = Capsule::table('tblservers')->where('id', '=', $serverid)->pluck('hostname');
$ipaddress = Capsule::table('tblservers')->where('id', '=', $serverid)->pluck('ipaddress');
$name1 = Capsule::table('tblservers')->where('id', '=', $serverid)->pluck('nameserver1');
$name2 = Capsule::table('tblservers')->where('id', '=', $serverid)->pluck('nameserver2');

$password = decrypt($password);
/* If the username isn't empty let's show them! */
if ($username != '') {
/*
Add a panel to the end of the secondary sidebar for credentials.
Declare it with the name "credentials" so we can easily retrieve it
later.
*/
$secondarySidebar->addChild('credentials', array(
'label' => 'Service Information',
'uri' => '#',
'icon' => 'fa-desktop',
));
/* Retrieve the panel we just created. */
$credentialPanel = $secondarySidebar->getChild('credentials');
$credentialPanel->moveToBack();
/* Show the username. */
$credentialPanel->addChild('username', array(
'label' => $username,
'order' => 1,
'icon' => 'fa-user',
));

/* Show the password. */
$credentialPanel->addChild('password', array(
'label' => $password,
'order' => 2,
'icon' => 'fa-lock',
));
/* Show the password. */
$credentialPanel->addChild('domain', array(
'label' => $domain,
'order' => 3,
'icon' => 'fa-globe',
));
/*show the server IP*/
$credentialPanel->addChild('ip', array(
'label' => $ipaddress,
'order' => 4,
'icon' => 'fa-info',
));
/*show the server name*/
$credentialPanel->addChild('server', array(
'label' => $server,
'order' => 5,
'icon' => 'fa-server',
));

/*NS1*/
$credentialPanel->addChild('name1', array(
'label' => $name1,
'order' => 6,
'icon' => 'fa-info-circle',
));
/*NS2*/
$credentialPanel->addChild('name2', array(
'label' => $name2,
'order' => 7,
'icon' => 'fa-info-circle',
));
}
});

 

edit:

And yes, I agree, this is something that never , ever should have been removed

Link to comment
Share on other sites

My pleasure :)

It should be noted that the password is not really something that should be stored in WHMCS any longer as it's not needed after 6.x.. if that isn't displaying the password correctly, not to worry, the client can reset it from WHMCS.

If you are referring to single signon, not all customers know what that is and how to use it. So I just bring myself to agree that it is not required anymore. old school people still lean back on what they know. they know username and password...nothing else....If they cant find it they struggle for the next 30minutes scrounging through their email looking for their welcome email to get hold of the username and password. This should have been something gradually removed and not big bang, its gone.

 

If you're not referring to single signon, then what feature do I not know about?

 

I really appreciate your solution though....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