• Hey Guest, we're evolving the future of TeaSpeak.
    You're invited to join the discussion here!

Release Channel Counter Script

Broenor

Member
Anyone here who knows PHP scripting? There is a channel counter php script but only counts the sub channel. Has anyone ever written to count the main channel?
 

WolverinDEV

TeaSpeak Team
Staff member
Administrator
Hey,
depending on your php skills its quite simple.
In general you could simply check for the parent channel id when listing all channels (cpid).
If its zero its a "main" channel else its a sub channel.
 

Broenor

Member
Hey,
depending on your php skills its quite simple.
In general you could simply check for the parent channel id when listing all channels (cpid).
If its zero its a "main" channel else its a sub channel.
https://github.com/Ondra3211/ts-channel-counter Can you do it for me then?

---- Automatically Merged Double Post ----

Because whoever made it to me didn't even know the main channel.

---- Automatically Merged Double Post ----

Can, you do it for me then modify script?
 
Last edited: