Michael Posted February 16, 2014 Report Posted February 16, 2014 Thanks to the amazing Eric, I've found a way to get the username / password box showing if the user clicks the service row in the client area. He explained to me when doing a module for me that the module needs to grab the information with the "getClientServiceInfo" fucntion, and I managed to use the cPanel module from Blesta to implant the features. Go to: /components/modules/cpanelextended/cpanelextended.php Find: public function getClientServiceInfo($service, $package) { return null; } Replace it with: public function getClientServiceInfo($service, $package) { $row = $this->getModuleRow(); // Load the view into this object, so helpers can be automatically added to the view $this->view = new View("client_service_info", "default"); $this->view->base_uri = $this->base_uri; $this->view->setDefaultView("components" . DS . "modules" . DS . "cpanelextended" . DS); // Load the helpers required for this view Loader::loadHelpers($this, array("Form", "Html")); $this->view->set("module_row", $row); $this->view->set("package", $package); $this->view->set("service", $service); $this->view->set("service_fields", $this->serviceFieldsToObject($service->fields)); return $this->view->fetch(); } Save it. Now go to: /components/modules/cpanelextended/language/en_us/cpanelextended.php Find: // Basics $lang['Cpe.name'] = "cPanel Extended"; $lang['Cpe.module_row'] = "Server"; $lang['Cpe.module_row_plural'] = "Servers"; $lang['Cpe.module_group'] = "Server Group"; Now paste this underneath it: // Service fields $lang['CpanelExtended.service_info.domain'] = "Domain"; $lang['CpanelExtended.service_info.username'] = "Username"; $lang['CpanelExtended.service_info.password'] = "Password"; $lang['CpanelExtended.service_info.confirm_password'] = "Confirm Password"; $lang['CpanelExtended.service_info.server'] = "Hostname"; Now save it and you should see the information for their account just like the Blesta cPanel module. You don't get a login url though and since you get it from the manage -> Login to I thought there was no need to try and fix it. I've got the full download here for you, you just need to remove the cpanelextended folder and replace it with the one in the zip. It will only work on 3.1.x I believe due to that's the version I edited it on, feel free to try it on 3.0.x. Again big thanks to @secforus_ehansen and Blesta (@Paul, @Cody, @Tyson for this edit. Download: http://licensecart.com/public/cpanelextended-customedit.zip You can find the cpanelextended folder in /components/modules/ Preview: MemoryX2 1 Quote
Tyson Posted February 18, 2014 Report Posted February 18, 2014 The cPanel Extended module needs to be updated for v3.2 of Blesta, so I may just add this in as well. MemoryX2 and Michael 2 Quote
MemoryX2 Posted February 19, 2014 Report Posted February 19, 2014 That's nice!!!!!! Good job! I'm going to try and start using this module now I think Quote
Tyson Posted February 20, 2014 Report Posted February 20, 2014 This has been added into the cPanel Extended module as CORE-1057, and the updated version will be added to the cPanel Extended module thread for v3.2 of Blesta when the beta comes around. Michael 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.