PDA

View Full Version : TS3 Viewer


S3Ponline
10-22-2010, 06:34 AM
I'm trying to add this viewer to the forum block

http://tsstatus.sebastien.me/

<?php
require_once("/var/www/tsstatus/tsstatus.php");
$tsstatus = new TSStatus("xxxxxx.com", 10011, 1);
$tsstatus->imagePath = "/tsstatus/img/";
$tsstatus->showNicknameBox = true;
$tsstatus->showPasswordBox = false;
$tsstatus->decodeUTF8 = false;
$tsstatus->timeout = 2;
echo $tsstatus->render();
?>

So I take out the <?php and the ?>
but I end up getting this error:

Fatal error: Cannot redeclare class TSStatus in /var/www/includes/ts3status.php on line 11

however, I'm not sure what classes it's redeclaring since it shouldn't be?

Thanks

S3Ponline
10-25-2010, 10:15 PM
Nobody has an idea?

BirdOPrey5
10-27-2010, 03:28 PM
What do you mean by forum block? You can't put PHP in templates...