How to block the "Host Button"

Alligatoras

Administrator
Joined
Mar 31, 2016
Messages
2,570
Solutions
12
Reaction score
2,857
Points
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
Joined
Dec 29, 2015
Messages
308
Reaction score
214
Points
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
Joined
Jul 18, 2015
Messages
635
Reaction score
588
Points
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