Activating Module


  1. Download Module archive from HostBill Licenses Portal
  2. Extract archive contents in your main HostBill directory
  3. In your HostBill: Proceed to "Settings -> Modules -> Hosting Modules -> Inactive"
  4. Click "Activate" next to "TCAdmin 2" module

    Ensure you have billing API enabled in your TCAdmin 2 Settings - learn more

Connecting HostBill with TCAdmin 2 


  1. Proceed to "Settings -> Apps -> Add new App"
  2. From Applications list select "TCAdmin 2"
  3. Enter your admin username, password, TCAdmin 2 server IP and TCAdmin 2 port.
  4. Verify entered credentials by clicking "Test Connection"
  5. Save Changes

Adding TCAdmin 2 Product


 

    1. In HostBill go to Settings > Products & Services, and Add new order page
    2. From Order Types select "Other Services"
    3. Enter your orderpage name, select orderpage template. Save Changes

    4. Add new product in new orderpage. Provide product name, setup price, Save Changes.

    5. In product configuration section proceed to "Connect with App", select "TCAdmin 2" and App server created in previous steps.

 

    6. Setup configuration values for this product:

    7. Setup Client Functions:
        Under Client Functions you can control what features customer will have access to in client portal, by clicking "Enable/Disable" next to it.
        Use "Edit" button to adjust function appearance in client portal.

 

 


 

Custom Config File, custom API values

 


In some cases you might need to set different API values or execute custom code for a specific game. To use different config files for a game you can create a new text file with .php extension in the includes/modules/Hosting/tcadmin2/configs directory

<?php
  include('default.php');
  //Your code here
?>

For game servers:

$data["gamevar_VariableName"] = "value";


For voice servers:

$data["voicevar_VariableName"] = "value";


Minecraft example:

$data["gamevar_Xms"] = "2048";
$data["gamevar_Xmx"] = "2048";

 

The following example sends a different game id depending the location selected by the client

 

<?php
include('default.php');
switch ($data["game_datacenter"])
{
case "1":
  $data["game_id"] = 11;
  break;
case "2":
  $data["game_id"] = 12;
  break;
}
?>

 

Reseller Packages

 


 

To create reseller packages leave all the game and voice information blank. Create new config file as described above with these lines:

 

<?php
  include('default.php');
 $data["role_id"]="3"; //The reseller role id to assign to the user.
 $data["package_id"]="1"; //The reseller package id to assign to the user.


Troubleshooting