Results 1 to 15 of 17
-
16-02-2004, 17:34 #1
-= TeamSpeak User =-
- Join Date
- Feb 2004
- Location
- USA
- Posts
- 8
pn-teamspeak: a Teamspeak Postnuke block
I wrote a block for showing who's on Teamspeak.
You can download it here.
Here are the notes:
pn-teamspeak is a module for Postnuke 0.7xx that displays a list of users connected to a Teamspeak 2 server. Teamspeak 2 is high-quality, free voice chat software available at www.teamspeak.org. This "module" is really just one block. It displays the server name of the server, channels and sub-channels on the server, and the users connected in a heirarchical format similar to what a user sees when running the Teamspeak client. The block can also put links on the channel names which trigger the Teamspeak client to launch and connect to that server in that channel.
This module has been tested on the following platform combinations.
* Mandrake 9.2, PHP 4.3.2, Postnuke 0.726, and Teamspeak 2 RC2 (2.0.19.40)
* RedHat 9 Server, PHP 4.3.2, Postnuke 0.726
* Windows XP, PHP 4.3.4, Apache 1.3.29
The .zip file has dos style CR/LF's and text files with a .txt extension. The .tar.bz2 file does not.
-
16-02-2004, 19:03 #2
-= TeamSpeak User =-
- Join Date
- Aug 2002
- Location
- Houston, TX
- Posts
- 18
Hello,
Looks like your work is really neat, seen it working onother sites..When I try to get it running this is what I get..
Any ideas? Its an Windows server, newest postnuke ect.Code:Fatal error: Failed opening required 'ts2info.php' (include_path='') in c:\hosting\webhost4life\member\wmhq\wm\modules\Teamspeak\pnblocks\status.php on line 161
Thanks
-
16-02-2004, 21:26 #3
-= TeamSpeak User =-
- Join Date
- Feb 2004
- Location
- USA
- Posts
- 8
Try changing status.php around line 161 so that the filename included is './ts2info.php'. Let me know if that fixes it and I will correct this in the next release.Originally posted by CyberWolf
Any ideas? Its an Windows server, newest postnuke ect.Code:Fatal error: Failed opening required 'ts2info.php' (include_path='') in c:\hosting\webhost4life\member\wmhq\wm\modules\Teamspeak\pnblocks\status.php on line 161
Thanks
If that doesn't work, you might try including the full path to ts2info.php. It's ugly, but it ought to work.Code:// retrieve server info require_once './ts2info.php';
You may want to change your php include path to include '.', the current directory. You can do this by modifying the include_path entry in your php.ini file. The php.ini file is in your windows directory. You'll want it to look something like this:Code:// retrieve server info require_once 'c:\hosting\webhost4life\member\wmhq\wm\modules\Teamspeak\pnblocks\ts2info.php'; // These two lines should be one line - forum is fighting me on this :-(, sorry!
include_path=".;c:\php\includes"Last edited by ApolloCreed; 16-02-2004 at 21:36.
-
16-02-2004, 23:33 #4
-= TeamSpeak Fanatic =-
- Join Date
- Jan 2003
- Location
- Germany
- Posts
- 4,140
It's good to see you're putting my TS2Query to good news. You can save yourself some problems if you use the most current version (1.0) by the way, i've heavily modified the query script compared to the old version you've got.
It now runs with any PHP version from 4.0.3 to the most current one.
The display script is also spiffied up to use DHTML to switch the info panels so no reloading is required. It still works with older browsers.
-
17-02-2004, 03:24 #5
-= TeamSpeak User =-
- Join Date
- Feb 2004
- Location
- USA
- Posts
- 8
I may do just that. Version 1.0 looks a lot better than the version I started withOriginally posted by Brain
You can save yourself some problems if you use the most current version (1.0) by the way, i've heavily modified the query script compared to the old version you've got.
.
I'm glad I have the attention of the author. I can give you my request directly....
I think it would be nice if instead of asking the user to modify ts2query.php file to set the server specifics, if you could make getInfo take them as arguments. Something along the lines of
If I migrate to your new version, I'll make a branch with a modification like that. I'll also remove the last two lines of code from ts2query.php. I have 2 reasons for wanting this. 1) I don't want to ask the user to modify .php files. 2) I want to be able to use this same class against multiple teamspeak servers on one web page.Code:function getInfo( $serverAddressArg = '' , $serverQueryPortArg = '' , $serverUDPPortArg = '' ) { if ( ! empty( $serverAddressArg ) ) { $this->serverAddress = $serverAddressArg; } ...
Thanks
-
17-02-2004, 07:15 #6
-= TeamSpeak Fanatic =-
- Join Date
- Jan 2003
- Location
- Germany
- Posts
- 4,140
Well, i have a better idea. I still get asked a lot of question about what needs to be changed as well and i somewhat doubt that will alleviate itself if getinfo takes the information as parameters.
I think for v1.1 i'll put up a separate config file that stores all information the query script and the display script need.
I've already done a little straightening-out here and there, i guess v1.1 will be due this evening or tomorrow.
-
17-02-2004, 08:15 #7
-= TeamSpeak User =-
- Join Date
- Feb 2004
- Location
- USA
- Posts
- 8
I am new to php and I think the philosophy is a bit different than Java/C++, which is where I come from. I think the difference is that with script languages, your end-users like to muck with the code. I like postnuke because it lets me, as a developer, provide a gui to the end-users (system admins) for setting up run-time behavior. Those run-time settings (Teamspeak server details) are specified by the system admin on a web page and get stored in a mysql table. I think of ts2query as being a tool for developers more so than for end-users. What I'm trying to say is that I feel like the "easy-to-use" part should go in ts2display.php and the "flexible for programmers, therefore necessarily sacrificing a bit of ease-of-use" should go in ts2display.php. BTW, I don't want you to think I am putting down your work at all. ts2query.php, even the old version I have does it's job well. The new version looks a lot cleaner and more well-rounded.
I'll probably wait to migrate to the latest and greatest ts2query until a need arises (bugs in pn-teamspeak) and I'll make a branch with the minor changes that I'm looking for. I resolved some issues in my old version, maybe it will be good enough for a while.
FWIW, I do think a separate config file is a good, straight-forward way to distinguish for people what they should and should not change. The readme file can say something easy to understand like, "make sure you customize everything in config.php, but shouldn't need to change anything in ts2query.php. If you do, it's probably a bug, or you didn't read the docs." I just think ts2display.php should include it, not ts2query.php.
Thanks again
-
17-02-2004, 09:32 #8
-= TeamSpeak Fanatic =-
- Join Date
- Jan 2003
- Location
- Germany
- Posts
- 4,140
Well, i am an OO programmer at heart and when i first released TS2Query it was only intended for programmers.
However, numerous people started emailing me who didn't have a clue about what they were doing.
Since the settings required don't need to be changed unless you move the Teamspeak server to another address i always thought directly editing the query script shouldn't be too tough, especially since i documented the variables that need to be changed. And the display script... well it wasn't really intended to be what it has become, i think somehwere it still says "sample display script".
Oh, and you probably should download the latest version anyways and look at the CHANGELOG file, i've documented each bug i've straightened out, maybe you find something you weren't aware of before.
-
16-03-2004, 23:28 #9Racor Guest
I'm very new at this...last programming class I had was..well back there!
My question is this:
I'm trying to pass username & password via the displayed link but I'm not able to get the password portion to work properly. Any ideas? I'm certain its something about the method of php storing the password and I'm not able to recall it in the proper format.
Here's the code to call the password and place it into the link:
In this case I'm using the nickname = loginname for simple teamspeak setup.// Do we display links to launch the teamspeak client?
$showTSLink = $vars[ 'Teamspeak_show_link_to_anon' ] || pnUserLoggedIn();
$tsusername =
pnUserLoggedIn()
? pnUserGetVar( 'uname' )
: $vars[ 'Teamspeak_anon_username' ];
$tsuserpassword =
pnUserLoggedIn()
? pnUserGetVar( 'pass' )
: $vars[ 'Teamspeak_password' ];
// Format of a teamspeak url:
// teamspeak://IP_or_NAME:PORT/?nickname=NickName?loginname=LoginName?password=Ch annelPassword?Channel=ChannelName ".$vars[ 'Teamspeak_password' ]
if ( $showTSLink ) {
$tsurl = "teamspeak://".$vars[ 'Teamspeak_serveraddy' ]."/nickname=$tsusername?loginname=$tsusername?passwor d=$tsuserpassword";
$tsurlchannel = $tsurl.'?Channel=';
} else {
$tsurl = '';
$tsurlchannel = '';
Any suggestions? I think the script is calling the password properly...I really think its how the password is stored in the database thats goofing me up.
Well thanks in advance for any thoughts!
Racor
-
21-03-2004, 03:14 #10
-= TeamSpeak User =-
- Join Date
- Feb 2004
- Location
- USA
- Posts
- 8
I made a new release of pn-teamspeak to address many of the issues brought up by users. You can download the new version, 0.0.3, from the following url.
https://sourceforge.net/project/show...ease_id=225220
Listed below are the changes from the last version.
- Fixed bad link displayed when server udp port is not default port 8767.
- Links are now urlencoded. For example, spaces appear as %20.
- Anonymous user options moved to a combobox and should be easier to understand.
- Added option to hide the block from anonymous users.
- Added option to hide empty channels.
- Added option to limit the channels displayed to a specified list.
- Added option to limit the width of the block.
- Shows a link to the configuration page if user is logged in as the administrator.
Because this is more of a postnuke question than a teamspeak question, you're likely to get a better response if you post it somewhere on http://forums.postnuke.com/ . Below is a link to the long pn-teamspeak thread.Originally posted by Racor
I'm trying to pass username & password via the displayed link
http://forums.postnuke.com/index.php...er=asc&start=0
Are you trying to get the user's postnuke password and use it as their teamspeak password in the link? So, you are assuming their passwords match up on the 2 systems? That's fine, but I don't think you can get the current user's postnuke password as plain text. Most unix password systems work using an algorithm designed to only translate in one direction. That is to say, they can encode a password into gibberish, but they cannot decode the gibberish back into the password. This is good because if someone were to get a copy of the encoded version of the password, they would not be able to derive the password from it. It is good enough for authentication, because when a user attempts to login, the given password is encoded into gibberish and compared with the stored gibberish. There's probably a lot more to it that I don't know about, but that is my understanding of the general idea. I think postnuke is doing something similar. If you look at the pn_pass column of your nuke_users table, you'll see a bunch of encoded passwords that look like gibberish. You should be able to get a more definitive answer on http://forums.postnuke.com/.
This is a feature request that has been brought up before. I will think about addressing it in a future release. If you come up with something that works for your site, tell me about it at ApolloCreed@users.sourceforge.net.
-
22-03-2004, 02:50 #11
-= TeamSpeak User =-
- Join Date
- Sep 2003
- Location
- NY
- Posts
- 8
I dont know why but in my block the users are showing up as 0.0.0.0 any reason why? Please help me. I can get the names of the users to show up.
http://www.grolley.com
-
24-03-2004, 01:04 #12
-= TeamSpeak User =-
- Join Date
- Feb 2004
- Location
- USA
- Posts
- 8
It's a bug.Originally posted by grolley
the users are showing up as 0.0.0.0 any reason why?
It's been fixed.
I'll post again when I put out another release. I'm going to include a PHP-Nuke version of the block in the next release.
-
26-03-2004, 01:12 #13
-= TeamSpeak User =-
- Join Date
- Sep 2003
- Location
- NY
- Posts
- 8
is the fix availabe.. or is it in the next update?
-
21-04-2004, 12:20 #14
-= TeamSpeak User =-
- Join Date
- Oct 2003
- Location
- Norway
- Posts
- 3
Hello
Anyone know when this update is available?
-
23-04-2004, 19:26 #15ManGoBom Guest
Great Module/Block. Hopefully you will have the New/fixed version for us soon! I have a entire outfit waiting for their block back.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
New Teamspeak Ability wanted !!
By CMCT_Kirk in forum [TeamSpeak 2] General QuestionsReplies: 4Last Post: 01-09-2002, 17:43 -
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