SimplePortal

Customization => Custom Coding => Topic started by: ~XcaliburFX~ on November 16, 2008, 11:17:31 AM

Title: Teamspeak Block
Post by: ~XcaliburFX~ on November 16, 2008, 11:17:31 AM
Anyone using a block to view who's in teamspeak with SP currently?
Title: Re: Teamspeak Block
Post by: [SiNaN] on November 16, 2008, 11:20:33 AM
What's "teamspeak"?
Title: Re: Teamspeak Block
Post by: ~XcaliburFX~ on November 16, 2008, 12:54:41 PM
Voice chat software for gamers. http://www.teamspeak.com/

I know there a a few types of this type monitor / viewer out there ... some are paid for services, while some are simply some are not. Of course I would like the free version. :)


This is the one I am going to try and install. http://sourceforge.net/projects/tsdisplay/


other examples;
http://www.tswebviewer.com/
http://www.tsviewer.com
 
Title: Re: Teamspeak Block
Post by: [SiNaN] on November 16, 2008, 01:15:12 PM
Ah, okay. I'm sure you can easily implemented that with PHP Block.
Title: Re: Teamspeak Block
Post by: marinesct on December 16, 2008, 07:29:36 PM
I've been able to include the teamspeak.php block in both tinyportal and simpleportal.  Seems to work fine either way.  It was found on sourceforge (I believe) by my predecessor.

You can checkout a live version at www.usmcg.org.

http://sourceforge.net/projects/tsdisplay/

I want to say this is the same package that I'm using.  If that doesn't work for you, let me know and I'll see about posting the package here.

For SMF, use the below code. And yes, its free.

global $boarddir;
include("$boarddir/teamspeak/ts_viewer.php");
Title: Re: Teamspeak Block
Post by: sepulchre on June 18, 2009, 07:35:02 PM
Sorry to dredge up an old thread, but i cant find much about this on the net. Could you walk me through how you got it working?

TIA :)
Title: Re: Teamspeak Block
Post by: marinesct on June 18, 2009, 08:34:17 PM
Sorry to dredge up an old thread, but i cant find much about this on the net. Could you walk me through how you got it working?

TIA :)

I've since actually switched to portamx on that site for some of the functionality that I was looking for. That uses a free 3rd party service and all you need to do is put an include statement into a block.

If you're interested in trying that method out, visit www.tsviewer.com. It's free, but they have a small banner on the bottom. They've got instructions for including their TS into your site.

I'm finishing up some military training, so I'll will be in the air on Saturday at zero dark thirty. So what I'll do is put together something to help you out.
Title: Re: Teamspeak Block
Post by: sepulchre on June 19, 2009, 07:25:45 AM
That would be great, many thanks!

I'm something of a noob at php so the more detail the better :D
Title: Re: Teamspeak Block
Post by: Eliana Tamerin on June 19, 2009, 11:05:45 AM
You could do that with a normal php block on SimplePortal as well. If a widget or something is provided by any service, it can be called in a php block.
Title: Re: Teamspeak Block
Post by: marinesct on June 22, 2009, 03:14:35 PM
You could do that with a normal php block on SimplePortal as well. If a widget or something is provided by any service, it can be called in a php block.

As an example, after registering your TS server with TS Viewer (http://www.tsviewer.com/index.php?page=serverreg), their site will allow you to autogenerate the code you will need for either HTML, JavaScript, or PHP. You'll want PHP. After you go through all the options that you want displayed in your viewer, your code will look very similar to this:

Code: [Select]
<?php include("http://www.tsviewer.com/ts_viewer_pur.php?ID=57297&bg=&type=8f8f8f&type_size=11&type_family=1&info=1&channels=1&users=1&type_s_color=000000&type_s_weight=bold&type_s_style=normal&type_s_variant=normal&type_s_decoration=none&type_s_color_h=525284&type_s_weight_h=bold&type_s_style_h=normal&type_s_variant_h=normal&type_s_decoration_h=underline&type_i_color=000000&type_i_weight=normal&type_i_style=normal&type_i_variant=normal&type_i_decoration=none&type_i_color_h=525284&type_i_weight_h=normal&type_i_style_h=normal&type_i_variant_h=normal&type_i_decoration_h=underline&type_c_color=000000&type_c_weight=normal&type_c_style=normal&type_c_variant=normal&type_c_decoration=none&type_c_color_h=525284&type_c_weight_h=normal&type_c_style_h=normal&type_c_variant_h=normal&type_c_decoration_h=underline&type_u_color=000000&type_u_weight=normal&type_u_style=normal&type_u_variant=normal&type_u_decoration=none&type_u_color_h=525284&type_u_weight_h=normal&type_u_style_h=normal&type_u_variant_h=normal&type_u_decoration_h=none"); ?>

After you create your PHP block, paste the generated code into the new block and be sure to delete the <?php from the beginning and the ?> at the end.
Title: Re: Teamspeak Block
Post by: marinesct on June 22, 2009, 04:15:06 PM
I've downloaded the package from Sourceforge above and renamed the files from demo to teamspeak.

It is recommended to create a folder for your Teamspeak files on your webserver via FTP. Let's go ahead and name this folder 'Teamspeak' for ease of use.

Open teamspeak.php in your webpage editor (Dreamweaver or even Notepad) and follow the instructions that are commented throughout the document; the instructions are pretty clear and well written. This is the only document you will need to edit.

Upload the following files and directories to your 'Teamspeak' folder:

teamspeak.css
teamspeak.php
teamspeakdisplay

Once uploaded, create a new block in your portal manager (TinyPortal, SimplePortal, PortaMX, etc.) and set the block type to PHP.

You will only need an include statement in your block:

include("http://www.yourwebsitename/teamspeak/ts_viewer.php");

Save and activate your block to see it on your site.
SimplePortal 2.3.8 © 2008-2024, SimplePortal