Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/31/2022 in all areas

  1. @Blesta.Store you should definitely mind your words! Regardless if the topic is old I faced that issue now since I upgraded my Blesta now... Your responses are not acceptable. This is not kindergarten
    1 point
  2. I have updated the client_data plugin to also support Domain Counts and Support manager Pro ticket counts (still has default support manager counter as well) You may download it here. Here are examples of calls depending on which one you require for your theme. <?php $this->Javascript->setInline(' $(document).ready(function() { fetchCountServices(); }); function fetchCountServices() { $(this).blestaRequest("GET", "' . $this->Html->safe($this->base_url . "plugin/client_data/client_main/count_services/active") . '", null, function(data) { $("#services_count").html(data); }, null, {dataType:"json"}); } '); ?> <?php $this->Javascript->setInline(' $(document).ready(function() { fetchInvoices("open"); }); function fetchInvoices(status) { $(this).blestaRequest("GET", "' . $this->Html->safe($this->base_url . "plugin/client_data/client_main/count_invoices/") . '" + status, null, function(data) { $("#invoices_count").html(data); }, null, {dataType:"json"}); } '); ?> <?php $this->Javascript->setInline(' $(document).ready(function() { fetchCountTickets(); }); function fetchCountTickets() { $(this).blestaRequest("GET", "' . $this->Html->safe($this->base_url . "plugin/client_data/client_main/count_pro_tickets/open") . '", null, function(data) { $("#tickets_count").html(data); }, null, {dataType:"json"}); } '); ?> <?php $this->Javascript->setInline(' $(document).ready(function() { fetchCountDomains(); }); function fetchCountDomains() { $(this).blestaRequest("GET", "' . $this->Html->safe($this->base_url . "plugin/client_data/client_main/count_domains/") . '", null, function(data) { $("#domains_count").html(data); }, null, {dataType:"json"}); } '); ?> Sorry formatting went off by a bit. $("#div_id_to_replace_here") is what tells the ajax which div to update which ever Request you want should be added around the bottom of structure.pdt (i have seperated requests individually above) before <?php echo $this->Javascript->getInline();?
    1 point
×
×
  • Create New...