Topic: Teamspeak integration?

We run a small clansite and our host wont let us open the necesary ports requiered to run a teamspeak viewer.
my idea is to host the teamspeakviewer on a another server, then link it to main site, this is probablye dead simple, but i cant figure it out i have tried pun_include and failed.

You can se the teamspeak block where its supposed to go..
http://www.klanrekyl.se/index.php

The Teamspeak viewer
http://adamx.ath.cx/teamspeak.php


//Adam

Re: Teamspeak integration?

Moved to Integration

Re: Teamspeak integration?

And as for why the include from a remote site doesn't work:
http://punbb.org/docs/faq.html#faq3_4
You'll need to create a file in include/user that accesses the site and refer to that file in the template

Re: Teamspeak integration?

i have tried that and it didnt work, probablye me doing it wrong ...

Re: Teamspeak integration?

Paste the contents of the file here, I'll try and help wink

6 (edited by AdamXerxes 2006-10-14 13:17)

Re: Teamspeak integration?

Not sure what you need.

Really appreciate this!!

but this is the one i try to get to on the remote server

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Untitled Document</title>
<link href="teamspeakdisplay/teamspeakdisplay.css" rel="stylesheet" type="text/css" />
<link href="demo.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="teamspeakdisplay">
<?php
    // The code between the 2 lines below turns on PHPs error handlers.
    // Uncomment it for debugging purposes, but leave commented in live
    // environments. Having your script running in a live environment with the
    // error handlers turned on, decreases your sites security as a warning may
    // reveal information used to exploit security holes in your site.
    //================== BEGIN OF ERROR REPORTING CODE ====================
    //echo("<span style=\"color: #dd0000; font-weight: bold\">Error reporting ");
    //echo("is currently on. Turn it off in live environments !</span><br><br>\n");
    //error_reporting(E_ALL);
    //ini_set("display_errors", "1");
    //ini_set("display_startup_errors", "1");
    //ini_set("ignore_repeated_errors", "0");
    //ini_set("ignore_repeated_source", "0");
    //ini_set("report_memleaks", "1");
    //ini_set("track_errors", "1");
    //ini_set("html_errors", "1");
    //ini_set("warn_plus_overloading", "1");
    //================== END OF ERROR REPORTING CODE ======================
    
    // Load the Teamspeak Display:
    require("teamspeakdisplay/teamspeakdisplay.php");
    
    // Get the default settings
    $settings = $teamspeakDisplay->getDefaultSettings();
    
    //================== BEGIN OF CONFIGURATION CODE ======================
    
    // Set the teamspeak server IP or Hostname below (DO NOT INCLUDE THE
    // PORT NUMBER):
    $settings["serveraddress"] = "192.168.1.xxx";
    
    // If your you use another port than 8767 to connect to your teamspeak
    // server using a teamspeak client, then uncomment the line below and
    // set the correct teamspeak port:
    $settings["serverudpport"] = 8767;
    
    // If your teamspeak server uses another query port than 51234, then
    // uncomment the line below and set the teamspeak query port of your
    // server (look in the server.ini of your teamspeak server for this
    // portnumber):
    $settings["serverqueryport"] = 51234;
    
    // If you want to limit the display to only one channel including it's
    // players and subchannels, uncomment the following line and set the
    // exact name of the channel. This feature is case-sensitive!
    $settings["limitchannel"] = "";
    
    // If your teamspeak server uses another set of forbidden nickname
    // characters than "()[]{}" (look in your server.ini for this setting),
    // then uncomment the following line and set the correct set of
    // forbidden nickname characters:
    $settings["forbiddennicknamechars"] = "()[]{}";
    
    //================== END OF CONFIGURATION CODE ========================
    
    // Is the script improperly configured?
    if ($settings["serveraddress"] == "") { die("You need to configure this script as described inside the CONFIGURATION CODE block in " . $_SERVER["PHP_SELF"] . "<br>\n"); }
    
    // Display the Teamspeak server
    $teamspeakDisplay->displayTeamspeakEx($settings);
    
    // Display autorefresh status and control link:
    echo("<br>\n");
    if ($autorefresh == 0) {
        echo("Autorefresh: Off (<a href=\"" . $_SERVER["PHP_SELF"] . "?autorefresh=1\">Turn on</a>)<br>\n");
    } else if ($autorefresh == 1) {
        echo("Autorefresh: On (<a href=\"" . $_SERVER["PHP_SELF"] . "?autorefresh=0\">Turn off</a>)<br>\n");
    }
?>
</div>
</body>
</html>

And in main.tpl

<div class="block">
        <h2 class="block2"><span>Teamspeak</span></h2>
        <div class="box">
            <div class="inbox">
    
    <div class="block">
        <pun_include "ts.php">
        </div>
    
        </div>
        </div>
    </div>

where ts.php is where i guess i would place the code to call the remotescript?

Re: Teamspeak integration?

Yes: Create a file in include/user called ts.php. That file should call the script on the remote host.

Re: Teamspeak integration?

ok, this is what i try to get the remote script with, just makes the index page inaccessible  sad


include/user/ts.php

<?php

include('http://adamx.ath.cx/teamspeak.php');
        
?>

Re: Teamspeak integration?

It could have something to do with the fact that http://adamx.ath.cx/ is inaccessible wink

Re: Teamspeak integration?

oh, thats only cause i have no index, but if you try http://adamx.ath.cx/teamspeak.php it should be fine

Re: Teamspeak integration?

Nope, I get an error about the site taking too long to respond no matter where I try and go

Re: Teamspeak integration?

i moved it to another server, and...... "Houston we got contact"

Thx for your patiance!

just the rest left.. smile

13

Re: Teamspeak integration?

I get an error, page not loading hmm

Re: Teamspeak integration?

He hasn't updated the link to the new teamspeak thingy.

And Adam: if it's only going to be used for inclusion, remove the HTML header etc wink

Re: Teamspeak integration?

ok, thx smile