Results 1 to 4 of 4
Thread: PhpNuke Teamspeak Login Block
-
07-06-2004, 14:50 #1
PhpNuke Teamspeak Login Block
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
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.
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.Code:<?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>"; ?>
-
07-06-2004, 21:01 #2
-= TeamSpeak Addict =-
- Join Date
- Apr 2004
- Location
- Dominican Republic
- Posts
- 115
Actually there are PHP-Nuke Blocks,
this one requires gllcTS2 4.1.6 or better:
http://www.gryphonllc.com/forum/show...ction=lastpost
It will allow you to logon to the posted server too.
-
08-06-2004, 04:13 #3
Well this one doesnt require it!
-
09-06-2004, 22:38 #4
-= TeamSpeak User =-
- Join Date
- Jun 2002
- Location
- California, USA
- Posts
- 18
mine is a bit more organized , I havent bocked it up in php yet because I would like it to be for postNuke and for phpNuke.. it is generic so edit the obvious stuff like "YOUR URL OR IP HERE" and "SERVER PASSWORD HERE".
--------------------
<body>
<script>
var nickname = "";
var loginname = "";
var loginpass = "";
function codename()
{
if(document.ts.tsregd.checked)
{
document.ts.tsnick.disabled = false ;
document.ts.tslogn.disabled = false ;
document.ts.tspass.disabled = false ;
}
else
{
document.ts.tsnick.disabled = true ;
document.ts.tslogn.disabled = true ;
document.ts.tspass.disabled = true ;
}
}
function tsConnect()
{
nickname = document.ts.tsnick.value ;
loginname = document.ts.tslogn.value ;
loginpass = document.ts.tspass.value ;
if(document.ts.tsregd.checked)
{
location.href = "teamspeak://YOUR URL OR IP HERE/?nickname=" + nickname + " | webUser ?loginname=" + loginname + "?password=" + loginpass ;
}
else
{
location.href = "teamspeak://YOUR URL OR IP HERE/?nickname=" + nickname + " | webUser ?password=SERVER PASSWORD HERE" ;
}
}
</script>
<table width="500" height="300" align="left" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" valign="bottom" background="">
<form name="ts">
<table>
<tr>
<td colspan="2">
<input type="checkbox" name="tsregd" tabindex="1" onclick="codename()">
<font class="pn-normal">I am registered on this TeamSpeak </font>
</td>
</tr>
<tr>
<td>
<font class="pn-normal">TeamSpeak Nickname: </font></td><td>
<input type="text" name="tsnick" size="17" maxlength="17" tabindex="3" value="Guest_User" onFocus="value=''" disabled>
</td>
</tr>
<tr>
<td>
<font class="pn-normal">TeamSpeak Login ID: </font></td><td>
<input type="text" name="tslogn" size="17" maxlength="17" tabindex="4" value="None" onFocus="value=''" disabled>
</td>
</tr>
<tr>
<td>
<font class="pn-normal">TeamSpeak Password: </font></td><td>
<input type="password" name="tspass" SIZE="10" maxlength="17" tabindex="5" value="password" onFocus="value=''" disabled>
</td>
</tr>
<tr>
<td colspan="2">
<input type="button" name="tsconn" tabindex="6" value="Connect" onClick="tsConnect()">
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>Last edited by xMACHINEx; 11-06-2004 at 01:04. Reason: Updated Script
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
TeamSpeak Server won't report Statistics to your Webserver/PHP Script
By T. Boonstra in forum [TeamSpeak Classic] General QuestionsReplies: 0Last Post: 21-06-2002, 21:00



Reply With Quote