Jump to content

xyzulu

Member
  • Posts

    454
  • Joined

  • Last visited

  • Days Won

    7

xyzulu last won the day on July 12 2023

xyzulu had the most liked content!

About xyzulu

Recent Profile Visitors

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

xyzulu's Achievements

Senior Member

Senior Member (3/3)

37

Reputation

1

Community Answers

  1. Now that ioncube loaders support php 8.2, will WHMCS be supporting php 8.2 anytime soon? (8.1 is now EOL) @WHMCS John
  2. It works for me still.. I am using this hook (below). Might you be using a custom admin template perhaps? <?php # Stats Info Bar for v8 Blend # Written by brian! use WHMCS\Database\Capsule; use WHMCS\Billing\Invoice; use Carbon\Carbon; function admin_v8_infobar_hook($vars) { if ($vars['template'] == "blend") { $pendingstatuslist = Capsule::table('tblorderstatuses')->where('showpending','1')->pluck('title'); $pendingorders = Capsule::table('tblorders')->whereIn('status',$pendingstatuslist)->count(); $overdueinvoices = Invoice::overdue()->count(); $awaitingreplylist = Capsule::table('tblticketstatuses')->where('showawaiting','1')->pluck('title'); $ticketsawaiting = Capsule::table('tbltickets')->whereIn('status',$awaitingreplylist)->where('merged_ticket_id','0')->count(); $current_time = Carbon::now()->translatedFormat("l, j F Y, H:i"); $headerreturn = '<div style="margin: 0; padding: 5px; background-color: #1a4d80; display: block; width: 100%; max-height: 20px;"> <div style="text-align: center; color: #fff; font-size: .8em; margin: 0;"> <a href="orders.php?status=Pending" style="color: #fff;"><span style="font-weight: 700; color: #fc0;">'.$pendingorders.'</span> '.AdminLang::trans('stats.pendingorders').'</a> | <a href="invoices.php?status=Overdue" style="color: #fff;"><span style="font-weight: 700; color: #fc0;">'.$overdueinvoices.'</span> '.AdminLang::trans('stats.overdueinvoices').'</a> | <a href="supporttickets.php" style="color: #fff;"><span style="font-weight: 700; color: #fc0;">'.$ticketsawaiting.'</span> '.AdminLang::trans('stats.ticketsawaitingreply').'</a> </div> </div>'; return $headerreturn; } } add_hook("AdminAreaHeaderOutput",1,"admin_v8_infobar_hook");
  3. /clients.. /admin.. Just remove the '/clients' from the start of the rewrite directives
  4. WHMCS works wonderfully on Nginx (faster at the least), however WHMCS don't provide enough documentation. You can find all the tools you need to put things together yourself using Google, but I wanted to start this thread (and hopefully keep it updated) to keep track of the latest directives required. I'm not trying to teach you how to use Nginx or how to configure it. WHMCS will load and install just fine, but you will run into a few links that don't work in the admin and client side. At the least you need to include the following directives (including a block of the /vendor folder, which WHMCS do actually provide directions on ) : https://gist.github.com/xyzulu/dbe2762c131b7bf3fbfc67056a565ae0 .. if you don't know where to use these directives, then Nginx and WHMCS probably isn't for you. If you have any suggestions on better directives, or run into and issues please let me know here.
  5. I've dug into this subject, with a little help from here: Just in case more people search for this, I have also updated and provided a "vanilla" list of the nginx rules required here: https://gist.github.com/xyzulu/dbe2762c131b7bf3fbfc67056a565ae0 It would be good for WHMCS to support Nginx better.. a simple list of these rules in the documentation would be enough.. but anyway.
  6. For client login, just add something like: location ~ /whmcs/admin/client/?(.*)/login/?(.*)$ { rewrite ^/(.*)$ /whmcs/admin/index.php?rp=/client/?(.*)/login/$1; }
  7. I always run a manual update via cli , see: https://help.whmcs.com/m/updating/l/1465032-updating-whmcs-on-the-command-line Though, step one in the update directions is wrong (I've notified WHMCS before), you need to do something like: rsync -auvh src/ dest/ instead
  8. Any ideas about adjusting this behaviour? Currently with 2FA enabled, and a Google account linked the customer still needs to provide the 2FA code after login (using Google account). Seems a little over the top?
  9. Why not purchase a template for WHMCS? There are a few well known developers on this community that produce some excellent work allowing you to customize your install very easily.
  10. Check your server time... not just php.. though the cron runs on a the php cli time.. and not the php (web) time.
  11. 1. https://help.whmcs.com/m/updating 2. https://docs.whmcs.com/License_Information
  12. Reactivate the payment module. Then, deactivate it.. this time choose the new payment gateway customers using the one you are deactivating should be using.
  13. You should be able to upgrade to any version.. I'd got for the latest stable (8.5 at this moment) Do a test upgrade in a dev environment to see how it works out.
×
×
  • 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