How to block the "Host Button"

Alligatoras

Administrator
Mar 31, 2016
2,570
12
2,857
381
Hello people. I would like to know if there is any way to block the change of this button for any user.
I have an example command that I use to block editing of the number of slots for any user. https://support.teamspeakusa.com/in...prevent-customers-from-increasing-their-slots

I await.
For every server you have already created just remove the following permissions of the server admin group or any group that has it assigned!
For the new servers you just need to remove it from the server admin template (you need the admin server query account to edit templates)
Permission name: b_virtualserver_modify_hostbutton
 

Kleberstoff

Knowledge Seeker
VIP
Dec 29, 2015
308
214
158
For every server you have already created just remove the following permissions of the server admin group or any group that has it assigned!
For the new servers you just need to remove it from the server admin template (you need the admin server query account to edit templates)
Permission name: b_virtualserver_modify_hostbutton

and in addition to this, you can also run a php script every few minutes. (Got a new script to do)
I'll be releasing them when they are tested and can be confirmed working and stable.
 

Norvik

Retired Staff
Contributor
Jul 18, 2015
635
588
157
and in addition to this, you can also run a php script every few minutes. (Got a new script to do)
I'll be releasing them when they are tested and can be confirmed working and stable.

Actually not that hard using the TeamSpeak 3 PHP Framework.
PHP:
<?php
    $teampspeakData = (object) array(
        'host' => 'localhost',
        'nameQuery' => 'serveradmin',
        'nameDisplay' => 'R4P3',
        'password' => '1234567',
        'portQuery' => '10011',
        'portServer' => '9987'
    );

    require_once("libraries/TeamSpeak3/TeamSpeak3.php");
    $ts3_ServerInstance = TeamSpeak3::factory("serverquery://" . $teampspeakData->nameQuery . ":" . $teampspeakData->password . "@" . $teampspeakData->host . ":" . $teampspeakData->portQuery . "/?nickname=" . $teampspeakData->nameDisplay);
    foreach($ts3_ServerInstance as $ts3_VirtualServer)
    {
        $ts3_VirtualServer->modify(array(
            "virtualserver_hostbutton_tooltip" => "example.com",
            "virtualserver_hostbutton_url" => "http://www.example.com",
            "virtualserver_hostbutton_gfx_url" => "http://www.example.com/example.png"
        ));
    }
?>
 
Top