Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation since 03/25/2020 in all areas

  1. 1 point
    Getting the feeling I'm the only one seeing my posts here. 😉
  2. 1 point
  3. 1 point
    In 2012, when this was posted, it was free. Just shy of 8 years later, it isn't. 😉
  4. 1 point
    You could just disable the "Auto CC Processing" option for the client and then set the "Override Auto-Suspend" value accordingly. You'll just need to remember to reactivate the CC processing in a couple of months.
  5. 1 point
    you can upload files, via the Admin Area Client Summary page, and the client will be able to download them from their client area homepage. https://docs.whmcs.com/Clients:Summary_Tab#Files
  6. 1 point
    when a custom template fails, your first thought should always be to test your site using the Six template and see if the issue continues. the second thought should be to contact the theme's developers as a) you will have bought the theme and therefore usually be entitled to support from them, and b) they should know more about the theme than anyone else. when you look at the domain register page using Six, the Google Captcha feature is shown - but it's not shown when using ColorHost.... so disabling Google Captcha on the domainchecker page in general settings -> security might be a temporary fix, but I suspect the issue is really caused by the ColorHost theme being out of date for your installed WHMCS release.... contacting the developer to ensure you're using the correct version, or discussing the issue with them should be your next step. it's the same as above - when using Six, Google captcha is shown; when using ColorHost, it isn't - so disabling Google captcha in general settings -> security -> login forms might fix it - but the ColorHost template should be showing these captcha forms, so I can only assume that it needs updating...
  7. 1 point
    If you need any help sorting that out @gei, please let me know - I've done that for two large hosts now, one of them from any other registrar (which allows for consolidating varied portfolios) --> to the new one. Happy to answer any questions.
  8. 1 point
    Welcome to WHMCS.Community sheraz chaudhery! We're glad you're here please take some time to familiarise yourself with the Community Rules & Guidelines and take a moment to introduce yourself to other WHMCS.Community members in the Introduce Yourself Board.
  9. 1 point
    Welcome to WHMCS.Community Thierry! We're glad you're here please take some time to familiarise yourself with the Community Rules & Guidelines and take a moment to introduce yourself to other WHMCS.Community members in the Introduce Yourself Board.
  10. 1 point
    if we keep it simple and make it a bootstrap alert for now, then the hook code would be a variation of the one I posted in the thread below... you wouldn't particularly need a SQL query for this... <?php add_hook('ClientAreaHomepage', 1, function($vars) { $client = Menu::context('client'); $activeorders = $client->orders->where('status','Active')->count(); if ($client && $activeorders > 0) { return '<div class="text-center"><div class="alert alert-success" role="alert">You can order without fraud check - click <a href="cart.php">here</a>.</div></div><br />'; } }); so if the user has active orders, then an alert is shown on the homepage... if the user has no active orders, then the message alert isn't shown. ... and if you still want to make it into a homepage panel (widget), then the first three lines inside the hook code would be the same, you would just need to follow the panel examples in the docs...
  11. 1 point
    it looks good - though I don't think that it's using WHMCS any more. 🙂
  12. 1 point
    This error may point to a problem with session handling in your PHP configuration. If you'd like to submit a ticket we can help you confirm. In the off chance that your IP address changes frequently this could happen if there are no session handling issues, in which case you might need to check Setup > General Settings > Security tab > Disable Session IP Check to work around it.
  13. 1 point
    Preview: Code: use WHMCS\Database\Capsule; add_hook('AdminAreaHeaderOutput', 1, function($vars) { if ($vars['filename'] == 'invoices' AND $_GET['id']) { $Data = Capsule::select(Capsule::raw('SELECT id, type, relid FROM tblinvoiceitems WHERE invoiceid = "' . $_GET['id'] . '"')); $Data = json_encode($Data, true); $output .= <<<HTML <script type="text/javascript"> $(document).ready(function(){ var rel = {$Data}; var rows = $('.datatable td > input[name^="itemids"]').first().closest('tbody').children('tr'); $.each(rows, function(i,e){ $(e).children('*').last().clone().html('').insertBefore($(e).children('*').last()); }) rows.first().children('th').eq(-2).text('Meoooow!'); $.each(rel, function(i,e){ if (e.type == 'Hosting') { var url = 'clientsservices.php?id=' + e.relid; var faicon = 'fa-server'; } else if (e.type.includes('DomainRegister', 'DomainTransfer', 'Domain')) { var url = 'clientsdomains.php?id=' + e.relid; var faicon = 'fa-globe'; } if (url) { $('input[name^="itemids"][value="'+ e.id +'"]').closest('tr').children('*').eq(-2).html('<a href="'+ url +'" target="_blank"><i class="fas '+ faicon +'"></i></a>'); } else { $('input[name^="itemids"][value="'+ e.id +'"]').closest('tr').children('*').eq(-2).html('<img src="https://katamaze.com/templates/kata/img/stuff/nyan-cat.png" style="height: 27px;width: 100px;">'); } }) }) </script> HTML; return $output; } }); For domains there's the "globe" icon and for hosting accounts "server" one. You can do the same for coupons, late fees, upgrades etc.
×

Important Information

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