Jump to content

Free Teamspeak/Ventrilo alongside the gameserver - automation?


moony1234

Recommended Posts

VicToMeyeZR is correct, you add the option to the configuarble options section, with the options being numerical (obviously). In order for the value to be passed to TCA correctly the name of the option needs to be Voice Slots.

 

Also, under the module settings, add the value TEAMSPEAK to the Voice ID box.

 

Hope that helps :)

Link to comment
Share on other sites

  • 6 months later...

Yes it can be done, if you are using TCA for both TS and Vent. As posted earlier it is done in the configurable options with the VOICE ID. Just pass the TCA service name thru WHMCS ie Teamspeak Server|Teamspeak, Ventrilo Server|TCAxxxxxxxxxx

Link to comment
Share on other sites

Yes it can be done, if you are using TCA for both TS and Vent. As posted earlier it is done in the configurable options with the VOICE ID. Just pass the TCA service name thru WHMCS ie Teamspeak Server|Teamspeak, Ventrilo Server|TCAxxxxxxxxxx

 

Hi Doug,

 

Thanks, but I am still a tad confused. As the VOICE ID field in the TCAdmin advanced addon only allows for one VOICE ID, how am I going to pass a variable to it, IE Teamspeak or Ventrilo?

 

I can add the option to choose one of the other and easily set the slot count, but am not understanding how I am telling TCAdmin to setup Teamspeak or Ventrilo depending on which the client chooses on the order form.

 

Am I needing an individual order form depending if they want a additonal teamspeak server or additional Ventrilo server?

 

I really appreciate the help!

 

-Lane

Link to comment
Share on other sites

Lane, sorry I got tied up tonite and have not had time to look too close at this.

 

Trouble is explaining how I would attempt to do this :) I will know what I mean, but I doubt if anyone reading what I was going to write would :)

It looks like you would need to do a mixture of Custom Fields and Configurable Options, and i do not know how you are set up now.

 

Can you shoot me an email and maybe I can get with you on Vent or TS to try to explain my ideas that way?

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 months later...
  • 2 weeks later...

Hi Guys, for those ofg you still wondering how to do this, it is possible even if you arent using TCAdmin for both, or all your voice servers.

 

First of all, you need to edit your default_values.php file within the module files.

 

Find:

$billing_api_values["voice_id"] = $params["configoption4"];

 

replace it with:

$billing_api_values["voice_id"] = "ConfigOption:Voice Server";

 

This will allow you to create a selectable voice ID, instead of the text box one within the module itself.

 

Next create a Configurable option, with your voice servers available, ensure they are entered in the syntax below......

 

If using TCA for teamspeak & vent:

TEAMSPEAK|Teamspeak server,TCXXXXXXXXXXX|Vent Servers

 

If NOT using TCA for vent or other

TEAMSPEAK|Teamspeak server, |Vent Servers

 

The important thing to not with the example above is the space, or empty value being passed to TCAdmin for the Vent server. This will cause the automation of the voice server to fail if a vent server is selected, but the game server will still install.

 

You are then free to set up the server for the client manually. Obviously this doesn't solve how to automate the vent, mohawk setup etc, but it gets you close.

 

Hope that helps :D

Link to comment
Share on other sites

  • 4 months later...

Ok I am not sure if this works, someone confirm it.

 

Information on how it works:

 

There is a Configuration Option called: Voice Slots|Voice Server

The code will look into the Voice Slots array and get information on what the client selected.

 

EX: Teamspeak - 10 Slots

So the option would look like: ID_10|Teamspeak - 10 Slots

 

ID: the TC id within tcadmin

10: represents the slot number

 

Image Example

 

example_1.png

 

Now adding the php code to default values or your configuration file for tcadmin advanced

Just below

$billing_api_values = array();

 

add this

$ConfigOption_c = $params["configoptions"];

$id_slots = $ConfigOption_c['Voice Slots'];

if($id_slots != false){
$pieces = explode("_", $id_slots, 2); // At the first _ split data in two
$voiceID = $pieces[0];
$voiceSlots = $pieces[1];
$continue = true;
}

 

Then where

$billing_api_values["voice_id"] = $params["configoption4"];
$billing_api_values["voice_slots"] = $params["configoption6"];
$billing_api_values["voice_private"] = $params["configoption8"];
$billing_api_values["voice_branded"] = $params["configoption10"];
$billing_api_values["voice_datacenter"] = $params["configoption12"];
$billing_api_values["voice_hostname"] = $params["configoption14"];
$billing_api_values["voice_rcon_password"] = $params["configoption16"];
$billing_api_values["voice_private_password"] = $params["configoption18"];

 

replace it with

if(isset($continue)){//So errors wont come up
 $billing_api_values["voice_id"] = $voiceID;
 $billing_api_values["voice_slots"] = $voiceSlots;
 $billing_api_values["voice_private"] = $params["configoption8"];
 $billing_api_values["voice_branded"] = $params["configoption10"];
 $billing_api_values["voice_datacenter"] = $params["configoption12"];
 $billing_api_values["voice_hostname"] = $params["configoption14"];
 $billing_api_values["voice_rcon_password"] = $params["configoption16"];
 $billing_api_values["voice_private_password"] = $params["configoption18"];
}

 

NOTE:

 

For this to properly work you will still need to set the Voice Datacenter, Voice Hostname, Voice RCon Password under module settings.

 

Also note that if your ID contains an "_" it will fubar the code :D

Link to comment
Share on other sites

<?php

/*
tcadmin_advanced version 1.05
Copyright (c) 2009 Luis Alvarenga
http://www.tcadmin.com

Change Log
v1.05 : Added TS3 upload and download quota attributes
v1.04 : Values are no longet sent with HTML encoding
v1.03 : Service password is updated when using a custom field for the TCAdmin password.
v1.02 : Self signed certificates are supported.
v1.01 : Added support for WHMCS 3.8.1.
        Service password is updated correctly.
v1.0  : Initial release.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

if(count(get_included_files()) ==1) exit("Direct access not permitted.");

$billing_api_values = array();

/* CUSTOM CODE */
$customfields = $params["customfields"];
$ConfigOption_c = $params["configoptions"];

$id_slots = $ConfigOption_c['Voice Slots'];

if($id_slots != false){
$pieces = explode("_", $id_slots, 2); // At the first _ split data in two
$voiceID = $pieces[0];
$voiceSlots = $pieces[1];
$continue = true;
}


/* *************** */
/* Advanced Values */
/* *************** */

$billing_api_values["skip_page"]="1";

$billing_api_values["game_additional_slots"]="0";
$billing_api_values["game_additional_arguments"]="";
$billing_api_values["game_level"]="";

$billing_api_values["voice_additional_slots"]="0";
$billing_api_values["voice_additional_arguments"]="";
$billing_api_values["voice_upload_quota"]="";
$billing_api_values["voice_download_quota"]="";
$billing_api_values["voice_level"]="";

/* ************** */
/* Game Switching */
/* ************** */

$billing_api_values["switch_at_once"]=1;
$billing_api_values["game_id_switch_1"]="";
$billing_api_values["game_slots_switch_1"]="";
$billing_api_values["game_id_switch_2"]="";
$billing_api_values["game_slots_switch_2"]="";
$billing_api_values["game_id_switch_3"]="";
$billing_api_values["game_slots_switch_3"]="";
$billing_api_values["game_id_switch_4"]="";
$billing_api_values["game_slots_switch_4"]="";
$billing_api_values["game_id_switch_5"]="";
$billing_api_values["game_slots_switch_5"]="";
$billing_api_values["game_id_switch_6"]="";
$billing_api_values["game_slots_switch_6"]="";
$billing_api_values["game_id_switch_7"]="";
$billing_api_values["game_slots_switch_7"]="";
$billing_api_values["game_id_switch_8"]="";
$billing_api_values["game_slots_switch_8"]="";
$billing_api_values["game_id_switch_9"]="";
$billing_api_values["game_slots_switch_9"]="";
$billing_api_values["game_id_switch_10"]="";
$billing_api_values["game_slots_switch_10"]="";
$billing_api_values["game_id_switch_11"]="";
$billing_api_values["game_slots_switch_11"]="";
$billing_api_values["game_id_switch_12"]="";
$billing_api_values["game_slots_switch_12"]="";
$billing_api_values["game_id_switch_13"]="";
$billing_api_values["game_slots_switch_13"]="";
$billing_api_values["game_id_switch_14"]="";
$billing_api_values["game_slots_switch_14"]="";
$billing_api_values["game_id_switch_15"]="";
$billing_api_values["game_slots_switch_15"]="";
$billing_api_values["game_id_switch_16"]="";
$billing_api_values["game_slots_switch_16"]="";
$billing_api_values["game_id_switch_17"]="";
$billing_api_values["game_slots_switch_17"]="";
$billing_api_values["game_id_switch_18"]="";
$billing_api_values["game_slots_switch_18"]="";
$billing_api_values["game_id_switch_19"]="";
$billing_api_values["game_slots_switch_19"]="";
$billing_api_values["game_id_switch_20"]="";
$billing_api_values["game_slots_switch_20"]="";
$billing_api_values["game_id_switch_21"]="";
$billing_api_values["game_slots_switch_21"]="";
$billing_api_values["game_id_switch_22"]="";
$billing_api_values["game_slots_switch_22"]="";
$billing_api_values["game_id_switch_23"]="";
$billing_api_values["game_slots_switch_23"]="";
$billing_api_values["game_id_switch_24"]="";
$billing_api_values["game_slots_switch_24"]="";
$billing_api_values["game_id_switch_25"]="";
$billing_api_values["game_slots_switch_25"]="";

/* ************************** */
/* Client UserId and Password */
/* ************************** */

$billing_api_values["user_name"] = $params["username"];
$billing_api_values["user_password"] = $params["password"];


/* *************************************************************************************** */
/*                              DON'T CHANGE BELLOW THIS LINE                              */
/* *************************************************************************************** */


/* **************************************** */
/* Values found in the module settings page */
/* **************************************** */

$billing_api_values["game_package_id"] = $params["serviceid"];
$billing_api_values["voice_package_id"] = $params["serviceid"];
$billing_api_values["client_package_id"] = $params["serviceid"];

$billing_api_values["game_id"] = $params["configoption3"];
$billing_api_values["game_slots"] = $params["configoption5"];
$billing_api_values["game_private"] = $params["configoption7"];
$billing_api_values["game_branded"] = $params["configoption9"];
$billing_api_values["game_datacenter"] = $params["configoption11"];
$billing_api_values["game_hostname"] = $params["configoption13"];
$billing_api_values["game_rcon_password"] = $params["configoption15"];
$billing_api_values["game_private_password"] = $params["configoption17"];


if(isset($continue)){//So errors wont come up
 $billing_api_values["voice_id"] = $voiceID;
 $billing_api_values["voice_slots"] = $voiceSlots;
 $billing_api_values["voice_private"] = $params["configoption8"];
 $billing_api_values["voice_branded"] = $params["configoption10"];
 $billing_api_values["voice_datacenter"] = $params["configoption12"];
 $billing_api_values["voice_hostname"] = $params["configoption14"];
 $billing_api_values["voice_rcon_password"] = $params["configoption16"];
 $billing_api_values["voice_private_password"] = $params["configoption18"];
}

/* ****************** */
/* Client Information */
/* ****************** */

$billing_api_values["client_id"] = $params["clientsdetails"]["userid"];
$billing_api_values["user_email"] = $params["clientsdetails"]["email"];
$billing_api_values["user_fname"] = $params["clientsdetails"]["firstname"];
$billing_api_values["user_lname"] = $params["clientsdetails"]["lastname"];
$billing_api_values["user_address1"] = $params["clientsdetails"]["address1"];
$billing_api_values["user_address2"] = $params["clientsdetails"]["address2"];
$billing_api_values["user_city"] = $params["clientsdetails"]["city"];
$billing_api_values["user_state"] = $params["clientsdetails"]["state"];
$billing_api_values["user_zip"] = $params["clientsdetails"]["postcode"];
$billing_api_values["user_country"] = $params["clientsdetails"]["country"];
$billing_api_values["user_phone1"] = $params["clientsdetails"]["phonenumber"];
$billing_api_values["user_phone2"] = "";

/* ****************************** */
/* Billing API Login and Password */
/* ****************************** */
$billing_api_values["response_type"] = "text";
$billing_api_values["tcadmin_username"] = $params["serverusername"];
$billing_api_values["tcadmin_password"] = $params["serverpassword"];

?>

Link to comment
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

  • Who's Online   0 Members, 0 Anonymous, 7 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use