» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 42
0 members and 42 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

About this Page
This is a discussion on teamspeak problem within the Nuke 7.x - Blocks forums, part of the PHP-Nuke 7.x category; // **** Configuration **** var $sitetitle = "blades of death"; // The Title of your Teamspeak Server var $serverAddress = "66.55.134....


Go Back   Nukemods Forum » PHP-Nuke 7.x » Nuke 7.x - Blocks

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-18-2006, 06:34 PM
Junior Member
 
Join Date: Feb 2006
Posts: 5
teamspeak problem
// **** Configuration ****
var $sitetitle = "blades of death"; // The Title of your Teamspeak Server
var $serverAddress = "66.55.134.18"; // The IP of your Teamspeak server, (don't include the port here)
var $serverQueryPort = 51234; // TeamSpeak QueryPort.. You usually don't need to change this (Standard 51234)
var $serverUDPPort = 8767; // UDP Port of your Teamspeak, This is the port that goes with the IP (Standard 8767)
var $tablewidth = "153"; // The Width of the teamspeak block (optimal 153)
var $serverpassword = "bod"; // Server Password. If you don't have a password set to "".
//
// **** Configuration ****
//-------------------------------------------------------------------------------------------------
var $themename = "ts-viewer"; // Do not change this, directory where graphics are found under templates.
//-------------------------------------------------------------------------------------------------
//
// This is the end of the configuration section. Don't modify anything below this line.
//
//-------------------------------------------------------------------------------------------------
var $socket;
var $serverStatus = "offline";
var $playerList = array();
var $channelList = array();
function getSocket($host, $port, $errno, $errstr, $timeout) {
unset($socket);
$socket=0;// added
$attempts = 1;
while($attempts <= 1 and !$socket) {
$attempts++;
@$socket = fsockopen($host, $port, $errno, $errstr, $timeout);
$this->errno = $errno;
$this->errstr = $errstr;
if($socket and fread($socket, 4) == "[TS]") {
fgets($socket, 128);
return $socket;
}
}
return false;
}
function sendQuery($socket, $query) {
fputs($socket, $query."\n");
}
function getOK($socket) {
$result = fread($socket, 2);
fgets($socket, 128);
return($result == "OK");
}
function closeSocket($socket) {
fputs($socket, "quit");
fclose($socket);
}
function getNext($evalString) {
$pos = strpos($evalString, "\t");
if(is_integer($pos)) {
return substr($evalString, 0, $pos);
} else {
return $evalString;
}
}
function chopNext($evalString) {
$pos = strpos($evalString, "\t");
if(is_integer($pos)) {
return substr($evalString, $pos + 1);
} else {
return "";
}
}
function stripQuotes($evalString) {
if(strpos($evalString, '"') == 0) $evalString = substr($evalString, 1, strlen($evalString) - 1);
if(strrpos($evalString, '"') == strlen($evalString) - 1) $evalString = substr($evalString, 0, strlen($evalString) - 1);
return $evalString;
}
function getVerboseCodec($codec) {
if($codec == 0) {
$codec = "CELP 5.1 Kbit";
} elseif($codec == 1) {
$codec = "CELP 6.3 Kbit";
} elseif($codec == 2) {
$codec = "GSM 14.8 Kbit";
} elseif($codec == 3) {
$codec = "GSM 16.4 Kbit";
} elseif($codec == 4) {
$codec = "CELP Windows 5.2 Kbit";
} elseif($codec == 5) {
$codec = "Speex 3.4 Kbit";
} elseif($codec == 6) {
$codec = "Speex 5.2 Kbit";
} elseif($codec == 7) {
$codec = "Speex 7.2 Kbit";
} elseif($codec == 8) {
$codec = "Speex 9.3 Kbit";
} elseif($codec == 9) {
$codec = "Speex 12.3 Kbit";
} elseif($codec == 10) {
$codec = "Speex 16.3 Kbit";
} elseif($codec == 11) {
$codec = "Speex 19.5 Kbit";
} elseif($codec == 12) {
$codec = "Speex 25.9 Kbit";
} else {
$codec = "unknown (".$codec.")";
}
return $codec;
}
function getInfo() {
$errno=0; // added
$errstr=0; // added
$isdefault=0; // added
$this->socket = $this->getSocket($this->serverAddress, $this->serverQueryPort, $errno, $errstr, 0.3);
if($this->socket == false) {
return;
echo ("No Server");
} else {
$this->serverStatus = "online";
$this->sendQuery($this->socket, "sel ".$this->serverUDPPort);
if(!$this->getOK($this->socket)) {
echo "Server didn't answer \"OK\" after last command. Aborting.";
return;
}
$this->sendQuery($this->socket,"pl");
$this->playerList = array();
do {
$playerinfo = fscanf($this->socket, "%s %d %d %d %d %d %d %d %d %d %d %d %d %s %s %s");
list($playerid, $channelid, $receivedpackets, $receivedbytes, $sentpackets, $sentbytes, $paketlost, $pingtime, $totaltime, $idletime, $privileg, $userstatus, $attribute, $s, $playername, $playername2) = $playerinfo;
if($playerid != "OK") {
if (strcmp($playername2,"\"\"")&& $playername2[0]!="\"") $playername=$playername." ".$playername2;
$this->playerList[$playerid] = array(
"playerid" => $playerid,
"channelid" => $channelid,
"receivedpackets" => $receivedpackets,
"receivedbytes" => $receivedbytes,
"sentpackets" => $sentpackets,
"sentbytes" => $sentbytes,
"paketlost" => $paketlost / 100,
//-------------------------------------------------------------------------------------------------
"pingtime" => $pingtime,
"totaltime" => $totaltime,
"idletime" => $idletime,
"privileg" => $privileg,
"userstatus" => $userstatus,
"attribute" => $attribute,
//-------------------------------------------------------------------------------------------------
"s" => $s,
"playername" => $this->stripQuotes($playername)
);
}
} while($playerid != "OK");
$this->sendQuery($this->socket,"cl");
$this->channelList = array();
do {
$channelinfo = "";
do {
$input = fread($this->socket, 1);
if($input != "\n" && $input != "\r") $channelinfo .= $input;
} while($input != "\n");
$channelid = $this->getNext($channelinfo);
$channelinfo = $this->chopNext($channelinfo);
$codec = $this->getNext($channelinfo);
$channelinfo = $this->chopNext($channelinfo);
$parent = $this->getNext($channelinfo);
$channelinfo = $this->chopNext($channelinfo);
$d = $this->getNext($channelinfo);
$channelinfo = $this->chopNext($channelinfo);
$maxplayers = $this->getNext($channelinfo);
$channelinfo = $this->chopNext($channelinfo);
$channelname = $this->getNext($channelinfo);
$channelinfo = $this->chopNext($channelinfo);
$d = $this->getNext($channelinfo);
$channelinfo = $this->chopNext($channelinfo);
$d = $this->getNext($channelinfo);
$channelinfo = $this->chopNext($channelinfo);
$topic = $this->getNext($channelinfo);
if($channelid != "OK") {
if($isdefault == "Default") $isdefault = 1; else $isdefault = 0;
$playercount = 0;
foreach($this->playerList as $playerInfo) {
if($playerInfo['channelid'] == $channelid) $playercount++;
}
$this->channelList[$channelid] = array(
"channelid" => $channelid,
"codec" => $codec,
"parent" => $parent,
"maxplayers" => $maxplayers,
"channelname" => $this->stripQuotes($channelname),
"isdefault" => $isdefault,
"topic" => $this->stripQuotes($topic),
"currentplayers" => $playercount);
}
} while($channelid != "OK");
$this->closeSocket($this->socket);
}
}
}
$tss2info = new tss2info;
//-------------------------------------------------------------------------------------------------
?>






why doesnt this work i thought had everything on there right but i guess not

heres the site bladesofdeath.net/bod
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-18-2006, 07:44 PM
Duke's Avatar
Super Moderator
 
Join Date: Dec 2005
Location: Under your bed
Posts: 1,002
Send a message via AIM to Duke
I think you'd have better success if you asked the people where you got the block from.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2006, 01:54 PM
Member
 
Join Date: Nov 2004
Location: UK Derby
Posts: 483
Send a message via MSN to killerbee
Hi bro Cant help u at the moment as im havin internet problems at home, problem with modem so sumone is coming round to sort it 2morrow. if its sorted 2marrow I will hook u up with old teamspeak block I use2 use on my site simulasr to this one at www.BADHQ.com but its a teamspeak block. houpe this will help u bro peace Boris
__________________
www.MoWarez.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2006, 03:27 PM
Junior Member
 
Join Date: Feb 2006
Posts: 5
yeah it still isnt working idk whats wrong im pretty positive i have everything on there right idk. can can i get that ts block your talking about thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2006, 01:49 PM
Member
 
Join Date: Nov 2004
Location: UK Derby
Posts: 483
Send a message via MSN to killerbee
I will post u up the link when I get home
__________________
www.MoWarez.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2006, 04:19 PM
Junior Member
 
Join Date: Feb 2006
Posts: 5
ok thanks :P
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2006, 09:15 PM
Member
 
Join Date: Nov 2004
Location: UK Derby
Posts: 483
Send a message via MSN to killerbee
ok I cant find myone but i found 1 other might help u here are the links

http://phpnuke-downloads.com/downloa...lock_v2.0.html


I will have a good look for it 2marrow and will post it up :-)
__________________
www.MoWarez.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-20-2006, 11:31 PM
Junior Member
 
Join Date: Feb 2006
Posts: 5
k thanks ill try it out . hope it works
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 10-29-2008, 02:42 PM
Junior Member
 
Join Date: Dec 2007
Posts: 3
I have tried 2 different Teamspeak blocks and keep getting this

An error connecting to the TeamSpeak server has occured!
Error number:
Error description:
Please contact a the Server Admin


I have put every thing in there that it asks for
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 10-29-2008, 03:01 PM
Junior Member
 
Join Date: Dec 2005
Posts: 35
There are a ton of different Teamspeak blocks out there. Try a different one.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Teamspeak Block Request VoN Open topics 0 09-21-2006 12:51 AM
Poll/Survey problem! (restriced area?) EDIT: new problem! erazor Nuke 7.x - General 3 04-12-2005 12:27 PM
teamspeak block for phpnuke romer Open topics 5 01-14-2005 08:50 PM
Problem with smartDark problem. Sign up doesn't work. DJ-Loki Theme packs 4 02-18-2003 04:40 PM


All times are GMT -5. The time now is 02:23 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31