Search our documentation...

Simply enter what you are looking for!

WHMCS Free Domains Manager :: Installation

First, you will need to login to your client area and download your copy of “WHMCS Free Domains Manager“.

From the client’s area left menu click “Services” -> “My Services“. Open the “View Details” box by click the arrow on the right, and click “Downloads“, in the following screen click the “Download” link.

Unzip the file, and edit it with a simple code editor (notepad++ is recommended).

Set your desired settings – exclude clients / domains / services, change email template, set department id.

Upload it to your WHMCS hooks folder (“includes/hooks“).

That’s all !

Code examples –

In the given example, a ticket will be opened in department id 4, without any special excludes.

function serverFreeDomainsManagement_settings()
{
	return array(
		'exclude_clients'	=> array(), 
		'exclude_domains'	=> array(), 
		'exclude_services'	=> array(),
		'ticket_subject' 	=> 'Free Domains Managment',
		'ticket_pre_message' 	=> "*** THIS IS AN AUTOMATED MESSAGE ***\n\n\nFollowing, is a
list of free domains assigned to clients that doesn't apply our free domains policy.\n\n",
		'ticket_dept_id'	=> 4,
		'ticket_priority'	=> 'Low',
	);
}

In the given example, a ticket will be opened in department id 4, with the following exeptions – user ids 22,666,235 will be ignored, domain “testdomain.com” will be ignored.

function serverFreeDomainsManagement_settings()
{
	return array(
		'exclude_clients'	=> array(22,666,235),
		'exclude_domains'	=> array('testdomain.com'), 
		'exclude_services'	=> array(),
		'ticket_subject' 	=> 'Free Domains Managment',
		'ticket_pre_message' 	=> "*** THIS IS AN AUTOMATED MESSAGE ***\n\n\nFollowing, is a
list of free domains assigned to clients that doesn't apply our free domains policy.\n\n",
		'ticket_dept_id'	=> 4,
		'ticket_priority'	=> 'Low',
	);
}