Community Forums Today's Posts     Member List     Archive    
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2003
    Location
    Louisiana
    Posts
    3

    Talking 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.

    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>";
    
    ?>
    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.

  2. #2
    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.

  3. #3
    Join Date
    Oct 2003
    Location
    Louisiana
    Posts
    3
    Well this one doesnt require it!

  4. #4
    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

  1. TeamSpeak Server won't report Statistics to your Webserver/PHP Script
    By T. Boonstra in forum [TeamSpeak Classic] General Questions
    Replies: 0
    Last Post: 21-06-2002, 21:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •