Jump to content

aonap

Regular Collector
  • Content Count

    24
  • Joined

  • Last visited

Community Reputation

1 Neutral

About aonap

  • Rank
    Junior Member

Recent Profile Visitors

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

  1. aonap

    NGINX

    Hi, how do you make the urls work in NGINX mode. What code do we need to make the WHMCS urls friendly work? Thanks
  2. The following hook is in place (see below) however the reset button does not seem to work: <?php if (!defined("WHMCS")) die("This file cannot be accessed directly"); function hook_ForceEveryoneToLogin($vars) { $client = Menu::context('client'); $validpages = array("login","dologin","clientarea","pwreset"); if (!$client && !in_array($vars['filename'],$validpages)) { header("Location: login.php"); exit; } } add_hook("ClientAreaPage", 1, "hook_ForceEveryoneToLogin"); Thank!
  3. It is working! Thank you. Only issue now is when we get the admin ticket replies, it is still showing the full email. We are trying to save space on the DB server, so how do you get rid of the content below? In the support ticket at the backend it shows still parts of the email: From: Sent: To: Subject:
  4. The code is not working 😕
  5. It's not playing any sound and have checked on multiple devices.
  6. Sorry don't understand here.
  7. @brian! I think it needs to be implemented ASAP, it will really help hosting companies to eliminate bogus accounts/save time/resources. We manually check every order anyway, despite having Maxmind on the system.
  8. @brian! What would the hook be to ensure that clients don't close any Abuse/Billing tickets?
  9. @wp4all Thank you. That is strange, we do have CDN in place with Stackpath, I will get in touch with them.
  10. <?php if (!defined("WHMCS")) die("This file cannot be accessed directly"); /********************* Reply Above This Line Settings *********************/ function ReplyAboveThisLine_settings() { return array( 'breakrow' => "*** Reply above this line ***", // this line will be added to the selected email. * all content below this line will be deleted from the client reply. ); } /********************/ function ReplyAboveThisLine_cleanReply($vars) { $settings = ReplyAboveThisLine_settings(); if(strpos($vars['message'], $settings['breakrow']) !== false) { list($message) = explode($settings['breakrow'], $vars['message']); Capsule::connection()->statement("UPDATE tblticketreplies SET message = '" . mysql_real_escape_string(trim($message)) . "' WHERE id = '" . intval($vars['replyid']) . "'"); } } function ReplyAboveThisLine_addBreakRow($vars) { return ReplyAboveThisLine_settings(); } add_hook('EmailPreSend', 0, 'jetserverReplyAboveThisLine_addBreakRow'); add_hook('TicketUserReply', 0, 'jetserverReplyAboveThisLine_cleanReply'); use Illuminate\Database\Capsule\Manager as Capsule; ?> Is the above correct?
  11. This does not work on the latest WHMCS? Suggestions?
  12. I'm also keen on knowing how to prevent enders from reopening closed tickets.
  13. Hi, Is there a hook to stop end users from closing tickets from abuse or billing teams? I've just been recommended the following plugin, but wondered if there is a simple hook. Thank you
  14. Would it be possible to get an updated hook? It would be useful to have it for when tickets regarding billing/abuse we would not want the end user to be able to close them.
×
×
  • 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