Jump to content

Patty

Member
  • Posts

    455
  • Joined

  • Last visited

  • Days Won

    1

Patty last won the day on March 31 2015

Patty had the most liked content!

About Patty

Recent Profile Visitors

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

Patty's Achievements

Senior Member

Senior Member (3/3)

4

Reputation

  1. Tks for your reply. I"m using the latest verstion. This is a functionality that should be added to the admin, or at least not be hard coded. Lots of gateways need that feature.
  2. Have you found a way to do this and make it work with Hipercard and other cards?
  3. Did you get it to work with Cielo API 3.0? I have this payment gateway but it's not accepting Hipercard. Any help with this?
  4. Tks for your reply and suggestion, Brian. I don't attach the PDF file to the invoice and the way that I set it up they will have to access the invoice to get the payment information. I just want to know when they do it.
  5. Hey, brian. Sorry it took me so long to reply. WHMCS logs when client accesses the client area, I don't know if it would log access to a given page.
  6. Hi there. I'm not a coder, but I'd like to change the Client Activity widget to list only clients who actually viewed the invoice page. How do I go about doing that? Can somebody shed a light? TIA for any help! Here's the original widget code: <?php namespace WHMCS\Module\Widget; use Carbon\Carbon; use WHMCS\Module\AbstractWidget; use WHMCS\User\Client; /** * Client Activity Widget. * * @copyright Copyright (c) WHMCS Limited 2005-2016 * @license http://www.whmcs.com/license/ WHMCS Eula */ class ClientActivity extends AbstractWidget { protected $title = 'Client Activity'; protected $description = 'Recent online clients.'; protected $weight = 70; protected $cache = false; protected $cacheExpiry = 300; protected $requiredPermission = 'List Clients'; public function getData() { return array( 'activeCount' => (int) Client::where('status', '=', 'Active')->count(), 'onlineCount' => (int) Client::where('lastlogin', '>', Carbon::now()->subHour()->toDateTimeString())->count(), 'recentActiveClients' => Client::orderBy('lastlogin', 'desc')->limit(5) ->get(array('id', 'firstname', 'lastname', 'companyname', 'ip', 'lastlogin'))->toArray(), ); } public function generateOutput($data) { $activeClients = number_format((int) $data['activeCount']); $usersOnline = number_format((int) $data['onlineCount']); $clients = array(); foreach ($data['recentActiveClients'] as $client) { // If there is no lastlogin setting, or its been set to a timestamp like 0000-00-00, we show N/A $clientLastLogin = (empty($client['lastlogin']) || strpos($client['lastlogin'], '0000') === 0) ? "N/A" : Carbon::createFromFormat('Y-m-d H:i:s', $client['lastlogin'])->diffForHumans(); $clients[] = '<div class="client"> <div class="last-login">' . $clientLastLogin . '</div> <a href="clientssummary.php?userid=' . $client['id'] . '" class="link">' . $client['firstname'] . ' ' . $client['lastname'] . ($client['companyname'] ? ' (' . $client['companyname'] . ')' : '') . '</a> <a href="http://www.geoiptool.com/en/?IP=' . $client['ip'] . '" target="_blank" class="ip-address">' . $client['ip'] . '</a> </div>'; } $clientOutput = implode($clients); return <<<EOF <div class="icon-stats"> <div class="row"> <div class="col-sm-6"> <div class="item"> <div class="icon-holder text-center color-pink"> <a href="clients.php?status=Active"> <i class="pe-7s-user"></i> </a> </div> <div class="data"> <div class="note"> <a href="clients.php?status=Active">Active Clients</a> </div> <div class="number"> <a href="clients.php?status=Active"> <span class="color-pink">{$activeClients}</span> <span class="unit">Active</span> </a> </div> </div> </div> </div> <div class="col-sm-6"> <div class="item"> <div class="icon-holder text-center color-green"> <i class="pe-7s-smile"></i> </div> <div class="data"> <div class="note"> Users Online </div> <div class="number"> <span class="color-green">{$usersOnline}</span> <span class="unit">Last Hour</span> </div> </div> </div> </div> </div> </div> <div class="clients-list"> {$clientOutput} </div> EOF; } }
  7. Great job once again, Brian! It helped, but I had to add all custom status to the badge (I have 3 custom status). It's not the best, but it works for now. Tks!! I hope they can fix it for good on the next version.
  8. Hey Chris. It's the same in all themes. Below is a screenshot using Blend. No customization, just the order status that I created to sign it as Scheduled
  9. It's still inaccurate on v7.2.3 I have 3 open orders. Two of them are pending, the other one uses a custom status I created to show service has been scheduled. The badge widget only shows 2 pending orders. But the count in the top of the page is showing 3 pending orders correctly. Why this difference and how to make the widget show the correct order count?
  10. Still working fine on v7.2.3 Just the mouse over effect showing the amounts is not working.
  11. Tks for the tip, HostXNow, but I don't want to lose all files, just the very old ones. Maybe a sql command to delete the attachment if the date is older than d/m/y?? How would that be? I'm no programmer, sorry for my ignorance. Andrew, I don't see any error on the Activity Log.
×
×
  • 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