Jump to content

Cody

Blesta Developers
  • Posts

    1,574
  • Joined

  • Last visited

  • Days Won

    74

Reputation Activity

  1. Like
    Cody got a reaction from Blesta Addons in Invoice Number Label In Proforma Pdf   
    @naja7host, why do you rely on modifying the core? You can easily create a new invoice template and simply extend the original template, without having to write much code.
     
    /components/invoice_templates/custom_invoice/custom_invoice_pdf.php
    <?php require_once '../default_invoice/default_invoice_pdf.php'; CustomInvoicePdf extends DefaultInvoicePdf {} /components/invoice_templates/custom_invoice/custom_invoice.php
    <?php require_once '../default_invoice/default_invoice.php'; require_once 'customer_invoice_pdf.php'; CustomInvoice extends DefaultInvoice {     public function __construct() { parent::__construct(); Language::loadLang("custom_invoice", null, dirname(__FILE__) . DS . "language" . DS); }     public function setMeta($meta) { parent::setMeta($meta);                  // Load different language for this template if given         if (isset($meta['language']))             Language::loadLang("custom_invoice", $meta['language'], dirname(__FILE__) . DS . "language" . DS);         $this->pdf = new CustomInvoicePdf("P", "px", $this->meta['paper_size'], true, 'UTF-8', false, $font);                  // Set the meta data to use for this invoice         $this->pdf->meta = $this->meta;     } } Then just supply your own custom language file, you can even extend the language:
     
    /components/invoice_templates/custom_invoice/language/en_us/custom_invoice.php
    <?php $lang['DefaultInvoice.invoice_id_code'] = "Number:"; $lang['DefaultInvoice.date_billed'] = "Date:";
  2. Like
    Cody got a reaction from Michael in I Get An Error Checking Out,sqlstate[23000] Please Help   
    Did you uninstall a module or remove a module record after already having created the package you are trying to add a service for? If so, you need to resave the package with the correct details.
  3. Like
    Cody got a reaction from Blesta Addons in How To Check If Client Has Subscription/package On Ordering   
    This reminds me of the Matrix, when Morpheus offers Neo the blue pill or the red pill. You can only choose one, and you only get one chance. There is no going back, no reordering.
     
    Would be cool if the Order plugin supported the ability (on the order form) to limit re-orders. Of course, it would only apply to that particular order form, and only to the products listed on that order form.
  4. Like
    Cody got a reaction from Michael in How To Check If Client Has Subscription/package On Ordering   
    This reminds me of the Matrix, when Morpheus offers Neo the blue pill or the red pill. You can only choose one, and you only get one chance. There is no going back, no reordering.
     
    Would be cool if the Order plugin supported the ability (on the order form) to limit re-orders. Of course, it would only apply to that particular order form, and only to the products listed on that order form.
  5. Like
    Cody got a reaction from Michael in User Password Stored In Cookie Instead Of Session Variable?   
    Sorry dude, I've got to close this. The original topic has been shown to be not a bug. If you have something else to report please open a new thread.
  6. Like
    Cody got a reaction from Michael in User Password Stored In Cookie Instead Of Session Variable?   
    Blesta DOES NOT store credentials of any kind in a cookie. The only thing Blesta will put in a cookie is the session ID.
  7. Like
    Cody got a reaction from Shyuan in Install Your Extension With Composer   
    We've recently released a Blesta extension installer so users of composer can install Blesta extensions into their Blesta installation.
     
    This makes it super easy to install open source Blesta extensions, or your own customer proprietary extensions using a private composer repository (such as satis).
     
    This installer supports the following extensions:
    Plugins Modules Merchant Gateways Non-merchant Gateways Invoice Templates Reports  
    See the instructions for usage in the README.
     
    Note that for Plugins, Modules and Gateways, the installer simply makes these extensions available in Blesta. You still need to complete installation in Blesta, like you would normally, for each of your companies.
  8. Like
    Cody got a reaction from Ken Ng in Install Your Extension With Composer   
    We've recently released a Blesta extension installer so users of composer can install Blesta extensions into their Blesta installation.
     
    This makes it super easy to install open source Blesta extensions, or your own customer proprietary extensions using a private composer repository (such as satis).
     
    This installer supports the following extensions:
    Plugins Modules Merchant Gateways Non-merchant Gateways Invoice Templates Reports  
    See the instructions for usage in the README.
     
    Note that for Plugins, Modules and Gateways, the installer simply makes these extensions available in Blesta. You still need to complete installation in Blesta, like you would normally, for each of your companies.
  9. Like
    Cody got a reaction from ariq01 in Install Your Extension With Composer   
    We've recently released a Blesta extension installer so users of composer can install Blesta extensions into their Blesta installation.
     
    This makes it super easy to install open source Blesta extensions, or your own customer proprietary extensions using a private composer repository (such as satis).
     
    This installer supports the following extensions:
    Plugins Modules Merchant Gateways Non-merchant Gateways Invoice Templates Reports  
    See the instructions for usage in the README.
     
    Note that for Plugins, Modules and Gateways, the installer simply makes these extensions available in Blesta. You still need to complete installation in Blesta, like you would normally, for each of your companies.
  10. Like
    Cody got a reaction from Michael in Distribute And Install Your Extensions With Composer   
    See my Post in the Extensions forum.
  11. Like
    Cody got a reaction from Paul in Install Your Extension With Composer   
    We've recently released a Blesta extension installer so users of composer can install Blesta extensions into their Blesta installation.
     
    This makes it super easy to install open source Blesta extensions, or your own customer proprietary extensions using a private composer repository (such as satis).
     
    This installer supports the following extensions:
    Plugins Modules Merchant Gateways Non-merchant Gateways Invoice Templates Reports  
    See the instructions for usage in the README.
     
    Note that for Plugins, Modules and Gateways, the installer simply makes these extensions available in Blesta. You still need to complete installation in Blesta, like you would normally, for each of your companies.
  12. Like
    Cody got a reaction from Paul in Release 3.5.3   
    Version 3.5.3 is now available. You can download it in the Client Area.

    This is a patch release that corrects issues with 3.5.0.

    Patching Blesta

    See Patching Blesta in the User Manual for instructions.

    Release Notes

    See Blesta Core - Version 3.5.3.

    See all Change Logs.
  13. Like
    Cody got a reaction from ariq01 in Release 3.5.3   
    Version 3.5.3 is now available. You can download it in the Client Area.

    This is a patch release that corrects issues with 3.5.0.

    Patching Blesta

    See Patching Blesta in the User Manual for instructions.

    Release Notes

    See Blesta Core - Version 3.5.3.

    See all Change Logs.
  14. Like
    Cody got a reaction from Blesta Addons in Release 3.5.3   
    Version 3.5.3 is now available. You can download it in the Client Area.

    This is a patch release that corrects issues with 3.5.0.

    Patching Blesta

    See Patching Blesta in the User Manual for instructions.

    Release Notes

    See Blesta Core - Version 3.5.3.

    See all Change Logs.
  15. Like
    Cody got a reaction from PauloV in Release 3.5.3   
    Version 3.5.3 is now available. You can download it in the Client Area.

    This is a patch release that corrects issues with 3.5.0.

    Patching Blesta

    See Patching Blesta in the User Manual for instructions.

    Release Notes

    See Blesta Core - Version 3.5.3.

    See all Change Logs.
  16. Like
    Cody got a reaction from Michael in Release 3.5.3   
    Version 3.5.3 is now available. You can download it in the Client Area.

    This is a patch release that corrects issues with 3.5.0.

    Patching Blesta

    See Patching Blesta in the User Manual for instructions.

    Release Notes

    See Blesta Core - Version 3.5.3.

    See all Change Logs.
  17. Like
    Cody got a reaction from Lucas in Update Geoip Database Weekly.   
    Yup, it's on todo list.
  18. Like
    Cody got a reaction from PauloV in 1 (One) Minute Cron Jobs :)   
    Yes that's what Blesta does now. I'm not stating that you can't have 1 minute cron jobs that work. I'm just saying, in practice, it's not really a good idea as the risk of a collision is high.
     
     
    Plus, why have 1 minute cron jobs when you have can SMTP polling every 15 seconds?
  19. Like
    Cody got a reaction from Michael in 1 (One) Minute Cron Jobs :)   
    Yes that's what Blesta does now. I'm not stating that you can't have 1 minute cron jobs that work. I'm just saying, in practice, it's not really a good idea as the risk of a collision is high.
     
     
    Plus, why have 1 minute cron jobs when you have can SMTP polling every 15 seconds?
  20. Like
    Cody got a reaction from Serendesk in 1 (One) Minute Cron Jobs :)   
    1 minute cron jobs are a bad idea. It's too easy for them to pile up and execute on top of each other.
     
    If the point is to pull email from SMTP/IMAP server in near real time, create a script that runs constantly and polls the SMTP/IMAP server every 30 to 60 seconds.
     
    For example:
    <?php while (true) { $window = 60; $start = microtime(true); // TODO: do stuff $runtime = microtime(true) - $start; // wait until we can run again... sleep(max(0, (int) $window - $runtime)); }
  21. Like
    Cody got a reaction from PauloV in 1 (One) Minute Cron Jobs :)   
    1 minute cron jobs are a bad idea. It's too easy for them to pile up and execute on top of each other.
     
    If the point is to pull email from SMTP/IMAP server in near real time, create a script that runs constantly and polls the SMTP/IMAP server every 30 to 60 seconds.
     
    For example:
    <?php while (true) { $window = 60; $start = microtime(true); // TODO: do stuff $runtime = microtime(true) - $start; // wait until we can run again... sleep(max(0, (int) $window - $runtime)); }
  22. Like
    Cody got a reaction from Michael in Change Links For Support   
    Hm. Blesta always added the base URI in the links. I don't think we made any changes around that recently.
     
    But I do like the idea of actions opening external URLs. I think that's something we could support.
     
    Could someone open a feature request?
  23. Like
    Cody got a reaction from RichardKit in Release 3.4.2   
    Version 3.4.2 is now available. You can download it in the Client Area.

    This is a patch release that corrects issues with 3.4.0.

    Patching Blesta

    See Patching Blesta in the User Manual for instructions.

    Release Notes

    See Blesta Core - Version 3.4.2.

    See all Change Logs.
  24. Like
    Cody got a reaction from RichardKit in Release 3.5.0-B3   
    Version 3.5.0-b3 is now available. You can download it in the Client Area.

    This is a BETA feature release. This release is not considered stable enough for production use. Please report any bugs in the 3.5 beta bug forum.

    Installing Blesta

    See Installing Blesta in the User Manual for instructions.

    Upgrading Blesta

    See Upgrading Blesta in the User Manual for instructions.

    Release Notes

    See Blesta Core - Version 3.5.0-b3.

    For older releases see all Change Logs.
  25. Like
    Cody got a reaction from marcel in Release 3.5.2   
    Version 3.5.2 is now available. You can download it in the Client Area.

    This is a patch release that corrects issues with 3.5.0.

    Patching Blesta

    See Patching Blesta in the User Manual for instructions.

    Release Notes

    See Blesta Core - Version 3.5.2.

    See all Change Logs.
×
×
  • Create New...