Install NETIM Registrar Module
Contents |
Pre-requisites
The module connects NETIM' system using the API. SOAP functions must be enabled:
http://www.php.net/manual/fr/book.soap.php
Multibyte Strings are used, mb_string functions must be enabled:
http://www.php.net/manual/en/book.mbstring.php
Using the NETIM TLD Manager addon with hundreds of extensions:
Increase max_input_vars to 5000 in php.ini
Downloading the module
The module is not included by default into the software package.
You can download it here Get NETIM Registrar module
Installing files
You must extract the files from the archive in your WHMCS installation directory
One done, you will find:
/modules/registrars/netim/ /modules/widget/netim.php /includes/hooks/netim.php
Setting additional domain fields
By default, WHMCS defines a list of additionnal domain fields for built-in registrar modules.
Additional domain fields are mandatory for many domain extensions that require additional information like a company number, a VAT number, ...
NETIM uses its own additional fields which will be used only if NETIM is defined as the default registrar
If you are running WHMCS 6.x
Edit the file /includes/additionaldomainfields.php
Append the following lines at the end of the file
// Netim additionnal domain fields include(ROOTDIR."/modules/registrars/netim/additionaldomainfields.v6.inc.php");
If you are running WHMCS 7+
Edit the file (or create it if needed) /resources/domains/additionalfields.php
Add the following lines
// Netim additionnal domain fields include(ROOTDIR."/modules/registrars/netim/additionaldomainfields.v7.inc.php");
Additional domain fields come with translations that you also need to install. For each language you have activated in WHMCS, you will need to override language files in order to add the texts of our fields. By default, we provide translations in English and French.
For English
Create the file /lang/overrides/english.php
Add the following lines
<?php // Netim language pack include(ROOTDIR."/modules/registrars/netim/english.inc.php"); ?> Caution: if the file already exists, just add the content without the php tags
For French
Create the file /lang/overrides/french.php
Add the following lines
<?php // Netim language pack include(ROOTDIR."/modules/registrars/netim/french.inc.php"); ?> Caution: if the file already exists, just add the content without the php tags
For other languages
Override languages of your choice by creating a corresponding file in /lang/overrides/ (See http://docs.whmcs.com/Language_Overrides)
Copy into it the additional domain fields values corresponding to the extensions you sell (Copy from our module english.inc.php)
Translate in the corresponding language
Enabling synchronisation
Domain synchronization is performed by WHMCS cron job.
Nevertheless, WHMCS does not know the result of all operations, especially those that are processed asynchronously.
Synchronization of asynchronous operations must therefore be handled separately. When the case occurs, the NETIM internal transaction number is recorded in the "subscription Id" field of the domain and a synchronization script (netim_opesync.php) is then necessary to process them.
Manually
You can call into your web browser at the following URL http://URL/modules/registrars/netim/netim_opesync.php
Automatically
You must schedule the script /path_to_whmcs_directory/modules/registrars/netim/netim_opesync.php for example every 10 minutes
For linux, edit your crontab and add the following line
For module version >= 2.6
*/10 * * * * php /path_to_whmcs_directory/modules/registrars/netim/netim_opesync.php
For users of module < 2.6
In older versions, the script performs all synchronizations (domains and pending operation)
*/10 * * * * php /path_to_whmcs_directory/modules/registrars/netim/netimsync.php