Teamspeak

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Teamspeak
FNR_BulletFindr
CZ Newbie
FNR_BulletFindr has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Sep 04, 2004
0.00 posts per day
Posts: 7
Points: 734
   
IS there any way to make the teamspeak block from youe site scroll.If not do you know where i can get one for a center block? thnks in advance.



Back to top Reply with quote
#2   
Staffie
CZ Revered Member
 Codezwiz Site Donator
uk.gif
Occupation: Investigation Officer
Age: 39
Gender: Male
Website:
Status: Offline
Joined: May 27, 2003
0.19 posts per day
Posts: 1454
Points: 401,085
   
can yu post the teamseak block here so i can take a look??




_________________
Back to top Reply with quote
#3   re: Teamspeak
FNR_BulletFindr
CZ Newbie
FNR_BulletFindr has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Sep 04, 2004
0.00 posts per day
Posts: 7
Points: 734
   
this is the block i have.

<?php
/************************************************************************/
/* TeamSpeak Block For PHP-NUKE: Web Portal System */
/* =============================================== */
/* */
/* Copyright (c) 2004 by **CloseUp**|Ds| */
/* [ Register or login to view links on this board. ] */
/* I have only made this script with Cut & Paste from many other scripts*/
/************************************************************************/

if (eregi("block-TeamSpeak_nuke.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}

// retrieve server info
require("TSInfo.php");
$tss2info->getInfo();
$tss2info->userName="Guest";
$serverAddress = "xxx.xxx.xxx.xxx"; // TeamSpeak IP, don't use localhost here
$serverUDPPort = "8767"; // default 8767

// Don't edit below unless you know what you are messing with
$serverAddress2 = "$serverAddress:$serverUDPPort";

// Get Nuke UserName
global $user, $cookie, $user_prefix;
cookiedecode($user);
$username = $cookie[1];
$sql = "SELECT user_id FROM $user_prefix"._users." WHERE username='$username'";
// display channel list
$content .= "<table aalign=\"center\" width=\"100%\">\n";
$counter = 0;
foreach($tss2info->channelList as $channelInfo) {
$channelname = $channelInfo[channelname];

// determine codec (verbose)
$codec = $tss2info->getVerboseCodec($channelInfo[codec]);

// default?
if($channelInfo[isdefault] == "1") $isDefault = "yes"; else $isDefault = "no";

if ($channelInfo[channelid] != "id") {
$content .= ("<tr><td><img src=\"images/bullet_channel.gif\" align=absmiddle alt=MAX&nbsp;".$channelInfo[maxplayers]."&nbsp;Players><a href=\"teamspeak://".$serverAddress.":".$serverUDPPort."/nickname=".$username."?loginname=?password=?channel=".$channelname."?channelpassword=\">".$channelname."</a></td></tr>\n");
$counter_player = 0;
foreach($tss2info->playerList as $playerInfo) {
if ($playerInfo[channelid] == $channelInfo[channelid]) {
$content .=("<tr><td>&nbsp;&nbsp;<img src=\"images/bullet_ts.gif\" alt=$playerInfo[playername] align=absmiddle>&nbsp;".$playerInfo[playername]."</td></tr>\n");
$counter_player++;
}
}
if($counter_player == 0) $content .= ("<tr><td></td></tr>\n");
}
$counter++;
}// end foreach

if ($counter == 0) $content .= ("<tr><td colspan=\"7\" align=\"CENTER\">Offline</td></tr>\n");
$content .= ("</table>\n</div>\n");
//Copyright Please don't remove with out my approval
$content .= ("<center><a href=\"http://www.darkknights.dk\" target=\"_blank\">&copy; DarkKnights</a></center>");

?>



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum