Results 286 to 300 of 632
Thread: [API] TS3 PHP Framework
-
07-06-2011, 13:28 #286
hey ScP,
you've a funny behavior in your 1.1.5-beta Framework.
Sometimes your Framework is unable to grab a Client Node even if the client was still online. Any Ideas?
e.x.: A Client joined the server, and the Framework will crash with "invalid ClientID"
Also the exception above was not handled by the errorException nor by notifyError event.
How to get rid of this error?
-
07-06-2011, 17:15 #287
-= TeamSpeak Servant =-
- Join Date
- Oct 2003
- Location
- Germany
- Posts
- 2,299
-
07-06-2011, 17:36 #288
Nope, no idea. Somtimes it'll be in notifyCliententerview, notifyEvent, notifyTextmessage and extrem rarely in serverqueryWaitTimeout
The exception was thrown on STDERR original error message was "invalid ClientID"
The code i've tryed to execute (cliententerview) is
PHP Code:try {
$invokerNode = $host->serverGetSelected()->clientGetByUid($event['client_unique_identifier']);
} catch (Exception $e) {
return;
}
-
07-06-2011, 19:08 #289
-= TeamSpeak User =-
- Join Date
- Jun 2011
- Posts
- 4
btw, to my problem mentioned above:
The teamspeakviewer.com works perfectly?
http://www.tsviewer.com/index.php?pa...ewer&ID=951862
and it says: powered by TS3 PHP Framework
Is it the framework on my website then that doesn't work correct?
Fixed it,
copied all 'old' icons back. works now
Last edited by TmRNL; 07-06-2011 at 19:18.
-
08-06-2011, 10:46 #290
-= TeamSpeak User =-
- Join Date
- Jun 2010
- Location
- Leeuwarden, Holland
- Posts
- 13
Custom icons
Hello!
The community I'm at has just started using your PHP Framework. I knew of it for quite some time, it's a nice module you made... good job!
The thing is, I have a problem with the custom channel icons on our server. Somehow the viewer only manages to download/display a few channel icons (which are random). The other ones are displayed as the error icon (group_icon_0.png). I've already started looking into the code (I've changed a few things so I could put it in a CMS menu), but I couldn't find anything which might work...
Would be glad if you could help me!
Kind regards,
VWOer
-
15-06-2011, 07:08 #291
-= TeamSpeak User =-
- Join Date
- Mar 2011
- Posts
- 4
hi,
I have a problem!
I can change the group of users who are online via UID but seeking a way too edit server groups of offline users. Is there a way?PHP Code:$ts3_VirtualServer->clientGetByUid('xyz')->remServerGroup(16);
thx!
-
16-06-2011, 00:18 #292
-= TeamSpeak Servant =-
- Join Date
- Oct 2003
- Location
- Germany
- Posts
- 2,299
I've noticed the same issue while using different browsers (i.e. Safari). I'll release a new version in the next few days which will allow you to use the custom icons as embedded images so ther's no extra download script needed to display them. Here's an example:
http://www.dlg.sc/teamspeak.html
Unfortunately, you can only spawn TeamSpeak3_Node_Client objects as you did for clients that are connected to the server. In your case you need to do something like this (not tested, but should work):
PHP Code:/**
* Grab an array containing the last known nickname and the database
* ID of the client matching the specified unique identifier (xyz).
*
* Example Output:
*
* array(
* [cluid] => xyz,
* [cldbid] => 123,
* [name] => abc,
* )
*/
$some_array = $ts3_VirtualServer->clientGetNameByUid("xyz");
/**
* Option A: Use low-level method to remove client from server group using
* database IDs (if known).
*/
$ts3_VirtualServer->serverGroupClientDel(16, $some_array["cldbid"]);
/**
* Option B: Grab TeamSpeak3_Node_Servergroup object by ID and remove client
* from it.
*/
$ts3_VirtualServer->serverGroupGetById(16)->clientDel($some_array["cldbid"]);
/**
* Option C: Grab TeamSpeak3_Node_Servergroup object by name and remove client
* from it.
*/
$ts3_VirtualServer->serverGroupGetByName("Admins")->clientDel($some_array["cldbid"]);
-
16-06-2011, 12:33 #293
-= TeamSpeak User =-
- Join Date
- Mar 2011
- Posts
- 4
thx! it works!
-
25-06-2011, 23:01 #294
-= TeamSpeak Lover =-
- Join Date
- Sep 2008
- Location
- England...
- Posts
- 35
Hello again ScP,
Is there any reason you can think of why this would throw an exception when all the details are correct, the VPS hosting the TS has no firewall, the web server is on the white list and the port is open. Someone I'm talking to is saying they are getting "connection refused" and I'm struggling with ideas...
PHP Code:try {
$ts3_VirtualServer = TeamSpeak3::factory("serverquery://".$c->tsname.":".$c->tspass."@".$c->tshost.":".$c->tsport."/?server_port=".$c->tscport);
} catch (TeamSpeak3_Exception $e) {
die("An error occured: ".$e->getMessage()." [F".__LINE__."]");
}
-
26-06-2011, 20:14 #295
I have error:
when i should connect to serwer with server query clients. It seems that the server has a limit to the number of server query connections to the server . My license allows to use 512 querys, but you can not connect to the server up to 40% of this numberPHP Fatal error: Uncaught exception 'TeamSpeak3_Adapter_ServerQuery_Exception' with message 'max clients protocol limit reached' in /var/www/TS3_PHP_Framework/libraries/TeamSpeak3/Adapter/ServerQuery/Reply.php:305
Stack trace:
#0 /var/www/TS3_PHP_Framework/libraries/TeamSpeak3/Adapter/ServerQuery/Reply.php(82): TeamSpeak3_Adapter_ServerQuery_Reply->fetchError(Object(TeamSpeak3_Helper_String))
#1 /var/www/TS3_PHP_Framework/libraries/TeamSpeak3/Adapter/ServerQuery.php(140): TeamSpeak3_Adapter_ServerQuery_Reply->__construct(Array, 'use port=9987', Object(TeamSpeak3_Node_Host))
#2 /var/www/TS3_PHP_Framework/libraries/TeamSpeak3/Node/Abstract.php(72): TeamSpeak3_Adapter_ServerQuery->request('use port=9987')
#3 /var/www/TS3_PHP_Framework/libraries/TeamSpeak3/Node/Abstract.php(96): TeamSpeak3_Node_Abstract->request('use port=9987')
#4 /var/www/TS3_PHP_Framework/libraries/TeamSpeak3/Node/Host.php(175): TeamSpeak3_Node_Abstract->execute('use', Array)
#5 /var/www/TS3_PHP_Framework/libraries/TeamSpeak3/Node/Host.php(261): TeamSpeak3_Nod in /var/www/TS3_PHP_Framework/libraries/TeamSpeak3/Adapter/ServerQuery/Reply.php on line 305
-
26-06-2011, 23:54 #296
-= TeamSpeak User =-
- Join Date
- Jun 2011
- Posts
- 2
I need to know how to revoke a consumed privilege key, or get the cldbid of the person that consumed the privilege key so that I can revoke the correct permissions. I've looked through every method and nothing seems to ever reference privilege keys once they've been consumed.
Any help would be massively appreciated.
-
27-06-2011, 06:25 #297
-= TeamSpeak Addict =-
- Join Date
- Jun 2003
- Posts
- 246
A privilege key is deleted after it's used. You will need to find the group that the key was used to gain access to and then remove the user from the group. You can start by listing the group members and finding the user you want.
-
27-06-2011, 09:10 #298
-= TeamSpeak User =-
- Join Date
- Jun 2010
- Location
- Leeuwarden, Holland
- Posts
- 13
@ Snetty: Try searching your logs, using keys is logged by default.
@ ScP: thanks! When might this update be released? (or do you have a patch for the meantime, by any chance?)Last edited by VWOer; 27-06-2011 at 09:11. Reason: rephrase
-
27-06-2011, 09:15 #299
-= TeamSpeak User =-
- Join Date
- Jun 2011
- Posts
- 2
-
27-06-2011, 10:11 #300
-= TeamSpeak Servant =-
- Join Date
- Oct 2003
- Location
- Germany
- Posts
- 2,299
Try this:
http://pastebin.com/0HrZ9Xw2
Instead of the filename for a possible file transfer client script, just use "data:image" as a parameter. Example:
Please let me know if that works for you.PHP Code:echo $ts3->getViewer(new TeamSpeak3_Viewer_Html("images/viewer/", "images/flags/", "data:image"));

As maggy already stated, a privilege key is deleted after beeing used. Maybe there's some useful information in the server logs, but I don't think parsing log entries makes sense in your case. Can't you solve the problem by simply using temporary server/channel groups? This way, the clients will loose their permissions on disconnect.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
TS3 PHP Framework Connection problems
By stheam in forum General QuestionsReplies: 1Last Post: 01-01-2013, 21:03 -
Extraction using the Framework
By HarryMW in forum ToolsReplies: 1Last Post: 03-08-2012, 19:04 -
TeamSpeak 3 PHP Framework
By danger89 in forum General QuestionsReplies: 3Last Post: 11-06-2012, 16:40 -
Teamspeak, PHP Framework?
By mario2027 in forum General QuestionsReplies: 1Last Post: 21-12-2010, 09:30 -
[solved] Problem with Ts3 und Ts3 Php Framework
By m3ntry in forum Bug ReportsReplies: 1Last Post: 14-10-2010, 05:55






Reply With Quote
