Results 121 to 131 of 131
Thread: Online Display Script
-
05-01-2004, 17:20 #121
-= TeamSpeak Support =-
- 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
-
05-01-2004, 21:06 #122
-= TeamSpeak User =-
- 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 JimboLast edited by CyberWolf; 05-01-2004 at 21:08.
-
07-01-2004, 00:29 #123cluteman GuestI 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.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
Edited online3.php file: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?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>
-
08-01-2004, 01:36 #124
-= TeamSpeak User =-
- Join Date
- Jul 2003
- Location
- Washington State USA
- Posts
- 21
Maybe a check on the channelname to get rid of the unnecessary channel
Or if you want to keep more than one:PHP Code:if ($channelInfo[channelname] == "The_Channel_You_Want_To_Keep") {...
PHP Code:if (($channelInfo[channelname] == "The_First_Channel_You_Want_To_Keep") && ($channelInfo[channelname] == "The_second_Channel_You_Want_To_Keep")){...
-
09-01-2004, 12:55 #125
-= TeamSpeak Lover =-
- 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.
-
09-01-2004, 15:56 #126
-= TeamSpeak User =-
- 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
-
13-01-2004, 01:24 #127
-= TeamSpeak User =-
- 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
-
13-01-2004, 15:27 #128
-= TeamSpeak Fanatic =-
- Join Date
- Dec 2002
- Location
- Germany
- Posts
- 1,763
@Brain: Minimaler Fehler in ts2dump.php. Drei </div> tags ohne <div>.
-
14-01-2004, 05:37 #129
-= TeamSpeak User =-
- 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
-
14-01-2004, 12:07 #130
-= TeamSpeak Fanatic =-
- Join Date
- Dec 2002
- Location
- Germany
- Posts
- 1,763
Just take the count() of the users array.
-
14-01-2004, 14:07 #131
-= TeamSpeak User =-
- 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
-
New Teamspeak Query script for php: Teamspeak Display
By MrGuide@NL in forum [TeamSpeak 2] Addons & ScriptsReplies: 347Last Post: 06-08-2010, 17:17 -
User Online PHP Script
By 1Aless1 in forum [TeamSpeak 2] Server SupportReplies: 2Last Post: 11-03-2009, 13:20 -
User online - offline script (php)
By crazyandy in forum [TeamSpeak 2] Addons & ScriptsReplies: 2Last Post: 19-03-2007, 17:17 -
php script zum ts server online bestellen/aufschalten gesucht
By noob1986 in forum [TeamSpeak 2] Server SupportReplies: 6Last Post: 27-05-2006, 13:50 -
Teamspeak 2 Status Display Script Released!
By justinkwaugh in forum [TeamSpeak 2] Addons & ScriptsReplies: 6Last Post: 09-02-2006, 09:14


Reply With Quote