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 21 of 100 FirstFirst ... 1119202122233171 ... LastLast
Results 301 to 315 of 1498
  1. #301
    Join Date
    June 2010
    Location
    Leeuwarden, Holland
    Posts
    13
    Code:
    Call to undefined method TeamSpeak3_Helper_Convert::imageMimeType() in libraries/TeamSpeak3/Viewer/Html.php on line 421
    I have just replaced the file path by the code you specified and replaced the Html.php file.

  2. #302
    Join Date
    October 2003
    Location
    Germany
    Posts
    2,527
    Sorry! My fault... Here's the other file you need:

    http://pastebin.com/tS9aUGj2


  3. #303
    Join Date
    February 2008
    Location
    Germany, Schorndorf
    Posts
    186
    great ScP, this is the first time that i can see customized Icons on the Viewer

  4. #304
    Join Date
    January 2010
    Location
    Germany
    Posts
    252
    Hi Scp,

    i think i've just found a memory leak in your 1.1.5-beta Framework.
    This leak will occur if you try to fetch the clientlist in the serverqueryWaitTimeout event and are using php 5.2.6-1+lenny10. This leak is gone with php 5.3.2 and a call to gc_enable


    this code produces the memory leak:
    PHP Code:
    $clientList $adapter->getHost()->serverGetSelected()->clientList(); 
    Any Ideas how to get rid of this leak without update to php 5.3.2?

  5. #305
    Join Date
    May 2004
    Location
    France
    Posts
    21

    Exclamation [TS3 PHP Framework 1.1.5-beta] ClientInfo - ServerQuery users

    When you list users connected to the TeamSpeak server, the ServerQuery users are enlisted (/examples/?page=clientlist page).
    But when you try to display the client info of them (/examples/?page=clientinfo page), it results in the 0x200 = 512 'invalid clientID' exception. This is due to the '#no_query_clients' tag added to the request command.

    When you deactivate that tag, the page then lists all info about the ServerQuery users, but crashes with the 'client_flag_avatar' attribute (TeamSpeak3_Adapter_ServerQuery_Exception throwed: 0x602 = 1538 'invalid parameter').
    This is throwed in the /examples/?page=clientinfo file, at line 60.
    But I couldn't manage to understand how to fix that part, and trigger it depending on the client type.

    Could anyone help?

  6. #306
    Join Date
    July 2011
    Posts
    1

    Angry Remove Host-Permissions

    Hello there,
    i try to remove Host-Permissions for Serveradmin WHEN i am creating the Server...

    I use the TS3 Framework on my Homepage, and i want to remove the permission while the teamspeak is beeing creating.

    Code:
       			$new_sid = $ts3_ServerInstance->serverCreate(array(
         				"virtualserver_name"               => "$sna",
         				"virtualserver_maxclients"         => $form_slots,
    				"virtualserver_port"			=> $port,
         				"virtualserver_hostbutton_tooltip" => "Northdegree.de",
         				"virtualserver_hostbutton_url"     => "http://northdegree.de",
         				"virtualserver_hostbutton_gfx_url" => "http://northdegree.de/header_login_fenster.png",
       			));

    is there a way to do this in this code, or must i remove the permission after the creation?


    EDIT: Okay.. got it :P

    Code:
    $ts3_ServerGroup->permRemove("b_virtualserver_modify_maxclients") ;
    Best Regards,
    Northdegree

  7. #307
    Join Date
    February 2009
    Location
    Slovenia
    Posts
    27
    Whats wrong here: http://teamspeak.combatarms.si/

    Copyed example folder and libraries but still not working

  8. #308
    Join Date
    February 2010
    Location
    Portugal
    Posts
    18
    Hello,

    Im using this library but i have a little problem, i want to return some information from the server via Ajax.

    I have all done, but the problem is when i return the data in json format, some values goes empty, like virtualserver_name, it goes empty.

    I know it is because of the virtualserver_name is an "object"

    'virtualserver_name' =>
    object(TeamSpeak3_Helper_String)[152]
    protected 'string' => string 'CatsMiau#' (length=9)
    protected 'position' => int 0

    But how can i return using json_encode without losing the data?

    Thanks
    Last edited by Glazz; July 19th, 2011 at 04:42 PM.

  9. #309
    Join Date
    June 2010
    Location
    Leeuwarden, Holland
    Posts
    13
    Quote Originally Posted by storek55 View Post
    Whats wrong here: http://teamspeak.combatarms.si/

    Copyed example folder and libraries but still not working
    Where have you put your serverviewer file?

  10. #310
    Join Date
    February 2010
    Location
    Portugal
    Posts
    18
    Quote Originally Posted by Northdegree View Post
    Code:
    $ts3_ServerGroup->permRemove("b_virtualserver_modify_maxclients") ;
    Northdegree
    Hello,

    Do you mind telling me exactly how do you did this?

  11. #311
    Join Date
    January 2010
    Location
    Germany
    Posts
    2,029
    You can register for Events with the Framework but how are you supposed to get the Events the moment they occur? Preferably in a way that doesn't involve the Script to hang until something happened on the Server so one can prevent the Query from getting idle kicked.
    Edit: nvm. found the console.php in the examples.
    Last edited by SilentStorm; July 26th, 2011 at 08:52 PM.

  12. #312
    Join Date
    February 2010
    Location
    Portugal
    Posts
    18
    Quote Originally Posted by Glazz View Post
    Hello,

    Im using this library but i have a little problem, i want to return some information from the server via Ajax.

    I have all done, but the problem is when i return the data in json format, some values goes empty, like virtualserver_name, it goes empty.

    I know it is because of the virtualserver_name is an "object"

    'virtualserver_name' =>
    object(TeamSpeak3_Helper_String)[152]
    protected 'string' => string 'CatsMiau#' (length=9)
    protected 'position' => int 0

    But how can i return using json_encode without losing the data?

    Thanks

    No one knows? I tried converting the returned array/object to an array but it comes out a little weird :\

  13. #313
    Join Date
    October 2003
    Location
    Germany
    Posts
    2,527

  14. #314
    Join Date
    February 2010
    Location
    Portugal
    Posts
    18
    Quote Originally Posted by ScP View Post
    Hey ScP, thanks for the reply.

    It works, kinda, the problem is when i use toString('virtualserver_status'); ( not exactly like this ), it returns the name of the server.

    Some of my code:
    $ts3_VirtualServer = $this->conectar();
    // Dados do servidor.
    //
    $dados['server'] = $ts3_VirtualServer->getInfo(TRUE, TRUE);

    $dados['server']['virtualserver_name'] = $ts3_VirtualServer->toString($dados['server']['virtualserver_name']);
    $dados['server']['virtualserver_uptime'] = $this->uptime($dados['server']['virtualserver_uptime']);
    $dados['server']['virtualserver_status'] = $ts3_VirtualServer->toString($dados['server']['virtualserver_status']);
    $dados['sucesso'] = true;
    The connection to the server is working just fine, the problem is when i use toString to convert the virtualserver_status, somehow it gets the server name instead of the online/offline string.

    Thank you,

  15. #315
    Join Date
    October 2003
    Location
    Germany
    Posts
    2,527
    Try this:

    PHP Code:
    $properties $ts3_VirtualServer->getInfo();

    foreach(
    $properties  as $key => $val)
    {
      if(
    $val instanceof TeamSpeak3_Helper_String)
      {
        
    $properties[$key] = $val->toString();
      }

    I've not tested this, but it should do the trick...


Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 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
  •