Installation guidelines

Prerequisites

The following PHP extensions must be activated with your PHP installation:

The following PHP settings must be set in php.ini:

  • allow_url_fopen to true
  • max_input_vars to 5000

Installing files

The module is not included by default into WHMCS’s distribution.

  1. Download the module. You will get an archive as .zip file.
  2. Extract the archive in your WHMCS installation directory.
  3. Ensure that the module is present in the following directory
    /modules/registrars/netim/

    As well as our widgets and addons in the following directories

    /modules/addons/netim_tld_manager/
    /modules/widgets/NetimAccount.php
    /modules/widgets/NetimOperations.php
  4. Download the last domain additional fields package. You will get an archive as .zip file
  5. Extract the archive in the netim’s module directory
    /modules/registrars/netim/

Setting additional domain fields

Additional domain fields are mandatory for many domain extensions that require additional information like a company number, a VAT number, personal ID number to register a domain.

By default, WHMCS defines a list of additional domain fields for built-in registrar modules.

However, NETIM supports more than 1000 extensions and uses its own additional fields which will be used only if NETIM is defined as the default registrar.

  1. Edit the file (or create it if needed) /resources/domains/additionalfields.php
  2. Add the following lines
    <?php
    // Netim additionnal domain fields include(ROOTDIR."/modules/registrars/netim/additionaldomainfields.inc.php");
    ?>

    Caution: if the file is created, do not omit to add the regular <?php and ?> tags to enclose the PHP code.

The content to be added is:

<?php
include(ROOTDIR."/modules/registrars/netim/additionaldomainfields.v7.inc.php");
?>

Adding translations

WHMCS being a multilingual application, it is necessary to install module translations because it integrates both in the customer area and in the administrator area. In addition, our domain additional fields also require translations that must be installed for the order phase.

So, for each language enabled in WHMCS, you need to install the necessary translations. By default, we provide translations in  English, French and Spanish but, if you have others, you will have to carry out additional translations by your end.


For English

  1. For client area, create the file /lang/overrides/english.php
  2. Add the following lines:
    <?php 
      // Netim language pack 
      include(ROOTDIR."/modules/registrars/netim/lang/client/english.inc.php"); 
    ?>
  3. For admin area, create the file /admin/lang/overrides/english.php
  4. Add the following lines:
    <?php 
      // Netim language pack 
      include(ROOTDIR."/modules/registrars/netim/lang/admin/english.inc.php"); 
    ?>

Caution: if the file already exists, just add the content without the php tags.

For French

  1. For client area, create the file /lang/overrides/french.php
  2. Add the following lines:
    <?php 
      // Netim language pack 
      include(ROOTDIR."/modules/registrars/netim/lang/client/french.inc.php");
    ?>
  3. For admin area, create the file /admin/lang/overrides/french.php
  4. Add the following lines:
    <?php 
      // Netim language pack 
      include(ROOTDIR."/modules/registrars/netim/lang/admin/french.inc.php"); 
    ?>

Caution: if the file already exists, just add the content without the php tags.

For Spanish

  1. For client area, create the file /lang/overrides/spanish.php
  2. Add the following lines:
    <?php 
      // Netim language pack 
      include(ROOTDIR."/modules/registrars/netim/lang/client/spanish.inc.php"); 
    ?>
  3. For admin area, create the file /admin/lang/overrides/spanish.php
  4. Add the following lines:
    <?php 
      // Netim language pack 
      include(ROOTDIR."/modules/registrars/netim/lang/admin/spanish.inc.php"); 
    ?>

Caution: if the file already exists, just add the content without the php tags.

For other languages

  1. Override languages of your choice by creating the corresponding files (See http://docs.whmcs.com/Language_Overrides)
  2. Copy the content of existing ones (for example english ones)
  3. Translate in the corresponding language

There are no translations for the administration area and the client area, only the additional fields.

The content to be added into /lang/overrides/english.php is:

<?php
  // Netim language pack
  include(ROOTDIR."/modules/registrars/netim/english.inc.php");
?>

The content to be added into /lang/overrides/french.php is:

<?php
  // Netim language pack
  include(ROOTDIR."/modules/registrars/netim/french.inc.php");
?>