- /m/04rlf Music
- /m/05fw6t Children's music
- /m/02mscn Christian music
- /m/0ggq0m Classical music
- /m/01lyv Country
- /m/02lkt Electronic music
- /m/0glt670 Hip hop music
- /m/05rwpb Independent music
#!/usr/bin/env python2.7 | |
# | |
# _ _ ___ _____ _ _____________ _____ _ _ _____ ___ _ _ | |
# | | | | / _ \/ __ \| | / /_ _| ___ \ _ | \ | |_ _|/ _ \ | \ | | | |
# | |_| |/ /_\ \ / \/| |/ / | | | |_/ / | | | \| | | | / /_\ \| \| | | |
# | _ || _ | | | \ | | | /| | | | . ` | | | | _ || . ` | | |
# | | | || | | | \__/\| |\ \ | | | |\ \\ \_/ / |\ |_| |_| | | || |\ | | |
# \_| |_/\_| |_/\____/\_| \_/ \_/ \_| \_|\___/\_| \_/\___/\_| |_/\_| \_/ | |
# ~ Tools For Hacking by Mr. SAGE |
If you’re using WHMCS to manage your cPanel shared servers, this is probably a request that you’ve received a few times. You have clients that are set up to pay invoices automatically from their credit cards, and they’d rather not receive the “Invoice Created” or “Invoice Payment Reminder” emails every month.
Normally WHMCS only allows you to disable these emails globally but, by making use of the EmailPreSend action hook, we can set up a list of clients not to receive these.
To get started just download the following script, change the file extension to .php
, edit it to set up the $client_ids
and place it in your WHMCS /includes/hooks/
directory
Please note, this script doesn’t disable only the automatically sent invoice notification emails, but also blocks manual sending of these for the selected clients.
(originally posted at http://whmscripts.net/whmcs/2011/disabling-invoice-creation-emails-in-whmcs-on-a-per-client-basis/)
<?php | |
if (!defined("WHMCS")) | |
die("This file cannot be accessed directly"); | |
use WHMCS\Database\Capsule; | |
function disable_00_invoices($vars) { | |
$merge_fields = array(); | |
$email_template_name = $vars['messagename']; # Email template name being sent |
<?php | |
if (!defined("WHMCS")) | |
die("This file cannot be accessed directly"); | |
use WHMCS\Database\Capsule; | |
function wb_mark_zero_invoices_paid(){ | |
//get all unpaid invoices | |
$unpaid_invoices = Capsule::table('tblinvoices')->where('status', 'Unpaid')->get(); | |
foreach( $unpaid_invoices as $inv ){ |
<?php | |
if (!defined("WHMCS")) | |
die("This file cannot be accessed directly"); | |
use WHMCS\Database\Capsule; | |
/* | |
* Copies account details from parent accounts to sub-accounts | |
*/ | |
add_hook('ContactAdd', 1, "wb_setup_sub_accounts"); |
123contactform | |
abacus | |
acquia | |
activecampaign | |
adobe | |
aerofs | |
airbnb | |
amazon | |
ancile | |
appcelerator |
<?php | |
/** | |
* WHMCS Admin paneli için Döviz / Altın kurları görüntüleme | |
* Murat Tahtacı | |
* 10.10.2018 | |
*/ | |
add_hook('AdminHomeWidgets', 1, function() { | |
return new DovizWidget(); | |
}); |
<?php | |
/* | |
Custom WHMCS Affiliate hook by craig@jucra.com | |
Date: 14th October 2018 | |
Stored in WHCMS: /includes/hooks/ | |
The WHMCS affiliate system is basic, very basic in terms of: affiliates can only | |
earn comissions based on orders they generate. |