Teamspeak Php Change Sort of Subchannel

Yousef

Active Member
Joined
Nov 16, 2017
Messages
36
Reaction score
9
Points
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
Joined
May 20, 2016
Messages
264
Reaction score
107
Points
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
Joined
Oct 28, 2015
Messages
411
Reaction score
253
Points
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
Joined
Nov 16, 2017
Messages
36
Reaction score
9
Points
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
Joined
Oct 28, 2015
Messages
411
Reaction score
253
Points
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