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 30 of 100 FirstFirst ... 2028293031324080 ... LastLast
Results 436 to 450 of 1498
  1. #436
    Join Date
    July 2010
    Location
    Madrid
    Posts
    106
    Hello!

    Does anyone have a script in PHP to do "Poke" to users with an outdated version of Teamspeak 3?

    It would be helpful.

    Thanks in advance.

  2. #437
    Join Date
    August 2007
    Location
    SWEDEN
    Posts
    130
    I experienced issue that in all channels, number of clients is -1

    I updated framework to latest version but problem remains. Any thoughts?

  3. #438
    Join Date
    December 2008
    Location
    Germany
    Posts
    9
    Hey ScP
    For my clan I plan to code a bridge from the global chat and maybe some subchannels to specific chatrooms on our XMPP server.
    So I need to read chat messages from a specific chat and also write messages to this chat.
    I can't find any informations in the documentation of your framework how this could be done.
    Is there a way to implement sending and recieving of chat messages?

    Regards, theWeird

  4. #439
    Join Date
    January 2010
    Location
    Germany
    Posts
    2,029
    PHP Code:
    $srv TeamSpeak3::factory("serverquery://" $cfg["user"] . ":" $cfg["pass"] . "@" $cfg["host"] . ":" $cfg["query"] . "/?server_port=" $cfg['voice'] . "&blocking=0");
    $srv->notifyRegister("textserver"); // Register to receive ServerChat Messages
    $srv->notifyRegister("textchannel"); // Receive Channelchat Messages of CURRENT CHANNEL

    TeamSpeak3_Helper_Signal::getInstance()->subscribe("notifyTextmessage""onTextMessage"); // Specify Callback Function to be called for each TextMessage in Server or current Channel. 

  5. #440
    Join Date
    October 2003
    Location
    Germany
    Posts
    2,527
    Quote Originally Posted by Morfi View Post
    I experienced issue that in all channels, number of clients is -1

    I updated framework to latest version but problem remains. Any thoughts?
    I think we've resolved the issue when we talked on my TS server. The issue was related to insufficient channel subscribe power.

  6. #441
    Join Date
    September 2008
    Location
    England...
    Posts
    40
    Edit: ==== Probably fixed ====

    A user just contacted me with this error ScP, I was hoping you could shed some light?

    1. User was online, registered with the name "FI.RE Ordonnanz 1" 1 minute before attempting to register through my system with "-MLH- Ordonnanz 1". (His permissions need changing so my system kicked him, deleted him and asked him to re-register automatically)

    2. Error received :
    Attempting to grant access to: -MLH- Ordonnanz 1...

    Removing your old registrations...

    Warning: preg_match() [function.preg-match]: Unknown modifier 'b' in /home/sever/public_html/ts3api/TeamSpeak3/Helper/String.php on line 192 (repeated another 20 times)

    Warning: Failed to delete user: FI.RE Ordonnanz 1 TSDID: 2990. Please Mail this message to MJ Maverick immediately. (Error: client is online) [F127]
    0 old registration removed.
    The error that the client is online leads me to believe that the error is with the part of code that should see that he is online and kick him.

    Code :
    PHP Code:
    try {
        
    // connect to the server
        
    $ts3_VirtualServer TeamSpeak3::factory("serverquery://".$c->tsname.":".$c->tspass."@".$c->tshost.":".$c->tsport."/?server_port=".$c->tscport);
        } catch (
    TeamSpeak3_Exception $e) {
            die(
    "Error: ".$e->getMessage()." [F".__LINE__."]");
        }
        try {
            
    $online $ts3_VirtualServer->clientList(array("client_unique_identifier" => $tsUniqueID));
            if(
    count($online)) {
                
    // they are online with an already registered account
                
    die("Attention: You are online with an already registered account! I can't delete your old registration while you are connected with it, disconnect and refresh this page. [F".__LINE__."]<br />");
            } else {
                
    $ts3_VirtualServer->clientdeleteDb($tsDatabaseID);
                
    // they are gone, remove them from the database
                
    try {
                    
    $queryDelete "DELETE FROM users WHERE characterID = $characterID;";
                    
    mysql_query($queryDelete$conRemoveOld );
                    
    $removed $removed 1;
                } catch (
    TeamSpeak3_Exception $e) {
                    echo 
    "Warning: Failed to remove old registrations of: ".$tsName." from the database, entry ".$entryID.". Please EVEMail this message to ".$c->admin." immediately. (Error: ".$e->getMessage().") (SQL: "mysql_error() .") [F".__LINE__."]<br />";
                }
            }
        } catch (
    TeamSpeak3_Exception $e) {
            echo 
    "Warning: Failed to delete user: ".$tsName." TSDID: ".$tsDatabaseID.". Please EVEMail this message to ".$c->admin." immediately. (Error: ".$e->getMessage().") [F".__LINE__."]<br />"// !! LINE 127 !!
        
    }
    }
    echo 
    $removed." old registration removed.<br /><br />"

    That's the relevant section of code. Any ideas?
    Last edited by Mavrik347; June 13th, 2012 at 05:40 PM.

  7. #442
    Join Date
    June 2003
    Posts
    275
    For the first part of this...
    Warning: preg_match() [function.preg-match]: Unknown modifier 'b' in /home/sever/public_html/ts3api/TeamSpeak3/Helper/String.php on line 192 (repeated another 20 times)
    This is line 192 of Helper/String:

    PHP Code:
    return (preg_match("/" $pattern "/i"$this->string)) ? TRUE FALSE
    So this means the $pattern var has an unescaped forward slash (/) and in this case is followed by a "b" character which triggers this error. What causes this I couldn't tell you but that would be your starting point for debugging this issue.

  8. #443
    Join Date
    September 2008
    Location
    England...
    Posts
    40
    Think I may be on to something here. The guys UID was K/bGYFe9aknUoOqN8DTue3UJTKE=

    I have just had another guy report this but with an unknown modifier "v", his UID is /vRL7f5p922G6DXdDR8Ml/f/JFE=

    Is this a bug with UIDs containing a /?


    Edit: Scratch, I updated from 1.1.10 to 1.1.12 and the bug appears to have gone. :P
    Last edited by Mavrik347; June 13th, 2012 at 05:40 PM.

  9. #444
    Join Date
    September 2008
    Location
    England...
    Posts
    40
    Could I suggest making a way to get a client ID via their database ID?

  10. #445
    Join Date
    October 2003
    Location
    Germany
    Posts
    2,527
    Quote Originally Posted by Mavrik347 View Post
    Could I suggest making a way to get a client ID via their database ID?
    Try using these two methods:

    http://docs.planetteamspeak.com/ts3/...1666756cd4b744
    http://docs.planetteamspeak.com/ts3/...bfb0818b5bc2f7


    Quick question... Should I release this legacy update?

    Code:
    === Release 1.1.13 - 18 Jun 2011 ===
     ! upgrading your servers to 3.0.6 (build >= 1339404919) is mandatory
     + TeamSpeak3_Node_Server::transferInitUpload() now respects server-side IP
       bindings for file transfer interface
     + TeamSpeak3_Node_Server::transferInitDownload() now respects server-side IP
       bindings for file transfer interface
     - fixed missing return value for TeamSpeak3_Node_Server::messageList()
     * TeamSpeak3_Node_Server::clientList() now returns client IP addresses
     + added TeamSpeak3_Node_Server::tempPasswordList()
     + added TeamSpeak3_Node_Server::tempPasswordCreate()
     + added TeamSpeak3_Node_Server::tempPasswordDelete()
     * legacy release
    Last edited by ScP; June 18th, 2012 at 09:11 PM.

  11. #446
    Join Date
    June 2012
    Location
    Portugal
    Posts
    317
    Hi! Im making my site which interacts with ts3 server. Pretty good documentation for a php newbie like me. Everything almost finished I'm just having this error:

    Part of code:
    PHP Code:
    $ts3_VirtualServer->execute("sendtextmessage", array("msg" => $pvt"target" => 4"targetmode" => TeamSpeak3::TEXTMSG_CLIENT)); 
    It's as is in documentation, except I changed target to 4 since I want to test. (4 is client_database_id and is online).

    But I get this error:
    Fatal error: Uncaught exception 'TeamSpeak3_Adapter_ServerQuery_Exception' with message 'invalid client type' in D:\Files\WEB & TS3\xampp\htdocs\TS3\lib\TeamSpeak3\Adapter\Server Query\Reply.php:305 Stack trace: #0 D:\Files\WEB & TS3\xampp\htdocs\TS3\lib\TeamSpeak3\Adapter\Server Query\Reply.php(82): TeamSpeak3_Adapter_ServerQuery_Reply->fetchError(Object(TeamSpeak3_Helper_String)) #1 D:\Files\WEB & TS3\xampp\htdocs\TS3\lib\TeamSpeak3\Adapter\Server Query.php(140): TeamSpeak3_Adapter_ServerQuery_Reply->__construct(Array, 'sendtextmessage...', Object(TeamSpeak3_Node_Host)) #2 D:\Files\WEB & TS3\xampp\htdocs\TS3\lib\TeamSpeak3\Node\Abstract. php(72): TeamSpeak3_Adapter_ServerQuery->request('sendtextmessage...') #3 D:\Files\WEB & TS3\xampp\htdocs\TS3\lib\TeamSpeak3\Node\Server.ph p(89): TeamSpeak3_Node_Abstract->request('sendtextmessage...') #4 D:\Files\WEB & TS3\xampp\htdocs\TS3\lib\TeamSpeak3\Node\Abstract. php(96): TeamSpeak3_Node_Server->request('sendtextmessage...') #5 D:\Files\WEB & TS3\xampp\htdocs\TS3\test.php(34): TeamSpe in D:\Files\WEB & TS3\xampp\htdocs\TS3\lib\TeamSpeak3\Adapter\Server Query\Reply.php on line 305
    What am I doing wrong??

  12. #447
    Join Date
    January 2010
    Location
    Germany
    Posts
    2,029
    Target takes the current Client Id NOT the Database ID.

  13. #448
    Join Date
    June 2012
    Location
    Portugal
    Posts
    317
    Hmm OK. How can I get the current client id based on unique identifier? ( or dbid)

    Nvm I fixed it. Went to TS3 query manual and I looked into client info, its clid:

    PHP Code:
    $ts3_VirtualServer->request("clientlist -uid -groups -client_nickname -clid")->toList(); 
    (from here I select who is in group 8 and proceed with the rest of my code where I will need the rest I request from clientlist)

    Thanks for the help anyway!
    Last edited by barricas; June 22nd, 2012 at 03:56 PM.

  14. #449
    Join Date
    October 2003
    Location
    Germany
    Posts
    2,527
    Quote Originally Posted by barricas View Post
    Hmm OK. How can I get the current client id based on unique identifier? ( or dbid)
    Use this:

    http://docs.planetteamspeak.com/ts3/...1666756cd4b744

  15. #450
    Join Date
    April 2007
    Location
    Spain
    Posts
    17
    Hello ScP,

    In "TeamSpeak3_Node_Abstract::getInfo => virtualserver_min_client_version" return Unix time, "TeamSpeak3_Helper_Convert\version()" not work in this.

    And I think the correct format for DATE in this case: "TeamSpeak3_Helper_Convert\version()" would be:
    Code:
    293: public static function version($version, $format = "d/m/Y G:i:s")
    ...date would be expressed in the same format as the TeamSpeak client.

    Thanks for your great work.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. PHP Framework
    By Multivit4min in forum Permission System
    Replies: 1
    Last Post: June 29th, 2015, 11:28 AM
  2. PHP Framework
    By phil998 in forum Server Support
    Replies: 0
    Last Post: February 25th, 2015, 06:27 PM
  3. TS3 PHP Framework Visualizations
    By Ronin Design in forum Tools / Web Based
    Replies: 2
    Last Post: February 22nd, 2015, 05:04 AM
  4. Extraction using the Framework
    By HarryMW in forum Tools / Web Based
    Replies: 1
    Last Post: August 3rd, 2012, 07:04 PM
  5. Teamspeak, PHP Framework?
    By mario2027 in forum General Questions
    Replies: 1
    Last Post: December 21st, 2010, 09: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
  •