TinyPortal

Development => Support => Topic started by: biggsy on August 10, 2007, 10:53:43 PM

Title: Problem installing the teamspeak block!
Post by: biggsy on August 10, 2007, 10:53:43 PM
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
Title: Re: Problem installing the teamspeak block!
Post by: IchBin on August 11, 2007, 05:34:14 AM
Please post the code you use.
Title: Re: Problem installing the teamspeak block!
Post by: biggsy on August 11, 2007, 11:12:23 AM
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

Title: Re: Problem installing the teamspeak block!
Post by: biggsy on August 11, 2007, 11:14:49 AM
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
Title: Re: Problem installing the teamspeak block!
Post by: IchBin on August 11, 2007, 04:31:18 PM
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.
Title: Re: Problem installing the teamspeak block!
Post by: biggsy on August 11, 2007, 04:39:58 PM
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
Title: Re: Problem installing the teamspeak block!
Post by: IchBin on August 11, 2007, 07:13:33 PM
It shouldn't matter what the host is doing. The script calls the TS server port, not the webserver port.
Title: Re: Problem installing the teamspeak block!
Post by: Zetan on August 11, 2007, 10:27:21 PM
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.
Title: Re: Problem installing the teamspeak block!
Post by: Prophecy on November 13, 2007, 07:28:35 PM
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
Title: Re: Problem installing the teamspeak block!
Post by: IchBin on November 13, 2007, 08:16:30 PM
You'll need to ask your host if they can enable allow_call_time_pass_reference in the php.ini file on the server.