PDA

View Full Version : ACTSViewer - Another multifunctional TeamSpeak-Viewer for PHP


Cyrus
15-04-2006, 12:03
Hi folks,
a few weeks ago I decided to write a TeamSpeak-Viewer from scratch and now it is ready.

You may think: why just another TeamSpeak-Viewer we already have tons of them.
Hmm I don't know but maybe some of those features are convincing you.

Main Features:


TeamSpeak-like tree view of either a full server or one channel with all of its contents
Collapsable objects (channels)
Optimized sort order
Possibility to join a channel with a few clicks including all possible and required password prompts
Auto-update and auto-collapse features
Displays context information by just pointing the cursor to any object
Template engine to allow design changes
Very fast clean object-oriented TCP-Query parsing engine
Powerful problem solving features that helps discovering problems with configuration
Can be integrated into all kinds of website or dynamic applications using either PHP Include, AJAX Include or IFrames

Installation:
Just look at demo.php and you will get it ;-)

Troubleshooting:
Problems with connection (e.g. Server offline although online): Run ->connection_test();

Demo:
http://demo.absurdcoding.org/actsviewer/

Download:
http://www.planetteamspeak.com/component/option,com_docman/task,doc_details/gid,43/Itemid,69/ (http://svn.absurdcoding.org/actsviewer/release)

License:
GNU General Public License

Requirements:
Webserver (e.g. apache2) with PHP support
PHP 4 >= 4.3.0 or PHP 5

Tested on Ubuntu dapper with:


Firefox 1.5.x
Opera 8.5.4
Konqueror 3.5.2
Internet Explorer 6.x

I hope you will like it :D
Any questions, feature requests, ... please post here.

CoarEQ
15-04-2006, 16:03
if it already exists, i need help finding out how to set it, but i was wondering if there is anyway that i can get this to work with a CSS

Cyrus
15-04-2006, 16:13
Depends on what you want to customize.
If you want to customize fonts, bg-color etc just put a layer around it and set the styles there.

Example:

<div id="tsviewer" style="color: white; background-color: black">
<?php include("demo.php"); ?>
</div>

For basic CSS things. (This example would look like http://demo.absurdcoding.org/actsviewer/index-black.php )
For font-size you may have to change the header.php in the template directory, beacuse if you choose it too big it will break the layout.

If you want to customize the info-layers look at the header.php in the template directory and you can customize it styles there.
If you want to do some special other things please describe them and we will find a solution for it.

CoarEQ
15-04-2006, 16:22
thing is, i already have a css i want it to work with. is there anyway i can use it?

Cyrus
15-04-2006, 16:26
Just build an HTML / PHP-Site with your stylesheet and include the viewer the rest should be no problem.

Brain
15-04-2006, 17:24
I'm getting the faint idea CoarEQ is talking about a CMS.

Cyrus
15-04-2006, 17:42
If he means a CMS and cannot include PHP files then he should have a look at the AJAX inclusion that is described as an example in the htmldemo.htm (http://demo.absurdcoding.org/actsviewer/htmldemo.htm)

twitch
16-04-2006, 23:26
Nice work!

Ang3lu5
11-09-2006, 11:31
If i try to include the demo.php into my index.php i get the following error
Fatal error: Your template path is wrong or there is no valid template
it seems that the script can't finde the correct path to the templates or i only get a blank site

structure:

index.php
/inc/demo.php
/inc/actsviewer.php
/inc/lib/
/inc/tpl_absurdcoding/

Cyrus
11-09-2006, 13:31
Open demo.php and set:

$ts->setTemplate(dirname(__FILE__)."/tpl_absurdcoding");

This should set the path relatively to demo.php

Ang3lu5
11-09-2006, 15:42
not working for me with your code i get this
Notice: Invalid template path!
and
Fatal error: Your template path is wrong or there is no valid template
and if i call the demo.php directly i get a blank page

Cyrus
11-09-2006, 15:52
oh this looks like a little inconsistens in code
i will fix it soon:
try this:
$ts->template = dirname(__FILE__)."/tpl_absurdcoding";

instead of

$ts->setTemplate(dirname(__FILE__)."/tpl_absurdcoding");

Ang3lu5
11-09-2006, 15:58
ok this looks a bit better than the other one ^^ BUT! now i see the tree but it can't load any images and i get some java errors

Cyrus
11-09-2006, 16:43
Maybe setting the template path explicitely to
"lib/tpl_absurdcoding" instead of dirname(__FILE__)."/tpl_absurdcoding"
works with the browser, this depends on the rest of your site (the one you include it in)

Ang3lu5
11-09-2006, 17:06
setting it to lib/tpl_absurdcoding has no effect at least not the one i need ^^
Fatal error: Your template path is wrong or there is no valid template in: in E:\Xampp\htdocs\actsviewer\actsviewer.php on line 99

Cyrus
11-09-2006, 17:11
then you may have to change the html code manually in the template to the appropriate path

misjka
11-09-2006, 22:03
Hi!

I try to install this great add-on, but unfortunately things doesn't turn out that well for me :(...

Some background information:

-) I have a webhost where the script files resides on. This host is NOT the same as the TS host, but the query port is opened on that webhost.

- ) The udp and tcp ports for TS are the standard ones on the TS host.

-) Until now I have run another TSviewer script on my webhost with the configuration above with success, so I know it could work.

-) I'm using FireFox 1.5 and IE 6.

Problems occurring:

-) To be sure things are as correct as possible, I access the htmldemo.htm (since nothing happens as I access the index.php file) file in my browser after setting up the demo.php file. The variables that are set:

$ts->setHost, of course but I won't reveal the value in public of course ;)
$ts->setTCP(51234);
$ts->setUDP(8767);
$ts->verbose();
$ts->display_server();
$ts->connection_test();

-) Before I activated the verbose and connection_test variables I got no output at all from the scripts :(

- After uncommenting the variables, I get a loading output message for a short while and then the output disappears :(

- BUT, after uncommenting //$ts->setHost("http://example.com/path/to/your/actsviewer"); I receive:

Unable to connect to TeamSpeak-Server http://example.com/path/to/your/actsviewer: Success
ACTSViewer Connection Test
Testing TCP socket connections... [ ok ]
Trying to connect to your TeamSpeak-Server... [fail]
Error: Success
Please check your configuration (host, TCP-Port) and make sure routing and forwarding is OK!

Hmmm, so my conclusion is that the script maybe manages to connect to my TS server (since I don't get any error messages before that last move) before I do this last move above, but something happens with the output...?

Anyone with a clue? Will be much obliged to make this work :)!

Cyrus
12-09-2006, 15:29
setHost must point to the IP-Address of the TS-Server to work
In older Version this was the full path for the viewer sorry for leaving that old variable in the config.

misjka
12-09-2006, 15:58
Well, since I'm using DynDNS for the TS server I just gave the variable the host + domain name (but I didn't want to show the name here in public :)). But, the problem is that when the name is correctly set, no output will come out from the script's query to the TS server :(

Dan2k3k4
14-09-2006, 15:04
Great job Cryrus - I'm using vBulletin 3.5.5 and I'm just trying to "embed" into a page... it shouldn't be too hard but I seem to have it working on its own as the default page - I'll just need to edit a few things and I'm sure I'll figure it out then if you want I can PM you the site I have it on once it's setup! (hopefully shouldn't take too long - but I have other things to sort out too)

:D

EDIT: P.S. I am a Server Admin on TS and when I have the channel commander on (red circle icon on TS) - it shows up as an @ on the /index2.php (renamed index.php to index2.php as I use index.php for homepage...)

Archrival
18-09-2006, 09:00
The script works like a charm. I do want to stylize it a bit more. How do I take out it displaying stuff like;

- Speex 12.3 (R)

from all channels and:

[ (Un)collapse All ] [ Enable Autorefresh ]

Thanks

Shing
12-10-2006, 00:07
Hi,

i got this error

Error parsing script headers:

*** glibc detected *** double free or corruption (!prev)


Script yielded no output.

as u can see here: click to see (http://www.ffamily.de/actsviewer/demo.php)

any idea for help?!?

shing.

Cyrus
12-10-2006, 15:25
this error has nothing to do with the PHP script.
this looks like a problem with php itself

Longtom
13-10-2006, 16:32
This is awesome mate. I have one question though. My Teamspeak server has a password and my channel has a password. How do I add these to the demo.php?

Cyrus
13-10-2006, 16:39
What do you exactly mean with "add"?
Do you want to write them there or what do you want to do?

Longtom
13-10-2006, 17:07
I used the teamspeak 2 connection test http://ts2test.planetteamspeak.com/?page=step1 and it tells me that the reason I couldn't test this connection is that it could be password protected. I know the server is password protected, could that be stopping me from seeing it?

The server address is 203.26.94.143, the udp port is default. I don't know what the query port is, I believe it is default. It is not my server so I can't check the ini file.

I guess I would like to add the passwords there

edit: this is the message the teamspeak 2 connection test gave me:
The UDP test could establish a connection to the specified TeamSpeak server, but was unable to perform all requested operations.
Possible reasons:
1. Your server is protected by a password.
2. The TeamSpeak 2 Connection Test is using a nickname, which is not allowed on your server.

Cyrus
13-10-2006, 17:39
the udp has nothing to do with teamspeak viewers
you only need tcpquery and no password

Longtom
13-10-2006, 21:30
Thanks for your help. I will try and find the tcp port as it doesn't seem to be default.

VoolFz
31-10-2006, 13:54
Hello guys,im a total noob at php and other stff,cud somebody help me with setting up my ts viewer? my msn voolfz********.com xfire: voolfz

Pls pls pls

fatrat
14-11-2006, 13:18
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@the5thplatoon.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

when i use the wrong TCP port is runs the connection test and fails, as it should.

when i use the correct port i get this server error.

Cyrus
14-11-2006, 15:08
More information about this error may be available in the server error log.
So did you look there for the error message?


PS: Please don't send me any support-relating mails that do not confirm to the rules of http://catb.org/esr/faqs/smart-questions.html. They will obviously be ignored.

fatrat
14-11-2006, 17:13
i did look in for an error_log, couldnt see one in that the actsviewer folder and the error_log in the root folder didnt contain any errors concerning this.

ty for the help and im glad you are still supporting this mod.

Cyrus
14-11-2006, 21:27
You have to look in the apache error log: /var/log/apache2 for example

fatrat
15-11-2006, 09:48
i dont see any folders like that:

http://i5.photobucket.com/albums/y172/sc24/myfolders.jpg

Cyrus
15-11-2006, 15:57
Then you have to ask your server provider. That error message is not generated by the application or php itself but by the webserver so this has obviously some deeper cause than just an error in the program code.

fatrat
15-11-2006, 18:49
k, well nvm anyway, got another webscript working with np, so i guess ill just forget about it ;)

http://www.the5thplatoon.com/mytsviewer/ts2.php

dont know why my server dont like your script, but i cant be bothered to find out.

ty for your help anyway.

Teemspeek
23-01-2007, 21:22
I need to contact with you. Could you give me your email? I msged to you by private message

lenlee
28-03-2007, 11:39
cannot display chinese,what i do?
http://bbs.nowbmzk.com/actsviewer/

sonicbj
28-04-2007, 12:26
hi i just try and intrall this and it doesent work i just get the following problem:

ACTSViewer Connection Test
Testing TCP socket connections... [ ok ]
Trying to connect to your TeamSpeak-Server... [fail]
Error: Connection timed out
Please check your configuration (host, TCP-Port) and make sure routing and forwarding is OK!

but i dont think it is my server because if i use http://ts2test.planetteamspeak.com i get everything as working

[OK] The UDP connection test finished without errors!

The UDP test could establish a connection to your TeamSpeak server. Your voice server can be accessed by anybody anywhere on the Internet.

[OK] The TCP connection test finished without errors!

The TCP test could establish a connection to your TeamSpeak server. Your servers TCP query interface can be accessed by anybody anywhere on the Internet.

[OK] The HTTP connection test finished without errors!

The HTTP test could establish a connection to your TeamSpeak server. Your servers web interface can be accessed by anybody anywhere on the Internet.

Longtom
28-04-2007, 14:48
Does your TS Server have a lot of channels? I found that if the server has a lot of channels, it times out as I'm assuming it checks every channel for users.

sonicbj
29-04-2007, 07:44
it has 2 channels and it still doesent work if it has one

Cyrus
29-04-2007, 09:47
@sonicobj:
Are you sure you set the right host, tcp and udp port and did not mess them up?

@longtom:
I did not notice problems with large servers as you see in my demo here:
http://demo.absurdcoding.org/actsviewer/ this is TeamSpeak Public #1 which has very large user number in comparison with other servers.

it times out as I'm assuming it checks every channel for users.It internally builds a tree structure, like the one you see in the TeamSpeak-Client. This "checking" is done with the player and channel list of the teamspeak-servers, which is only requested once and then hold in cache for further requests.

I did several tests and especially on large servers there it is notable faster than tsdisplay and it also seems to be faster than the tsviewer used on tsviewer.com

Saxxoo
02-06-2007, 22:33
According to the setup port number isn't supposed to be entered, but the TS server I need info from is depending on this port number since removing it will connect to another server.

So how do I make sure to get connected to the right server when port number isn't possible to make use of in the configuration?

Cyrus
09-06-2007, 23:09
I think you missed something in the config

You can set both TCP and UDP ports.

Saxxoo
10-06-2007, 00:34
I think you missed something in the config

You can set both TCP and UDP ports.

They are set.

The problem is that the host name define what server being connected to.

Using no port connect to 1 server, including the port will connect to another server

highlanderc
21-06-2007, 21:18
I am always getting server is offline... no matter what i do.. as a matter of fact, no matter which script i use and which server i connect to. That began to happen yesterday and i did no changes.. I suspect a server udp issue??????

aplysia
22-06-2007, 19:57
Great script. I got it to work, but only if I set the Query TCP port to port 21 in both the demo.php script and the server.ini file.

If I keep the query TCP port on the defult one (in both the demo.php and server.ini file) then I get a server not online error.

Any ideas why the script works only if I use TCP port 21?

Cheers,

BHKai
22-06-2007, 21:39
That port is mostly used for ftp. Are you running it on the same computer that the TS server is running on? The default port might be blocked.

aplysia
22-06-2007, 22:19
That port is mostly used for ftp. Are you running it on the same computer that the TS server is running on? The default port might be blocked.

I sent an email to my ISP and port 51234 was blocked. They have unblocked it and it works now on the default port, yea!!!!!

Thanks for the help.

Cheers,

highlanderc
25-06-2007, 10:44
what is your ISP?

Persecutor
02-07-2007, 01:03
I have the same issue; a failure to connect to the TS Server. I've checked, double-checked, and triple-checked the demo.php configuration settings; they are correct. I've had three other users attempt to connect; same result.

I've confirmed that the Query port (51234) is open on the Teamspeak host server. Upon visiting the index.php file I receive this response, after a pause of about 10 seconds:

This is a demonstration of the Absurdcoding TeamSpeak-Viewer. Open demo.php for configuration of this demo.

Unable to connect to TeamSpeak-Server xxx.xxx.xxx.xxx: Connection timed out
ACTSViewer Connection Test
Testing TCP socket connections... [ ok ]
Trying to connect to your TeamSpeak-Server... [fail]
Error: Connection timed out
Please check your configuration (host, TCP-Port) and make sure routing and forwarding is OK!

The host IP is correct, the TCP Port is correct, and the Query port is correct and open.

Everything is working normally but the script is not able to connect to the server. Any suggestions as to a solution?

The script is hosted on a shared server.

Pers

Persecutor
02-07-2007, 16:18
Additional --

I ran the TSViewer.com Query port scan and the port was identified ... I presume it is open and communicating to TSViewer.

That suggests that there is a problem with the script somewhere, although I readily admit I'm way over my head here. The entries in demo.php are correct but the resulting script is as above, an inability to connect because of a "time out".

The particular TeamSpeak server uses 5 channels and 8 subchannels, far fewer than the ACTSViewer demo site.

Any suggestions or solutions are most welcome. I'm out of ideas on where to proceed.

HaArD
05-07-2007, 04:24
I'm having problems getting this to work. I am also trying two other PHP based TS viewers and they are working (http://tsdisplay.sourceforge.net/ and http://www.goteamspeak.com/index.php?page=3rdparty&id=3&item=2). In addition, I am currently using the TSWebViewer (http://www.zbase1.com/) and it is working perfectly as well. I say all this just so you know that I know what hostname and ports to use and how to type them correctly.

When I put my TS host address incorrectly I get this:
Unable to connect to TeamSpeak-Server bad.host.name: Connection timed out
ACTSViewer Connection Test
Testing TCP socket connections... [ ok ]
Trying to connect to your TeamSpeak-Server... [fail]
Error: Connection timed out
Please check your configuration (host, TCP-Port) and make sure routing and forwarding is OK!

When I fix it, so it points to the good.host.name address I get a blank page.

This is the same issue reported by misjka last September....

These are some other significant details from demo.php, ports are correct:

$ts->setHost("good.host.name");
$ts->setTCP(51234);
$ts->setUDP(8767);
$ts->verbose();
$ts->display_server();
$ts->connection_test();

I tried the PlanetTeamspeak connection test to see if it would report anything useful. These are my results:

[**] The UDP connection test finished with warnings!

The UDP test could establish a connection to the specified TeamSpeak server, but was unable to perform all requested operations.

Possible reasons:
1. Your server is protected by a password.
2. The TeamSpeak 2 Connection Test is using a nickname, which is not allowed on your server.

[OK] The TCP connection test finished without errors!

The TCP test could establish a connection to your TeamSpeak server. Your servers TCP query interface can be accessed by anybody anywhere on the Internet.

[!!] The HTTP connection test finished with errors!

The HTTP test could not establish a connection to the specified server.

Possible reasons:
1. You entered an invalid server address or port number.
2. You're using a software firewall or router, which is preventing a connection to the server.


I am using a password protected channel, but I could not find any place in demo.php to configure that. Is this not supported? Is the UDP connection even needed? I thought the TCP Query port was sufficient.

The HTTP is not forwarded through my router and I don't plan to. Is this needed?

BHKai
05-07-2007, 05:27
I'm having problems getting this to work. I am also trying two other PHP based TS viewers and they are working (http://tsdisplay.sourceforge.net/ and http://www.goteamspeak.com/index.php?page=3rdparty&id=3&item=2). In addition, I am currently using the TSWebViewer (http://www.zbase1.com/) and it is working perfectly as well. I say all this just so you know that I know what hostname and ports to use and how to type them correctly.

When I put my TS host address incorrectly I get this:


When I fix it, so it points to the good.host.name address I get a blank page.

This is the same issue reported by misjka last September....

These are some other significant details from demo.php, ports are correct:

$ts->setHost("good.host.name");
$ts->setTCP(51234);
$ts->setUDP(8767);
$ts->verbose();
$ts->display_server();
$ts->connection_test();

I tried the PlanetTeamspeak connection test to see if it would report anything useful. These are my results:



I am using a password protected channel, but I could not find any place in demo.php to configure that. Is this not supported? Is the UDP connection even needed? I thought the TCP Query port was sufficient.

The HTTP is not forwarded through my router and I don't plan to. Is this needed?

UDP port is where the voice communication takes place. The query port is just for telnet.

HaArD
05-07-2007, 07:05
BHKai,

Your information, while technically correct, doesn't really help me solve my problem with ACTSViewer.

Thanks anyway.

Nicky
30-08-2007, 12:51
hmm i cant no more download the viewer , anyone can up it new,plz?

HaArD
30-08-2007, 13:24
Here you go... exactly what I downloaded July 3rd 2007..

Nicky
30-08-2007, 13:51
Big Thx HaArD

HaArD
31-08-2007, 04:55
I should warn you I never got it to work.....

Roi Danton
24-09-2007, 13:54
It does work, but the function ob_start is defined nowhere. So as a workaround just remove $this->_display_init();at line 110 and it works fine.

[HDRW]razor
30-09-2007, 09:19
Our TS server is passworded, where do I add that to allow connection?

forze
04-10-2007, 22:33
MEH The server hosting this file requires a username & password :confused:

Whats the point in this post if we cant DL the file? :(

Deltaforce229
04-11-2007, 01:22
Could someone please post a mirror.

ScP
04-11-2007, 04:16
http://www.planetteamspeak.com/component/option,com_docman/task,doc_details/gid,43/Itemid,69/

brommeltje
28-11-2007, 20:12
I got the script almost 100% working. The only thing that i cannot get working is the auto refresh. If i click the link, it will refresh after the set time, but it does so only once. The link reverts back in 'enable autorefresh'. Is there a way of setting it up so auto refresh will be enabled by default and if someone doen't want to, that they can turn it off.

[HDRW]razor
02-12-2007, 03:46
The script works great. I'd like to change the background color, how would I do that?

heinzG
08-03-2008, 15:28
hello everyone,

i tried getting this script via svn ... but it seems as if the svn is passworded now.

i've read through all posts now, but no account-data anywhere to find *sniff* ... could someone help me out?

or is the ACTSViewer now rather unsupported and i have to use the offered zipfile 2 pages before?

TIA for any helpful hints :o)

CyJobes
15-05-2008, 02:55
I'm trying to download it but it keeps asking me to login?

Wassup?

lidaof
21-05-2008, 17:54
can you give some tips on how to display chinese characters normally?
thx in advance:)

Ch3ck3r
24-05-2008, 12:37
try to work with unicode settings in php (mb_functions)

Aerwin
21-06-2008, 00:54
Has anyone successfully used this inside a template used by phpbb3? I have created a TeamSpeak page with in the phpbb3 forums and have tried to use this script within that page to no avail. Any help would be greatly appreciated.

Thanks,

Aerwin

GTWillemsen
08-07-2008, 15:58
website link 4 download asks for log in/account

JasonOlsen
09-07-2008, 03:11
Has anyone tried the link ScP posted?

http://www.planetteamspeak.com/component/option,com_docman/task,doc_details/gid,43/Itemid,69/

Just tested and clicking the 'Proceed to download' button brings up a save file prompt.

HaArD
19-07-2008, 01:41
It does work, but the function ob_start is defined nowhere. So as a workaround just remove $this->_display_init();at line 110 and it works fine.

I've still not been able to make this work (see post #53 (http://forum.teamspeak.com/showpost.php?p=161926&postcount=53) earlier in this thread) and commenting the suggested line in actsviewer.php had no effect at all.

I have noticed something though...

if my $ts->setHost value is set to my Teamspeak server then demo.php shows nothing and htmldemo.htm will show Loading TeamSpeak-Viewer... briefly but then it goes blank too.

if my $ts->setHost value is set to any other address I get output...

Unable to connect to TeamSpeak-Server website.domain.name: No route to host

ACTSViewer Connection Test
Testing TCP socket connections... [ ok ]
Trying to connect to your TeamSpeak-Server... [fail]
Error: No route to host
Please check your configuration (host, TCP-Port) and make sure routing and forwarding is OK!

The $ts->setHost value exists twice in demo.php with two totally different comments.


//Set the hostname to the address of your server (e.g. example.com or 123.123.123.123) but DO NOT include the port
//If your browser runs into problems displaying the images you should use the following line to point it to the right directory


Cyrus replied that this should be the address of the TS Server which makes sense, but yield a blank page... Can anyone provide any useful tips?

Matre
28-11-2008, 23:23
How to download it? I need to have some passwords 0.o

Urbagsfrask
05-04-2009, 15:57
do not understand