Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/21/2015 in all areas

  1. @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 points
  2. Hi We run Blesta behind haproxy, with haproxy handling the SSL and setting X-Forwarded-For header. No issues. Hope this helps. -Barry
    2 points
  3. Tyson

    Documentation Link Not Working

    Problems with a hypervisor today, so some sites may be slow or unresponsive.
    1 point
  4. Tutorial for DirectAdmin will be added sooner or later.
    1 point
  5. This could be accomplished with a plugin. For users being a proxy, it would require reliance on the X-Forwarderd-For header (which we are looking to support in a future version). But I think two-factor authentication is a much better solution that IP restriction.
    1 point
  6. Blesta makes no distinction between a page refresh and visiting a separate page. Your browser probably received the HTTP 403 header and loaded from the cache instead.
    1 point
  7. 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.
    1 point
  8. I think it's same way: http://www.blesta.com/forums/index.php?/topic/4117-prevent-loop-blesta-behind-loadbalancer-with-ssl-termination/?hl=termination
    1 point
  9. You mate have brains haha why didn't I think of that earlier on, but yeah it's due to Blesta needs newer Javascript, the theme needs older javascript. I did moan to the theme developer saying the slider / nav doesn't work on newer js but we've found the issue thanks to you mate, so stuck Temp fix: <?php if (strpos($_SERVER['REQUEST_URI'], "order") !== false){ ?> <script src="<?php echo $this->view_dir;?>javascript/jquery.min.js"></script> <script type="text/javascript" src="<?php echo $this->view_dir;?>javascript/bootstrap.min.js"></script> <?php }else{ ?> <script src="<?php echo $this->view_dir;?>js/jquery.min.js"></script> <script type="text/javascript" src="<?php echo $this->view_dir;?>js/bootstrap.min.js"></script> <?php } ?> But no nav unless shrink the screen haha.
    1 point
×
×
  • Create New...