Change the channel description TeamSpeak

Status
Not open for further replies.

mradar

Member
Mar 18, 2016
5
0
36
I am Iranian and I do not speak a lot of English :|
Hi, I 'm Mehdi I wanted a script that will display the channel game server profile
Please Help Me
 

KickMeDown

Member
May 23, 2016
4
2
38
Try this :)

Code:
<?php
if(isset($_POST['submit']))
{
    require_once("libraries/TeamSpeak3/TeamSpeak3.php");
    $desc = $_POST['desc'];
    $ch = $_POST['ch'];
    $ts3_VirtualServer = TeamSpeak3::factory("serverquery://username:password@localhost:10011/?server_port=9987");
    $ts3_VirtualServer->channelGetByName($ch)->modify(array("channel_description=$desc"));
}


?>

<form method="post">
  Channel Name:<br>
  <input type="number" name="ch" value="">
  <br>
  Description:<br>
  <textarea rows="5" cols="50" name="desc" value="<?php echo ?>">
  <br><br>
  <input type="submit" name="submit" value="Change">
</form>
 

MadKill

Active Member
Sep 1, 2015
190
47
66
Title of Topic : Change the channel description TeamSpeak

You ask: I wanted a script that will display the channel game server profile

You want edit the description, or display the descrition on channel ?


 

Najsr

Moderator
TeamSpeak Developer
Apr 23, 2016
483
249
167
Try this :)
Code:
<?php
if(isset($_POST['submit']))
{
    require_once("libraries/TeamSpeak3/TeamSpeak3.php");
    $desc = $_POST['desc'];
    $ch = $_POST['ch'];
    $ts3_VirtualServer = TeamSpeak3::factory("serverquery://username:password@localhost:10011/?server_port=9987");
    $ts3_VirtualServer->channelGetByName($ch)->modify(array("channel_description=$desc"));
}


?>

<form method="post">
  Channel Name:<br>
  <input type="number" name="ch" value="">
  <br>
  Description:<br>
  <textarea rows="5" cols="50" name="desc" value="<?php echo ?>">
  <br><br>
  <input type="submit" name="submit" value="Change">
</form>
You had a small mistake in code :p
PHP:
<?php
if(isset($_POST['submit']))
{
    require_once("libraries/TeamSpeak3/TeamSpeak3.php");
    $desc = $_POST['desc'];
    $ch = $_POST['ch'];
    $ts3_VirtualServer = TeamSpeak3::factory("serverquery://username:password@localhost:10011/?server_port=9987");
    $ts3_VirtualServer->channelGetByName($ch)->modify(array("channel_description=$desc"));
}


?>

<form method="post">
  Channel Name:<br>
  <input type="text" name="ch" value="">
  <br>
  Description:<br>
  <textarea rows="5" cols="50" name="desc">
  <br><br>
  <input type="submit" name="submit" value="Change">
</form>
 

mradar

Member
Mar 18, 2016
5
0
36
Title of Topic : Change the channel description TeamSpeak

You ask: I wanted a script that will display the channel game server profile

You want edit the description, or display the descrition on channel ?

I need a script that game server profile in the channel description TeamSpeak Show
For example, the game server Call of Duty 6
 
Status
Not open for further replies.
Top