Results 31 to 45 of 627
Thread: [API] TS3 PHP Framework
-
21-06-2010, 12:35 #31
-= TeamSpeak User =-
- Join Date
- Dec 2009
- Location
- The Netherlands
- Posts
- 6
Can somebody please explain how the "tokenCreate" method works?
* integer $type
* integer $id1
* integer $id2
* $description
* $customset
I just want to create a new Admin Token for the selected virtual server.
What is type, id1 and id2 exactly?
-
30-06-2010, 02:59 #32
Hi,
First thank for TeamSpeak 3 PHP Framework.
I'm trying to create PHP scripts to integrate TS3 with vBulletin, I try to delete a specific client on the server by using this script but I get the error: "Error 1537: invalid parameter count".
"$cldbid = 147" is a Client ID in DB.
I have tried other methods like POKE or SEND MESSAGE with the same script and work perfectly, for now only this method does not work.PHP Code:include("config.php");
require_once("TeamSpeak3/TeamSpeak3.php");
try
{
$ts3_ServerInstance = TeamSpeak3::factory("serverquery://" . $config["user"] . ":" . $config["pass"] . "@" . $config["host"] . ":" . $config["port"] . "/");
$selected_sid = 1;
$ts3_VirtualServer = $ts3_ServerInstance->serverGetById($selected_sid);
$cldbid = 147;
$param = $ts3_VirtualServer->clientDeleteDb($cldbid);
}
catch(Exception $e)
{
$param = "<b>Error " . $e->getCode() . ":</b> <i>" . $e->getMessage() . "</i>";
}
echo "<p>".$param."</p>";
I appreciate any help.
Regards
-
30-06-2010, 15:45 #33
Hi,
is it possible to call
with the TeamSpeak 3 PHP Framework?Code:servernotifyregister event=textprivate
-
01-07-2010, 00:23 #34
Nobody?
This project is still active?
Although we can download the version 1.0.27 from this thread on the forum, the Planet TeamSpeak website showing the latest available is 1.0.22, the API documentation is for version 1.0.22 (i think) and the Planet TeamSpeak forums do not work for several days, do not know where I can get help for this problem.
I'm no expert on these issues, but I think the method clientDeleteDb() are not properly synchronized.
Thank.
P.D. Ok, I said nothing ... lol
I've read the latest changelog for next version Release 1.0.28-beta - ?? Jun 2010:
"- fixed invalid command name in TeamSpeak3_Node_Server::clientDeleteDb()"
Where can we download the latest 1.0.28 version or when it will be available?Last edited by Yoshua; 01-07-2010 at 00:28. Reason: PD
-
01-07-2010, 08:15 #35
Hi,
In this forum you will always find latest version of the! That is also the x.x.28. However, you should wait you yet.
-
01-07-2010, 16:35 #36
-= TeamSpeak Servant =-
- Join Date
- Oct 2003
- Location
- Germany
- Posts
- 2,297
Here's a link to my internal test release of version 1.0.27-beta:
http://download.planetteamspeak.com/...rk-1.0.27b.zip
-
01-07-2010, 18:08 #37
Thank you very much ScP, but this version, 1.0.27 is the one I'm using and which I have the error with the method "clientDeleteDb()". I see in the version 1.0.28 this error is fixed.
On the website of examples I see that are using version 1.0.28:
http://www.planetteamspeak.com/demos...work/examples/
"All of these pages are generated live using version 1.0.28-beta of the TeamSpeak 3 PHP Framework."
...the only question I have is when we have version 1.0.28 or how I can fix the problem with this method on my own or look for other alternatives.
Thank again.
Regards
-
01-07-2010, 22:07 #38
-= TeamSpeak Servant =-
- Join Date
- Oct 2003
- Location
- Germany
- Posts
- 2,297
Here's the TeamSpeak3/Node/Server.php library from version 1.0.18-beta which should fix your issue:
http://pastebin.planetteamspeak.com/...n.php?show=366
Have fun!
-
01-07-2010, 22:54 #39
-
03-07-2010, 00:59 #40
-= TeamSpeak Servant =-
- Join Date
- Oct 2003
- Location
- Germany
- Posts
- 2,297
Finally, here's version 1.0.29-beta:
http://www.planetteamspeak.com/compo...id,69/gid,105/
Unfortunately, I was unable to update the online documentation yet so that's still outdated. I will re-create the oringinal forum thread as soon as everything's prepared.Last edited by ScP; 03-07-2010 at 01:15.
-
04-07-2010, 18:28 #41
-
04-07-2010, 20:44 #42
-= TeamSpeak Fanatic =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 1,382
-
05-07-2010, 21:57 #43
-= TeamSpeak User =-
- Join Date
- Jul 2010
- Location
- Poland
- Posts
- 2
Hi guys. My first post here so a nice and big welcome to everyone.
I've been toying around with this framework for some time now and like it very much, but it seems I've run into an issue I can't quite wrap my head around.
I'm trying to use the clientListDb() function, to get all the clients that were once connected to the server, but it seems that apart from what already is in this database, new users are not registered. Only changed nicks of previously connected users update, but if a completely new user connects there is no record of it in the results of the function. Am I doing something wrong here? Is this not the functionality of this function?
Any help appreciated guys, thanks in advance.
-
06-07-2010, 11:54 #44
-= TeamSpeak Servant =-
- Join Date
- Oct 2003
- Location
- Germany
- Posts
- 2,297
I think yout issue is not caused by the framework, but by the TeamSpeak 3 Server itself... and actually, it's not an issue. If no parameter is specified, the clientdblist command only returns the first 25 entires from the database. Use the duration parameter to specify the number of clients you wish to receive. Here's an example:
PHP Code:// get 250 clients, beginning with an offset of 50
$clientdblist = $virtual_server->clientListDb(50, 250);
-
06-07-2010, 14:44 #45
-= TeamSpeak User =-
- Join Date
- Jul 2010
- Location
- Poland
- Posts
- 2
HA! Thank you very much, this works now.
The problem was that here:
http://docs.planetteamspeak.com/ts3/php/framework/
there is no information about the default 25 users returned.
Thanks for helping out, and thanks for the great framework overall
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




