I am pretty sure he is talking about client Description!Hello m8,
I wrote a script for change to channel description. You could redevelop this script with a html/php form for a website. If you can not do that. I can write something for you in a few days.
My channel desc. editor script -> https://r4p3.net/threads/update-images-in-channel-description.2466/#post-21660
Sorry bro, my bad.I am pretty sure he is talking about client Description!
Don't worry, we won't kill you... yetSorry bro, my bad.
require_once("libraries/TeamSpeak3/TeamSpeak3.php");
$ts3_VirtualServer = TeamSpeak3::factory("serverquery://username:[email protected]:10011/?server_port=9987");
$type = $desc = $namexuid ='';
if (isset($_POST['change_desc']))
{
$type = $_POST['type'];
$desc = $_POST['desc'];
$namexuid = $_POST['namexuid'];
$changedesc = array("client_description=$desc");
if($type == "nick") { $client = $ts3_VirtualServer->clientGetByName($namexuid); $client->modify($changedesc);}
else if ($type == "uid") { $client = $ts3_VirtualServer->clientGetByUid($namexuid); $client->modify($changedesc);}
}
echo"<form method='post'><br/>
Search for client via <select name='type'>
<option value='nick'>Nick</option>
<option value='uid'>UID</option>
</select><br/><br/>
Name/UID: <input type='text' name='namexuid'><br/><br/>
Description: <input type='text' name='desc'><br/><br/>
<input type='submit' value='Change description' name='change_desc'>
</form><br/>";
Not working ERROR 500Here is a simple form for it. I wrote it few mins ago. (You can search for client by name/uid)
Enjoy PHP:require_once("libraries/TeamSpeak3/TeamSpeak3.php"); $ts3_VirtualServer = TeamSpeak3::factory("serverquery://username:[email protected]:10011/?server_port=9987"); $type = $desc = $namexuid =''; if (isset($_POST['change_desc'])) { $type = $_POST['type']; $desc = $_POST['desc']; $namexuid = $_POST['namexuid']; $changedesc = array("client_description=$desc"); if($type == "nick") { $client = $ts3_VirtualServer->clientGetByName($namexuid); $client->modify($changedesc);} else if ($type == "uid") { $client = $ts3_VirtualServer->clientGetByUid($namexuid); $client->modify($changedesc);} } echo"<form method='post'><br/> Search for client via <select name='type'> <option value='nick'>Nick</option> <option value='uid'>UID</option> </select><br/><br/> Name/UID: <input type='text' name='namexuid'><br/><br/> Description: <input type='text' name='desc'><br/><br/> <input type='submit' value='Change description' name='change_desc'> </form><br/>";
For me it does probably something wrong with your webserverNot working ERROR 500
@Nicer you forgot to say Him that this work with the ts3 php framework ^^ ...Not working ERROR 500
What exactly doesn't work?It doesn't work, Can u help me?
Looks cool man is that your own custom panel?
Here is a simple form for it. I wrote it few mins ago. (You can search for client by name/uid)
Enjoy PHP:require_once("libraries/TeamSpeak3/TeamSpeak3.php"); $ts3_VirtualServer = TeamSpeak3::factory("serverquery://username:[email protected]:10011/?server_port=9987"); $type = $desc = $namexuid =''; if (isset($_POST['change_desc'])) { $type = $_POST['type']; $desc = $_POST['desc']; $namexuid = $_POST['namexuid']; $changedesc = array("client_description=$desc"); if($type == "nick") { $client = $ts3_VirtualServer->clientGetByName($namexuid); $client->modify($changedesc);} else if ($type == "uid") { $client = $ts3_VirtualServer->clientGetByUid($namexuid); $client->modify($changedesc);} } echo"<form method='post'><br/> Search for client via <select name='type'> <option value='nick'>Nick</option> <option value='uid'>UID</option> </select><br/><br/> Name/UID: <input type='text' name='namexuid'><br/><br/> Description: <input type='text' name='desc'><br/><br/> <input type='submit' value='Change description' name='change_desc'> </form><br/>";
require_once("libraries/TeamSpeak3/TeamSpeak3.php");
$ts3_VirtualServer = TeamSpeak3::factory("serverquery://serveradmin:sadpass@ip:10011/?server_port=9987&blocking=0&nickname=NAME".mt_rand(1, 100)." LAST NAME");
$type = $desc = $namexuid ='';
if (isset($_POST['change_desc']))
{
$type = $_POST['type'];
$desc = $_POST['desc'];
$namexuid = $_POST['namexuid'];
$changedesc = array("client_description=$desc");
if($type == "nick") { $client = $ts3_VirtualServer->clientGetByName($namexuid); $client->modify($changedesc);}
else if ($type == "uid") { $client = $ts3_VirtualServer->clientGetByUid($namexuid); $client->modify($changedesc);}
}
echo"<form method='post'><br/>
Search for client via <select name='type'>
<option value='nick'>Nick</option>
<option value='uid'>UID</option>
</select><br/><br/>
Name/UID: <input type='text' name='namexuid'><br/><br/>
Description: <input type='text' name='desc'><br/><br/>
<input type='submit' value='Change description' name='change_desc'>
</form><br/>";
Or addright after initializing connectionPHP:$ts3_VirtualServer->selfUpdate(array('client_nickname'=>"My New Nickname"));
Fatal error: Uncaught exception 'TeamSpeak3_Adapter_ServerQuery_Exception' with message 'invalid clientID' in /home/teamspe1/domains/myserver/public_html/test/libraries/TeamSpeak3/Node/Server.php:763 Stack trace: #0 /home/teamspe1/domains/myserver/public_html/test/des.php(12): TeamSpeak3_Node_Server->clientGetByName('laweC2cXm+8Z+sj...') #1 {main} thrown in /home/teamspe1/domains/myserver/public_html/test/libraries/TeamSpeak3/Node/Server.php on line 763