Community Forums Today's Posts     Member List     Archive    
Page 9 of 9 FirstFirst ... 789
Results 121 to 131 of 131
  1. #121
    Join Date
    Oct 2002
    Location
    Germany
    Posts
    2,594
    yupp... heads up and our best wishes...

    get better soon

    cu
    SatanClaus in place of the TS-Team

  2. #122
    Join Date
    Aug 2002
    Location
    Houston, TX
    Posts
    18
    Hello,

    Have you all seen on a Linux server hosting the scripts when this script is running that users that have "space's" in there names only get displayed with the 1st part of there name?

    User Jimbo Tomson Slim would show up as just Jimbo
    Last edited by CyberWolf; 05-01-2004 at 21:08.

  3. #123
    cluteman Guest
    Originally posted by Wolpe
    [B]Yeah it works !!

    THX !!

    I don't need so many Infos.
    So i modified the basic PHP File.
    But how can i display th channelname in playerlist ?
    www.con.ipme.de
    I wanted the channelname in the playerlist as well, so I played around with the code a bit (still a bit of a php newb), and managed to get it working.

    Edited online3.php file:
    PHP Code:
     <p><?php
    // retrieve server info
    require("ts2info.php");
    $tss2info->getInfo();
    $tss2info->userName="Guest";

    echo 
    "<table border=\"1\" cellspacing=\"2\" cellpadding=\"5\" bordercolor=\"#000000\"><thead align=\"center\"><th>User ID</th><th>Channel</th><th>User Name</th><th>Status</th><th>Total Time</th>";
    $counter 0;

    foreach(
    $tss2info->channelList as $channelInfo) {
    // default channel?
    if($channelInfo[isdefault] == 1) {
    $channelname "<b>".$channelInfo[channelname]."</b>";
    } else {
    $channelname $channelInfo[channelname];
    }
    // end if
    $channelarray[$channelInfo[channelid]] = $channelname;
    }
    // end foreach

    foreach($tss2info->playerList as $playerInfo) {
    // calculate times
    $totaltime date("H:i:s"mktime(floor($playerInfo[totaltime] / 3600), floor(($playerInfo[totaltime] % 3600) / 60), $playerInfo[totaltime] % 60));
    $idletime date("H:i:s"mktime(floor($playerInfo[idletime] / 3600), floor(($playerInfo[idletime] % 3600) / 60), $playerInfo[idletime] % 60));
    if(!empty(
    $playerInfo[playerlogin])) $playerInfo[playerlogin] ="registered" ; else $playerInfo[playerlogin] ="unregistered";
    if(
    $counter <> 0) echo("<tr align=\"center\" valign=\"top\"><td>".$playerInfo[playerid]."</td><td>".$channelarray[$playerInfo[channelid]]."</td><td>".$playerInfo[playername]."</td><td>".$playerInfo[playerlogin]."</td><td>".$totaltime."</td></tr>");

    $counter++;
    }
    // end foreach
    if($counter == 0) echo ("<tr><td colspan=\"9\" align=\"CENTER\">No channels</td></tr>\n");
    $counter--;
    echo (
    "<tr><td colspan=\"9\" align=\"CENTER\"><h3>$counter User online</h3></td></tr>\n");
    echo (
    "</table>\n</div>\n");
    ?></p>
    The only thing I'm having trouble with is I have two channels showing up as default.. and it doesn't change even if I set another channel as default. Anyone else get this? Any way to fix it?

  4. #124
    Join Date
    Jul 2003
    Location
    Washington State USA
    Posts
    21

    Wink

    Maybe a check on the channelname to get rid of the unnecessary channel
    PHP Code:
    if ($channelInfo[channelname] == "The_Channel_You_Want_To_Keep") {... 
    Or if you want to keep more than one:
    PHP Code:
    if (($channelInfo[channelname] == "The_First_Channel_You_Want_To_Keep") && ($channelInfo[channelname] == "The_second_Channel_You_Want_To_Keep")){... 

  5. #125
    Join Date
    May 2003
    Location
    Germany
    Posts
    44
    Can someone post a downloadable attachment here?

    The thread is quite long and there are several changes made.

    A simply package with the standard functionality would be fine.

  6. #126
    Join Date
    Jul 2003
    Location
    Washington State USA
    Posts
    21
    Can't you spend 5 seconds to check the previous post? A Post on the previous already contain a link to download the scripts.

    You can get some HERE

  7. #127
    Join Date
    Oct 2003
    Location
    Germany
    Posts
    6
    Yeah !!

    Thre're cool scripts.

    I modified it for me.
    To provide confusion with the other Scrip's i only place a Link to see what i do with those.

    http://www.con.ipme.de/seiten/teamspeak/online.php

    Who want's to see the Script's can Mail to clusterfun@t-online.de

  8. #128
    Join Date
    Dec 2002
    Location
    Germany
    Posts
    1,763
    @Brain: Minimaler Fehler in ts2dump.php. Drei </div> tags ohne <div>.

  9. #129
    Join Date
    Aug 2002
    Location
    Houston, TX
    Posts
    18
    Any way to get the total number of users online?

    Have a output like..

    1 User(s) Online

  10. #130
    Join Date
    Dec 2002
    Location
    Germany
    Posts
    1,763
    Just take the count() of the users array.

  11. #131
    Join Date
    Aug 2002
    Location
    Houston, TX
    Posts
    18
    I do not know anything about programing, wish I had the time to learn...could you give me a example?

    Originally posted by Dummer Sack
    Just take the count() of the users array.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. New Teamspeak Query script for php: Teamspeak Display
    By MrGuide@NL in forum [TeamSpeak 2] Addons & Scripts
    Replies: 347
    Last Post: 06-08-2010, 17:17
  2. User Online PHP Script
    By 1Aless1 in forum [TeamSpeak 2] Server Support
    Replies: 2
    Last Post: 11-03-2009, 13:20
  3. User online - offline script (php)
    By crazyandy in forum [TeamSpeak 2] Addons & Scripts
    Replies: 2
    Last Post: 19-03-2007, 17:17
  4. php script zum ts server online bestellen/aufschalten gesucht
    By noob1986 in forum [TeamSpeak 2] Server Support
    Replies: 6
    Last Post: 27-05-2006, 13:50
  5. Teamspeak 2 Status Display Script Released!
    By justinkwaugh in forum [TeamSpeak 2] Addons & Scripts
    Replies: 6
    Last Post: 09-02-2006, 09:14

Posting Permissions

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