TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 568
  • Total: 568

Teamspeak block!

Started by -Prismatic-, October 14, 2005, 11:20:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

IchBin

Cory, if you read what it says it tells you to create a new php block. Inside that block you put the code highlghted in bold.

Hairy

Also Cory....This might be a silly question but have you installed TinyPortal?

I ask because it appears you are confused about the "php block" and you also only registered minutes before posting in this thread so I am led to believe you don't have the TinyPortal mod.

A new PHP Block can be easily created in your Admin panel if you have TinyPortal mod installed

Cory

Quote from: Hairy on November 16, 2007, 02:36:35 AM
Also Cory....This might be a silly question but have you installed TinyPortal?

I ask because it appears you are confused about the "php block" and you also only registered minutes before posting in this thread so I am led to believe you don't have the TinyPortal mod.

A new PHP Block can be easily created in your Admin panel if you have TinyPortal mod installed

Ohhhh! Sorry. I thought tinyportal was just the name of the site! I will add tinyportal mod. Thanks!

Cory

New problem with the teamspeak block.

I Keep getting:

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 /www/110mb.com/c/o/r/y/_/_/_/_/cory/htdocs/forum/teamspeak/ts_config.inc.php on line 216

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 /www/110mb.com/c/o/r/y/_/_/_/_/cory/htdocs/forum/teamspeak/ts_config.inc.php on line 216

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 /www/110mb.com/c/o/r/y/_/_/_/_/cory/htdocs/forum/teamspeak/ts_config.inc.php on line 273

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 /www/110mb.com/c/o/r/y/_/_/_/_/cory/htdocs/forum/teamspeak/ts_config.inc.php on line 273

IchBin

Cory, please use the search for errors. I would wager to say that 99% of the time the errors have already been covered.
http://www.tinyportal.net/index.php?topic=18043.msg163285#msg163285

beardy

#295
Quote from: Selaiah on September 16, 2007, 04:09:32 PM
2: strftime() expects parameter 2 to be long, string given
Datei: /httpdocs/ts/ts_config.inc.php
Zeile: 462
?action=unread

This Error seems to occur like 100 times a day :D and I don't really understand the message.

Any idea what it could be?

After having read through this whole thread, first to get a somewhat fixed ts_config.inc.php file, that fixed some errors, on page 16 in this thread IIRC, the error that was left, was the same that you (and everyone with the same version and/or configuration of php as we have) have.

The message means quite exactly what it says. It's a warning, that strftime() would like the second parameter to be a long integer, but a string is given to it instead.

Now.. someone said it earlier, and I can not but agree fully, this thing is horribly written, all functions and variables are just named with a number, and as the first post said, it was apparently even worse when he hacked it into fitting into tinyportal.

Anyway Selaiah, find line 462 in your ts_config.inc.php, it looks like this now:


$_54=strftime("%S seconds", $_53);


Replace it with the following:


$_54=strftime("%S seconds", (int)$_53);


(As you see, just add '(int)' before the $_53 (that noone can know what on earth it is, because of the way this thing is written))

Have a nice day.

SMOKEY

Anyone know what to edit to get this to work in joomla?

Smoky

you might want to head back to joomla and ask them on that. unless you have smf/tp, this will not help you.

SMOKEY

I have 2 sites and this works fine on smf/tp site. Just asking about joomla. Thanks anyway.

Hairy

I think I'm seeing double  :2funny:

This website is proudly hosted on Crocweb Cloud Website Hosting.