Teamspeak Php Change Sort of Subchannel

Yousef

Active Member
Nov 16, 2017
36
9
83
Hello ,

I Have This Channels

A
[SUB]A1
[SUB]A2
[SUB]A3

i wanna to change order [SUB]A3 to First Order in A ...
 

FromLondon

Honk Honk
TeamSpeak Developer
VIP
May 20, 2016
264
107
136
This reply might be not usefull, but anyway look at the output from `channellist` command
With that you can get understandingc how to reorder specified channel
 

kalle

high minded
Contributor
Oct 28, 2015
411
253
178
PHP:
$subChannel = $ts3->channelCreate(array(
        "channel_name" => "[SUB]A3",
        "channel_topic" => "[SUB]A3",
        "channel_codec" => TeamSpeak3::CODEC_SPEEX_ULTRAWIDEBAND,
        "channel_codec_quality" => 0x08,
        "channel_flag_permanent" => true,
        "cpid" => $cid, 
        "channel_order" => "0"
        ));

Or make channel order with channelMove()
 

Yousef

Active Member
Nov 16, 2017
36
9
83
PHP:
$subChannel = $ts3->channelCreate(array(
        "channel_name" => "[SUB]A3",
        "channel_topic" => "[SUB]A3",
        "channel_codec" => TeamSpeak3::CODEC_SPEEX_ULTRAWIDEBAND,
        "channel_codec_quality" => 0x08,
        "channel_flag_permanent" => true,
        "cpid" => $cid,
        "channel_order" => "0"
        ));

Or make channel order with channelMove()

Hello thank you for your reply but when i use channelmove() say invild channel id
 

kalle

high minded
Contributor
Oct 28, 2015
411
253
178
Hello thank you for your reply but when i use channelmove() say invild channel id
Make sure that you get right channel id, or error like that will pop out. Or post your code, we can help you better with code example.
 
Top