Proximo
07-06-2004, 14:50
Ok. From what I can tell noone has one and noone was planning to script one so I did. It consists mainly of HTML, but it is php(eh?) Don't worry about it :p It works. Neway...you have to edit the ip adress listed as xxx.xxx.xxx.xxx:xxxx
to your ip adress of your teamspeak server. I set the max chars to the box to 16 so it would fit in the block. This can be edited. Save the block as "block-teamspeak.php" and upload it into your blocks folder.
<?php
if (eregi("block-teamspeak.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
$content .= "<form name=\"testform\">";
$content .= "<center><b>Nickname</b><br><input type=\"text\" name=\"NICKNAME\" size=\"16\"> </center>";
$content .= "";
$content .= "<center><b>Login Name</b><br><input type=\"text\" name=\"LOGINNAME\" size=\"16\"> </center>";
$content .= "";
$content .= "<center><b>Password</b><br><input type=\"text\" name=\"PASSWORD\" size=\"16\"> </center>";
$content .= "<br>";
$content .= "<center><input type=\"button\" value=\"Join Server\" onClick=\"location.href='teamspeak://xxx.xxx.xxx.xxx:xxxx/nickname=' + testform.NICKNAME.value + '?loginname=' + testform.LOGINNAME.value + '?password=' + testform.PASSWORD.value;\"></center>";
$content .= "</form>";
?>
I really hope this works for you. Feel free to visit my webpage to see how it looks first. Its in my sig. If you have any questions, feel free to email me! Thanks! Good luck with it.
to your ip adress of your teamspeak server. I set the max chars to the box to 16 so it would fit in the block. This can be edited. Save the block as "block-teamspeak.php" and upload it into your blocks folder.
<?php
if (eregi("block-teamspeak.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
$content .= "<form name=\"testform\">";
$content .= "<center><b>Nickname</b><br><input type=\"text\" name=\"NICKNAME\" size=\"16\"> </center>";
$content .= "";
$content .= "<center><b>Login Name</b><br><input type=\"text\" name=\"LOGINNAME\" size=\"16\"> </center>";
$content .= "";
$content .= "<center><b>Password</b><br><input type=\"text\" name=\"PASSWORD\" size=\"16\"> </center>";
$content .= "<br>";
$content .= "<center><input type=\"button\" value=\"Join Server\" onClick=\"location.href='teamspeak://xxx.xxx.xxx.xxx:xxxx/nickname=' + testform.NICKNAME.value + '?loginname=' + testform.LOGINNAME.value + '?password=' + testform.PASSWORD.value;\"></center>";
$content .= "</form>";
?>
I really hope this works for you. Feel free to visit my webpage to see how it looks first. Its in my sig. If you have any questions, feel free to email me! Thanks! Good luck with it.