Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Page 65 of 100 FirstFirst ... 1555636465666775 ... LastLast
Results 961 to 975 of 1498
  1. #961
    Join Date
    August 2014
    Posts
    32
    OK thanks, my fault. I used channelGroupClientList()

    Last 2 questions,
    how can I get not connected client object?
    clientGetByUid() - return object if client is connected only

    When I try get channels where client has group, if he has no group FW return database empty result set. I tried use try-catch block but same error:
    Code:
    try{
                $channels = $silex['ts3']->channelGroupClientList(null,null,192);
            }catch (TeamSpeak3_Exception $e){
                $channels = null;
            }
    
            var_dump($channels);
    Last edited by PituPl; August 25th, 2014 at 08:18 PM. Reason: second question

  2. #962
    Join Date
    June 2012
    Location
    Portugal
    Posts
    317
    You can use https://docs.planetteamspeak.com/ts3...7558b87d21991f but you need to know DB ID instead of UID

  3. #963
    Join Date
    August 2014
    Posts
    32
    Thanks but this return array, no object. I need object to use addServerGroup()

  4. #964
    Join Date
    June 2012
    Location
    Portugal
    Posts
    317
    With the client offline you can only use with DB ID as far as I know:

    https://docs.planetteamspeak.com/ts3...fccfeea2426dc7

  5. #965
    Join Date
    August 2014
    Posts
    32
    Thanks

    Last problem above. Why this return database empty result set if client has no channel groups?
    try{
    $channels = $silex['ts3']->channelGroupClientList(null,null,192);
    }catch (TeamSpeak3_Exception $e){
    $channels = null;
    }

    var_dump($channels);

  6. #966
    Join Date
    June 2012
    Location
    Portugal
    Posts
    317
    For what I see the 3rd param is to get channel groups for Client DB ID 192, so if he doesn't have any channel groups shouldn't it return empty like you say?

    Maybe I'm confused.

  7. #967
    Join Date
    August 2014
    Posts
    32
    In DB is client with client_id: 192.

  8. #968
    Join Date
    August 2014
    Posts
    32
    Last edited by PituPl; August 26th, 2014 at 02:39 AM.

  9. #969
    Join Date
    June 2012
    Location
    Portugal
    Posts
    317
    Sorry can't understand your point because you say the client has no channel groups and also say that you are using a method that retrieves channel groups of a client, which returns empty.

    So... unless I'm misunderstanding.. it is correct.

  10. #970
    Join Date
    June 2011
    Location
    Germany
    Posts
    4,368
    Quote Originally Posted by PituPl View Post
    Thanks

    I get the message that the client has no channel groups if the client has no channel groups.
    This is silly.

  11. #971
    Join Date
    November 2012
    Posts
    8
    how get the channel id from a user? I want to know in which channel is the user.

  12. #972
    Join Date
    June 2011
    Location
    Baghdad, Iraq
    Posts
    367
    Quote Originally Posted by MrRoboto View Post
    how get the channel id from a user? I want to know in which channel is the user.
    get client info it should be called "cid" (aka Channel ID)

  13. #973
    Join Date
    October 2003
    Location
    Germany
    Posts
    2,527
    Quote Originally Posted by MrRoboto View Post
    how get the channel id from a user? I want to know in which channel is the user.
    When you have the client object, this is pretty simple:

    PHP Code:
    $client->cid 

  14. #974
    Join Date
    September 2014
    Posts
    2

    Question TS3 PHP Framework > change nickname

    Hello,
    i'm a new user of the PHP Framework and i want to know if i can change nickname of an user and how use it with php framework ?

    Thanks in advance !

  15. #975
    Join Date
    June 2011
    Location
    Baghdad, Iraq
    Posts
    367
    Hi,

    you can only change your own (your query) nick only

Thread Information

Users Browsing this Thread

There are currently 10 users browsing this thread. (0 members and 10 guests)

Similar Threads

  1. PHP Framework
    By Multivit4min in forum Permission System
    Replies: 1
    Last Post: June 29th, 2015, 12:28 PM
  2. PHP Framework
    By phil998 in forum Server Support
    Replies: 0
    Last Post: February 25th, 2015, 07:27 PM
  3. TS3 PHP Framework Visualizations
    By Ronin Design in forum Tools / Web Based
    Replies: 2
    Last Post: February 22nd, 2015, 06:04 AM
  4. Extraction using the Framework
    By HarryMW in forum Tools / Web Based
    Replies: 1
    Last Post: August 3rd, 2012, 08:04 PM
  5. Teamspeak, PHP Framework?
    By mario2027 in forum General Questions
    Replies: 1
    Last Post: December 21st, 2010, 10:30 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •