View Full Version : PHPTS2 ver 2.0
;) Well.....
After several mail....I finally took my time to alter and improve my viewer and hopefully not recieve so many mail, some angry cause I haven't made any changes to some of the known buggs....to thoose I like to replay...this viewer isn't exacly one of my priority and the main reason for updating is that my clan is about to use it... ;)
Updates:
* Sorting channels correctly now
* Channel Flags added.
* Login info will be remebered.
* Connection Check
Also to those who mails and ask if it's possible to use this to their nuke site...yes, it is....There are several ways to solve this like IFRAME etc.....it's written in "object oriented" way....meaning you can simply call the functions into your page...example could be if you only want to use the tree-structure...then call on the function getTSChannelInfo(). A code example is displyed below just to show how easy it is to create a custom apperance:
<?PHP
include "ts2status.php";
require_once "config.php";
?>
<html>
<head>
<title>Tree Structure</title>
<link rel="STYLESHEET" type="text/css" href="css/stylesheet.css">
</head>
<script language="javascript">
var selectColor = "<?=$selectColor?>";
var unselectColor = "<?=$bgcolor?>";
</script>
<script src="js/vMenu.js" type="text/javascript"></script>
<style>
body {
background-color : <?=$bgcolor?>;
}
</style>
<body>
<table cellpadding="1" cellspacing="0">
<?
getTSChannelInfo($ip,$port,$tPort);
?>
</table>
</body>
</html>
Last but not least important....I'm not german so I don't replay to mail from all of you who been writting mail to me in german....
Best Wishes
Neddie a.k.a Niklas
Dennisbier
24-04-2005, 10:21
http://ts.dmpclan.nl it is working only the icons are verry bad how can we fix the icons ??? :confused:
http://dmpcts.gerwinhummel.nl/ts/ts2.php it is working only the icons are verry bad how can we fix the icons ??? :confused:
Well, I just decompressed the zip file to see if something strange had happend to the pictures but they are correct so something must got wrong when you decomressed them or when you transfered them to your FTP. I suggest that you download the zip file again and replace those image icons.
Make sure to enforce BINARY mode when uploading images by FTP.
Dennisbier
24-04-2005, 14:04
ty Brain its fixed :)
And NiklasH its working verry good ty nice script
COOLover
23-05-2005, 17:02
Hello, that is more viewer best which I in the net found.
I can help in German to ask either here in the board or TS: 80.190.253.211:8015 or webmaster@scz-clan.info
I can also help it into different systems to build.
at present I rewrote it to the BXCP with no problems!
sorry for my bad English
Mr Sparkle
27-08-2005, 02:36
hey,
i really want to get your ts_viewer working on my site niklash but it does not work at all this is what comes up here (http://www.clan-uaf.net/ts_viewer/ts2.php)
I am not sure what is going on, I do have a teamspeak server that is working. Please help me.
COOLover
27-08-2005, 02:50
work on your server php?
is your chmod right?: 644 or 755 or 777
is on your webspace a .htaccess?
Mr Sparkle
27-08-2005, 03:31
work on your server php?
is your chmod right?: 644 or 755 or 777
is on your webspace a .htaccess?
sorry i fully did not understand that??
COOLover
27-08-2005, 12:01
allows your webhoster using php scripts at your webspace?
what is th CHMOD of the php files?
do you have a .htaccess on your webspace?
My output is:
Couldn't connect to server
- Verify that the TS2 host allow a connection via TELNET.
- Verify that correct IP Address to server.
- Verify that correct Server QueryPort number has been entered.
- Verify that correct port number to the TS2 server has been entered.
Seems like a config-problem (wrong TCP-Query, ...)
Mr Sparkle
27-08-2005, 15:30
how can i find out all this stuff?
how can i find out all this stuff?
I know I wrote this below:
"Verify that the TS2 host allow a connection via TELNET"
But what it really should say is:
"Verify that your webhost allow the function called fsockopen"
It seems more and more of the bigger webhosts are blocking certain function with function_disabled() in their php.ini. So if you guys planning to get a new webhost, then make sure they doesn't block PHP functions like fsockopen.
This also might be useful
http://www.karakas-online.de/EN-Book/change-php-parameters.html
bruthish
03-09-2005, 01:19
I have gotten the script to work on my homepage using IFrames without much problem. I am also using the "getTSUser" Function. However, all I want is the names of people that are online. Is there a way to get rid of the other info like PL, Online time and curent channel?
Like I said..All I want is the icon and the name of the person online.
Thanks for you help.
The best way is to create a new function in the file called ts2status.php and call that function instead in the function called setTSUsers(). Below is how to do it.
function setSingleTSUsers($uArray,$ip,$port,$tPort)
{
echo " <table cellpadding=\"0\" cellspacing=\"0\">\n";
for($i=0;$i<count($uArray);$i++) {
$innerArray=$uArray[$i];
echo " <tr>\n";
echo " <td>".setUserStatus($innerArray[12])."</td>\n";
echo " <td class=\"bread\"> <b>".removeChar($innerArray[14])."</b> (".setPPriv($innerArray[11])."".setCPriv($innerArray[10]).")</td>\n"; // Nick Name
echo " </tr>\n";
}
echo " </table>\n";
}
bruthish
03-09-2005, 21:28
This is what I am getting after adding your function:
Notice: Undefined variable: uArray in
I put in exactly as you did. Any ideas?
BTW: Great Script!
This is what I am getting after adding your function:
Notice: Undefined variable: uArray in
I put in exactly as you did. Any ideas?
BTW: Great Script!
Here is how to do it:
Step 1.
Add the function I told you
Step 2.
Look in the function called getTSUsers and look in the bottom of this function where you find a call to the function setTSUsers($uArray,$ip,$port,$tPort,$bgcolor,$head erColor);.
This is were you change your call to the new function, setSingleTSUsers($uArray,$ip,$port,$tPort);
Step 3.
On your main page you call the function called getTSUsers and it works fine.
bruthish
05-09-2005, 14:05
Niklas, I did as you said and it works! However, I get a guy name "nick" shown as online and a user...but he is not on team speak....any ideas on that one?
hi NiklasH, excellent script :)
i use it here (http://www.nofearclan.com) and have made a few 'cosmetic' changes to it
our ts is set up with a password which allows everyone to join the public channel - once there members can then switch channels by entering the appropriate password for that channel
what i need is to disable the 'mouseover' link on the rest of the channels shown on the web page (i need the public channel to keep the link but the other channels not to have links)
is this possible???
Biersektenguru
21-10-2005, 10:15
i got no connection to the server, its protectet by an password, so i add $serverPasswort = "xxxxxx"; behind the ports, but i still got no connection, how can i make sure that all settings are correctly.
i have no h.access on my server do i need this?
problem fixed
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.