Jump to content

monsterit

Member
  • Content Count

    61
  • Joined

  • Last visited

Community Reputation

-1 Poor

About monsterit

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi All, How would I go about monitoring websites for uptime? I know i can run a script which either pings the site or the server using cron but wondered if anyone has an idea. I looked at blue rabbit's monitoring and they want an extortionate amount to buy their plugin we only have 5 sites we need to monitor.
  2. Hi, We want to use whmcs for all our accountancy needs. is there a module that we can use in order todo this? I have looked at the market place but the only one i've seen is cloudaccounts by cloudastrix however their demo is no longer working. We don't want to go to xero, qb or sage online. we need suppliers, ledgers, wages and expenses.
  3. How can we add a section on services page for a change log, such as a text edit/notes bit?
  4. HI, Does anyone know how to add a function in support where we can make a changelog for each server/service we have? As we often update servers/website and what it all in one place.
  5. Hi how can we change the invoice text instead of say Domain Renewal how can we amend to say Domain Name Renewal. and Hosting renewal instead of just hosting. Thank you in advance.
  6. Hi, We are getting completely random POP3 Connection Error emails. We are using 8.2.0 and it is connecting to Office 365. Everything works perfect it imports the emails and send replies correctly. But we get this random email. Are we able to disable this notification please? Our cron looks like this: */5 * * * * /usr/bin/php -q /home/*******/*************/*********/crons/pop.php --email-report=0 >/dev/null 2>&1 I've omitted the root path for security reasons.
  7. the primary invoice needs send as permission. That was the issue.
  8. Hi All, At the moment we are using WCAP, WCOP plugins for wordpress and that works great. However customers cannot click on cpanel, edit emails etc which you can do directly in whmcs. Is there API's or functions we can use within wordpress to replicate this? Or even I framing on the exsisting plugin?
  9. Sorry to jump on this thread but i'm having the exact same issue. Please see the images i've setup but it's still not sending emails from the support department, (it is for invoices etc).
  10. Great thank you. I've changed a part below too as it was clients, so changed that to count. 🙂 <?php add_hook('AdminHomeWidgets', 1, function() { return new InvoicesWidget(); }); use WHMCS\Carbon; use WHMCS\Clients; use WHMCS\Module\AbstractWidget; use WHMCS\Module\Queue as ModuleQueue; use WHMCS\Orders; use WHMCS\Billing\Invoice; use WHMCS\User\Client; /** * Badges Widget. * * @copyright Copyright (c) WHMCS Limited 2005-2018 * @license https://www.whmcs.com/license/ WHMCS Eula */ class InvoicesWidget extends \WHMCS\Module\AbstractWidget { protected $title = "Invoices Widget"; protected $description = 'Invoices'; protected $columns = 3; protected $weight = 0; protected $wrapper = false; protected $cache = false; protected $cacheExpiry = 120; protected $draggable = false; public function getData() { $incomeStats = getAdminHomeStats('income'); foreach ($incomeStats['income'] as $key => $value) { $incomeStats['income'][$key] = $value->toPrefixed(); } return array( 'activeCount' => Client::where('status', '=', 'Active')->count('id'), 'unpaidInvoices' => Invoice::unpaid()->count('id'), 'overdueInvoices' => Invoice::overdue()->count('id'), 'incomestats' => $incomeStats, ); } public function generateOutput($data) { $activeCount = (int) $data['activeCount']; $unpaidInvoices = (int) $data['unpaidInvoices']; $overdueInvoices = (int) $data['overdueInvoices']; $incomeThisMonth = $data['incomestats']['income']['thismonth']; return <<<EOF <div class="row home-status-badge-row"> <div class="col-sm-3"> <div class="health-status-block status-badge-red clearfix"> <div class="icon"> <a href="clients.php?status=Active"> <i class="fas fa-user-friends"></i> </a> </div> <div class="detail"> <a href="clients.php?status=Active"> <span class="count">{$activeCount}</span> <span class="desc">Active Clients</span> </a> </div> </div> </div> <div class="col-sm-3"> <div class="health-status-block status-badge-purple clearfix"> <div class="icon"> <a href="invoices.php"> <i class="fas fa-file-invoice-dollar"></i> </a> </div> <div class="detail"> <a href="invoices.php?status=Unpaid"> <span class="count">{$unpaidInvoices}</span> <span class="desc">Unpaid Invoices</span> </a> </div> </div> </div> <div class="col-sm-3"> <div class="health-status-block status-badge-teal clearfix"> <div class="icon"> <a href="invoices.php"> <i class="fas fa-business-time"></i> </a> </div> <div class="detail"> <a href="invoices.php?status=Overdue"> <span class="count">{$overdueInvoices}</span> <span class="desc">Overdue Invoices</span> </a> </div> </div> </div> <div class="col-sm-3"> <div class="health-status-block status-badge-gold clearfix"> <div class="icon"> <a href="modulequeue.php"> <i class="fas fa-wallet"></i> </a> </div> <div class="detail"> <a href="modulequeue.php"> <span class="count">{$incomeThisMonth}</span> <span class="desc">Income This Month</span> </a> </div> </div> </div> </div> EOF; } } all working perfectly. Thank you once again.
  11. Sorry ignore the above one. i've managed to put alot in but for some reason it's only showing one module counting and i cannot put my finger on it. see the image below. Heres my very long winded coding section. (complete). <?php add_hook('AdminHomeWidgets', 1, function() { return new InvoicesWidget(); }); use WHMCS\Carbon; use WHMCS\Clients; use WHMCS\Module\AbstractWidget; use WHMCS\Module\Queue as ModuleQueue; use WHMCS\Orders; use WHMCS\Billing\Invoice; use WHMCS\User\Client; /** * Badges Widget. * * @copyright Copyright (c) WHMCS Limited 2005-2018 * @license https://www.whmcs.com/license/ WHMCS Eula */ class InvoicesWidget extends \WHMCS\Module\AbstractWidget { protected $title = "Invoices Widget"; protected $description = 'Invoices'; protected $columns = 3; protected $weight = 0; protected $wrapper = false; protected $cache = true; protected $cacheExpiry = 120; protected $draggable = false; public function getData() { $clients = new Clients(); $orders = new Orders(); $incomeStats = getAdminHomeStats('income'); foreach ($incomeStats['income'] as $key => $value) { $incomeStats['income'][$key] = $value->toPrefixed(); } return $incomeStats; return array( 'activeCount' => (int) Client::where('status', '=', 'Active')->count(), 'unpaidInvoices' => (int) Invoice::where('status', '=', 'Unpaid')->count(), 'overdueInvoices' => (int) Invoice::where('status', '=', 'Overdue')->count(), ); } public function generateOutput($data) { $activeClients = number_format((int) $data['activeCount']); $unpaidInvoices = (int) $data['unpaidInvoices']; $overdueInvoices = (int) $data['overdueInvoices']; $incomeThisMonth = $data['income']['thismonth']; return <<<EOF <div class="row home-status-badge-row"> <div class="col-sm-3"> <div class="health-status-block status-badge-green clearfix"> <div class="icon"> <a href="clients.php?status=Active"> <i class="fas fa-user-friends"></i> </a> </div> <div class="detail"> <a href="clients.php?status=Active"> <span class="count">{$activeClients}</span> <span class="desc">Active Clients</span> </a> </div> </div> </div> <div class="col-sm-3"> <div class="health-status-block status-badge-pink clearfix"> <div class="icon"> <a href="invoices.php"> <i class="fas fa-file-invoice-dollar"></i> </a> </div> <div class="detail"> <a href="invoices.php?status=Unpaid"> <span class="count">{$unpaidInvoices}</span> <span class="desc">Unpaid Invoices</span> </a> </div> </div> </div> <div class="col-sm-3"> <div class="health-status-block status-badge-orange clearfix"> <div class="icon"> <a href="invoices.php"> <i class="fas fa-business-time"></i> </a> </div> <div class="detail"> <a href="invoices.php?status=Overdue"> <span class="count">{$overdueInvoices}</span> <span class="desc">Overdue Invoices</span> </a> </div> </div> </div> <div class="col-sm-3"> <div class="health-status-block status-badge-cyan clearfix"> <div class="icon"> <a href="modulequeue.php"> <i class="fas fa-wallet"></i> </a> </div> <div class="detail"> <a href="modulequeue.php"> <span class="count">{$incomeThisMonth}</span> <span class="desc">Income This Month</span> </a> </div> </div> </div> </div> EOF; } }
  12. This is my whole output. <?php add_hook('AdminHomeWidgets', 1, function() { return new InvoicesWidget(); }); use WHMCS\Carbon; use WHMCS\Clients; use WHMCS\Module\AbstractWidget; use WHMCS\Module\Queue as ModuleQueue; use WHMCS\Orders; use WHMCS\Billing\Invoice; /** * Badges Widget. * * @copyright Copyright (c) WHMCS Limited 2005-2018 * @license https://www.whmcs.com/license/ WHMCS Eula */ class InvoicesWidget extends \WHMCS\Module\AbstractWidget { protected $title = "Invoices Widget"; protected $description = 'Invoices'; protected $columns = 3; protected $weight = 0; protected $wrapper = false; protected $cache = true; protected $cacheExpiry = 120; protected $draggable = false; public function getData() { $clients = new Clients(); $orders = new Orders(); return array( 'pendingOrders' => $orders->getPendingCount(), 'unpaidInvoices' => (int) Invoice::where('status', '=', 'Unpaid')->count(), 'overdueInvoices' => (int) Invoice::where('status', '=', 'Overdue')->count(), 'moduleQueueCount' => ModuleQueue::incomplete()->count(), ); } public function generateOutput($data) { $pendingOrders = (int) $data['pendingOrders']; $unpaidInvoices = (int) $data['unpaidInvoices']; $overdueInvoices = (int) $data['overdueInvoices']; $moduleQueueCount = (int) $data['moduleQueueCount']; return <<<EOF <div class="row home-status-badge-row"> <div class="col-sm-3"> <div class="health-status-block status-badge-green clearfix"> <div class="icon"> <a href="orders.php"> <i class="fas fa-shopping-cart"></i> </a> </div> <div class="detail"> <a href="orders.php?status=Pending"> <span class="count">{$pendingOrders}</span> <span class="desc">Active Clients</span> </a> </div> </div> </div> <div class="col-sm-3"> <div class="health-status-block status-badge-pink clearfix"> <div class="icon"> <a href="invoices.php"> <i class="fas fa-file-invoice-dollar"></i> </a> </div> <div class="detail"> <a href="invoices.php?status=Unpaid"> <span class="count">{$unpaidInvoices}</span> <span class="desc">Unpaid Invoices</span> </a> </div> </div> </div> <div class="col-sm-3"> <div class="health-status-block status-badge-orange clearfix"> <div class="icon"> <a href="invoices.php"> <i class="fas fa-business-time"></i> </a> </div> <div class="detail"> <a href="invoices.php?status=Overdue"> <span class="count">{$overdueInvoices}</span> <span class="desc">Overdue Invoices</span> </a> </div> </div> </div> <div class="col-sm-3"> <div class="health-status-block status-badge-cyan clearfix"> <div class="icon"> <a href="modulequeue.php"> <i class="fas fa-ban"></i> </a> </div> <div class="detail"> <a href="modulequeue.php"> <span class="count">{$moduleQueueCount}</span> <span class="desc">Pending Module Actions</span> </a> </div> </div> </div> </div> EOF; } } I can see unpaid invoices now but no over invoices. above is the code and below is my screen shot.
  13. im editing the badges-new.php but struggling with it. tbh.everytime i edit it i loose everything.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated