Hi all, i installed the ts block, awesome piece of kit, created a php block and entered the code as suggested, by on my site where the teamspeak block should be i get this error....
Parse error: syntax error, unexpected '&' in /home/utclan/public_html/Sources/Load.php(1735) : eval()'d code(35) : eval()'d code on line 1
If i type the exact url of the ts_viewer.php it shows fine but just not in my block
Any ideas guy and gals???
Many Many Thanks
bigs
Please post the code you use.
thanks for your reply, the code i am using is
include ("teamspeak/ts_viewer.php");
my files are inside teamspeak folder in the root, and the forum/tp are installed into the root
I fixed that problem, the post where i copied the code used " instead of ' to enclose the path.
Now it seems to be working but it just says OFFLINE...
/* ---------- Teamspeak-Viewer - Anfang ---------------*/
$ts_viewer->set_Viewer(".:CUT3:.", "http://www.clan-ut3.com/");
$ts_viewer->set_Channels();
$ts_viewer->show_ts_viewer("195.149.21.133", 12080, 51234, "");
/* ---------- Teamspeak-Viewer - Ende ---------------*/
the ports are correct, i used a website to find the correct query port by changing my web post url.
is there any way to tell if the port used is closed on my webspace? could this be the issue?
many many thanks
bigs
Yes, that is what I think is the problem. Ask your host if they are blocking the ports. Not your webhost, but the team speak host.
hmm i would say my ts host wouldnt do that but i have asked the question anyway, is there any possibility that my webhost could be blocking the port?
thanks
biggsy
It shouldn't matter what the host is doing. The script calls the TS server port, not the webserver port.
We have our 128k stream stats blocked by our webhost.. it's rather annoying as I can only display stats from their hosted 64k stream.
They either ignore the request or say no. If they opened that port for us, it would probably open that port for every website hosted on the same server.
Thats the conclusion I came to.. I would move hosts, but apart from that little gripe.. I'm happy with the service they provide.
Hello,
I always get these error after installing the teamspeakviewer in my implemented TS-Block:
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in .../teamspeak/config.php on line 78
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in .../teamspeak/config.php on line 146
I created a new teamspeak block about the tinyportal admin panel and implemented the viewer correctly . Underneath these error, the teamspeak channel is displayed correctly, too. I already changed the php.ini to allow_call_time_pass_reference = On!
I don't really know what to do now.
Thx,
Prophecy
You'll need to ask your host if they can enable allow_call_time_pass_reference in the php.ini file on the server.