TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 559
  • Total: 559

Teamspeak block!

Started by -Prismatic-, October 14, 2005, 11:20:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xadio

Quote from: disisme on February 16, 2006, 05:25:15 PM
Guys, I display a button on my helios theme, in the smf 1.0.6 part (not TP).  I added the buttons to index.template.php and use $context['user']['name'] in the teamspeak string.  Thats after I do an if $context['user']['is_logged').  so if they arent logged in, they dont see the buttons....

That's a clean alternative to keep 'unwanted' guests limited, but if he still wants to have passwords then it will still be a problem...

disisme

yah..trickiness on the passwords... I'd like to do the same thing actually, so my mods can be admins at the teamspeak end after being force fed down the pipe.

xadio

I just looked at the TS server app and I think the best alternative is just a quick popup that asks the user to reenter his/her password so you can actually work with it.

Arkanthos

yeah, that might be the best way of doing it. I posted on the SMF site looking for help at accessing=>decrypting a user's password, if they can't or don't want to share that information (who knows, some people are a little more freakish about security than others) then I'll use a popup.

biffking

I have tried using this block and it always says offline, I can't get the images to show up either. I used the ts_config.inc.php that was redone to show images from folder, but no luck. my site is www.godzchozen.com/smf/index.php

[attachment deleted by admin]

Arkanthos

k, there are 2 things that are needed in order to get it to show. The correct IP/serverport and the tcpupdate port.

In your case it might be the tcpupdate port that is wrong, most places use 51234, but some use a different port, try some in this range 51230-51239 and see if you can get it to work.

disisme

Heres my code, within boardindex_template.php for the Helious Multi and premod themes to add a block and get the teamspeak details displayed in it....This actually works with ANY theme, so far....

Immediately BEFORE :

        // "Users online Today"

paste this :
   // Teamspeak users
   echo '
   <tr>
      <td class="titlebg" colspan="2">Users in Voice chat</td>
   </tr>
   <tr>
      <td class="windowbg"></td>
      <td class="windowbg2" width="100%"><iframe frameborder="0" height="150" src="', $GLOBALS['boardurl'], '/teamspeakdisplay/demo.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="no" border="0" allowtransparency="true"></iframe></td>
   </tr>';

I downloaded an applet called teamspeakdisplay and doctored the demo.php file quite considerably to look like this (in total) :
<?php
   //====================== BEGINNING OF CONFIGURATION PART =====================

   // The teamspeak server IP or Hostname: (DO NOT INCLUDE THE PORT NUMBER)
   $serverAddress = "203.208.116.4";

   // The teamspeak server port you use to connect to the teamspeak server using a teamspeak client
   $serverUDPPort = 8767;

   // The teamspeak query port of your server (look in the server.ini of your teamspeak server for
   // this portnumber)
   $serverQueryPort = 51234;

   //====================== END OF CONFIGURATION PART ===========================

   // Is the script improperly configured?
   if ($serverAddress == "") { die("You need to configure this script by setting the serverAddress and eventually the serverUDPPort and serverQueryPort in the sourcecode
\n"); }
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
      <link href="demo.css" rel="stylesheet" type="text/css">
      <link href="teamspeakdisplay/teamspeakdisplay.css" rel="stylesheet" type="text/css">

   </head>
   <body bgcolor='#505050'>
<?php
   // Display the Teamspeak server
   require("teamspeakdisplay/teamspeakdisplay.php");
   $teamspeakDisplay->displayTeamspeak($serverAddress, $serverUDPPort, $serverQueryPort);

?>
   </body>
</html>

scope

#107
My problem turned out to be that my website host, doesn't allow outbound calls to another server.  If your TS server is on the same provider they might allow it, but I had to set it up on another provider account I have.  It did work on my p4host.com website, but on my clan website account godaddy.com it isn't allowed.  All ports might be open and available.  Recommend trying app from a different provider.  If I get a change I can swap my settings for yours and see what happens or you can replace youor ip address with ts2.digtalserialkillers.com UDP port 13181, if you change those and still get an offline, you need a different web host for the script to work. IF you have godaddy, don't waste your time it is them.  You have to upgrade to a dedicated server to get it to work on godaddy.

I gave up trying to use the one in this post, mainly because of the login part and it never worked.  It turned out it was because of the above reason.  This mod works great minus the login name option.

The one I use pops up a javascript box and ask for the name to use.  I also added the option to join my forums and/or Teamspeak server in the server, running mani mod.

biffking

We are using bluehost. They should allow it. I guess we could give them a call

darthmactis

For all of you needing a TeamSpeak block that works 100%, I have found it!!! All you have to do is go here http://tsviewer.hfd.de/index.php?page=home register your TS server(its Free!!), when you server is added to the list, go to you TS server in the list click on it, it will bring you server up and above the server tree is a generate code botton that will generate a HTML code that you can put in a HTML block inTP.

Example Here:http://sw.tgeclan.com/forums/index.php

This website is proudly hosted on Crocweb Cloud Website Hosting.