Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/29/2014 in all areas

  1. ServZoo

    Webhostingtalk

    I disagree completely with asking those mods to mod here. At the end of the day, Blesta is a commercial product (business.) What *appears* to be happening at WHT is not good business and if everything I've read is true, can be resolved by escalating. Inviting the folks over that appear to be causing the problem just in an effort to fix it is not the answer. Not to mention, modding for WHMCS and Blesta would be a HUGE conflict, if you ask me. WHT rules are very interesting (they seem to apply at will and vary by moderator.) I have not had any issues with them myself, but I've heard the stories. I post there for advertising, have a paid account, and that's it. I'm not a huge fan of biased actions in the least, which is why I limit myself the way I do.
    2 points
  2. Hello, As other users reported in the forum, this issue is making troubles for services that doesn't have proper provisioning modules. By doing the following changes, a Tab will appear at client's manage service page, showing all the service fields that have the public_ tag on their name. Instructions: 1. Open components/modules/universal_module/universal_module.php Find: private function isUrl($str) { return preg_match("#^\S+://\S+\.\S+.+$#", $str); } Add After: /** * Returns all tabs to display to a client when managing a service whose * package uses this module * * @param stdClass $package A stdClass object representing the selected package * @return array An array of tabs in the format of method => title. Example: array('methodName' => "Title", 'methodName2' => "Title2") */ public function getClientTabs($package) { return array( 'moreinfo' => array('name' => "More Info", 'icon' => "fa fa-gears") ); } /** * The More Info tab * * @param stdClass $package A stdClass object representing the current package * @param stdClass $service A stdClass object representing the current service * @param array $get Any GET parameters * @param array $post Any POST parameters * @param array $files Any FILES parameters * @return string The string representing the contents of this tab */ public function moreinfo($package, $service, array $get=null, array $post=null, array $files=null) { $row = $this->getModuleRow($package->module_row); $out = ''; $servicefields = array(); foreach ($row->meta as $key=>$value ) { if (strpos($key, "service_field_name") !== false) { // Here we match the service field label with their key and value foreach($service->fields as $field) { if($field->key == $value) { $name = 'service_field_label_' . str_replace('service_field_name_', '', $key); $servicefields[] = array("label" => $row->meta->$name, "key" => $value, "value" => $field->value); } } } } foreach($servicefields as $field) { // Filter out for showing only public fields if(strpos($field['key'], "public_") === 0 ) { $out .= "<p><b>". $field['label'] . ":</b> " . $field['value'] . "</p>"; } } return "<h4>Service Information</h4><br />" . $out ; } 2. Make sure that the service fields that you want to show to the client start with "public_" prefix Preview Setting up public service fields Service fields being shown on client's "Manage Service" page Download drop-in replacement file (if you don't want to manually add the above lines) (Only for Blesta 3.2.1): universal_module.php Caution: This file will be overwritten if you update Blesta and the Tab will disappear (there is no other risk or any service data loss). If you change the service field name of a existing field, the data will not be preserved (bug?) EDIT: This still works for Blesta 3.5.1. I'm not sure if it's still needed, but I'm already using it for my production blesta website so there's no way back
    1 point
  3. Hello The community LAST UPDATE : 23-08-2014 First i dont know if this is the correct forum to post ! another time we are happy to announce the release of the first professional Template for blesta called admin LTE , this Template is based in the adminLTE , is bootsrap of course (3.1.x) . to not talk so much i will let you with some screenshoot . Login Page Client Dashboard Client Other Pages when we get more time we will word in the admin side , but we need to add ability to select template for admin side like client side . any BUG/SUGGESTION port it in this thread . you can download it from github https://github.com/Blesta-Addons/adminlte just upload the folder adminlte inside the folder "app/views/client/" and select the template from admin area . THE BONUS : the color theme can be changed from admin side in look and feel , client section . if you like our work , thanks or donate
    1 point
  4. I think we could probably add a client group column to any report that has a Client # column. Then you could do, as Mike said, and filter using excel.
    1 point
  5. NW-Joshua

    Webhostingtalk

    Off topic completely - Portugal FTW Grande!
    1 point
  6. what, what, whaaaaat!!! Incredible work
    1 point
  7. A number of users have requested the ability to download invoice PDFs using the API. I've always said how easy it is to build a plugin to do this, so here it is. Actually, I took it a few steps further and made it more abstract than that. This plugin allows you to invoke any component in Blesta using the API, so it's quite powerful. Invoices are offered for download and stream through the browser using the InvoiceDelivery component. Documentation for this plugin can be found here.. component_api.zip
    1 point
  8. Michael

    Cron Job Not Working Any More

    on cPanel please use the following: Try: /usr/local/bin/php /home/username/public_html/billing/index.php cron Instead of /usr/bin/php /home/username/public_html/billing/index.php cron
    1 point
  9. I can understand that. But Blesta does not make data available to views that it doesn't use, since that would be a waste of resources. It sounds like your template customizations need to be supported through a plugin instead, but since you don't want to use a plugin, there is no proper alternative than to change core files to do what you want. That said, I would not recommend anyone do this for reasons already mentioned, but you could technically load a model in the view and call it: $obj = new stdClass(); Loader::loadModels($obj, array("Clients")); $client = $obj->Clients->get(1);
    1 point
  10. Tyson

    Pay Invoice With Credit?

    Credits are automatically applied to open invoices, starting with the oldest, until all credits, or no invoices, remain; per currency. By default, the cron does this every 5 minutes, and the interval can be changed under [settings] -> [Automation], "Apply Payments to Open Invoices".
    1 point
×
×
  • Create New...