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: 563
  • Total: 563

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.

darthmactis

Quote from: Eponnox on February 05, 2006, 09:43:34 PM
Small problem that might effect others

i just fixed mine and guess what it was

include ("teamspeak/ts_viewer.php");
change to
include ("Teamspeak/ts_viewer.php");

AS IN THE DOWNLOAD

its Teamspeak/ts_viewer.php not teamspeak.ts_viewer.php

thank for the help anyway hope that helps someone before they smash there heads into the wall like i did


that was it Thanks very much!!!!!! to point thats out

darthmactis

Quote from: tattooedpierre on February 06, 2006, 12:03:42 AM
I'm getting errors all over the shop with this block since updating to the new 0.8.6 TP, and RC2 :( .. it does still work however, but I get errors like:

8: Undefined property: g_channels
File: /home/theinfe/public_html/smf/teamspeak/ts_config.inc.php
Line: 76

8: Undefined variable: _50
File: /home/theinfe/public_html/smf/teamspeak/ts_config.inc.php
Line: 379

8: Undefined offset: 2
File: /home/theinfe/public_html/smf/teamspeak/ts_config.inc.php
Line: 227

.. etc etc.. I have pages and pages and pages of these types of errors :( .. any ideas?! I'm imagining this is somewhat related to my recent upgrades, then..

Now i get the same thing, after a few clicks around the forums theres like 60 pages of errors and growing

Jaz

We are getting the same error with TS. I had over 10,000 pages of errors related to the TeamSpeak.

I have disabled the block to stop the errors, but now have a possible new one 

8: Undefined variable: scripturl
File: /usr/local/psa/home/vhosts/tnp-uk.co.uk/httpdocs/forum/Themes/TP_helios_multi11_rc2/Display.template.php (eval?)
Line: 58

8: Undefined variable: scripturl
File: /usr/local/psa/home/vhosts/tnp-uk.co.uk/httpdocs/forum/Themes/TP_helios_multi11_rc2/TPortal.template.php (eval?)
Line: 58

8: Undefined variable: scripturl
File: /usr/local/psa/home/vhosts/tnp-uk.co.uk/httpdocs/forum/Themes/TP_helios_multi11_rc2/MessageIndex.template.php (eval?)
Line: 58

And more all pointing to (whichever).template.php all saying line 58

61 error pages in less than 5 minutes with only a couple of users logged on

Anyone got any idea to its cause.

Thanks

IchBin

How do you know it's related to the TS block? You have any other custom blocks?

Jaz

The error with TS produces hundreds of pages of errors, naming TS to be the fault. I can turn the block back on and post some of the errors if you would like to take a look.

The errors I posted above are known to Bloc and he is "fixing" it.

stigmartyr

... ahhh yes, the case sensitive bugs.  Anyone hosting their website on any unix servers (linux, etc.) should always remember the case is muy importante for everything!

Arkanthos

#86
OK, I feel like more of a retard than usual...

Pertinant info:
URL: http://www.projmayhem.com


   $ts_viewer->set_Viewer("Project Mayhem Alliance", "http://www.projmayhem.com/");
   $ts_viewer->set_Channels();
   $ts_viewer->show_ts_viewer("72.36.227.131", 9494, 51234, "");


The ip and port information is correct. The block loads onto the page, but it constantly says it's offline.

Here's the rub... I had it working before, then did a re-install of TS and now it's messed up. Not sure why.

I've checked everything as far as syntax, capitalization of folders and the like...

xadio

#87
Thanks a bunch for porting that! However, since its in PHP it doesn't refresh so some of my website users have complained.  Untill I sit down and port it over to JavaScript I made a temporary fix to have it auto refresh.
You can view it at http://www.teamgouranga.com/

To add this:


In ts_config.inc.php
Find:
                echo ("<center><a href=\"http://www.the-targets.de/\"><font size=\"1\">Created by Mike Ãƒâ€šÃ,© 2004</font></a><font size=\"1\"><br>
                    Hacked into TinyPortal by <a href='http://www.warrency.com'>Prismatic</a></font>
                  </center>"
);


Add Before:

                
echo ("<center><div id=\"ts-refresh\" class=\"windowbg\" style=\"border: 1px solid black; padding: 2px;\">Auto Refresh</div></center>");



In ts_viewer.php

Find:
</style>

Add After:
<script language="JavaScript">
// CREDITS:
// Additional code residing outside of Section 1 and Section 2 and all tweaks
//   in Section 1 and Section 2 were created by Xadio
// 
// Automatic Page Refresher by Peter Gehrig and Urs Dudli www.24fun.com
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at www.hypergfurl.com.
// Configure refresh interval (in seconds)
  
var refreshinterval=60;
// Shall the coundown be displayed inside your status bar? Say "yes" or "no" below:
  
var displaycountdown="yes";
// Do not edit the code below
  
var starttimeVar;
  var 
nowtime;
  var 
tempTitle window.title;
  var 
reloadseconds=0;
  var 
timer;
  var 
offVar false;
  var 
secondssinceloaded=0;
 
  var 
NS6 = (navigator.appName=="Netscape" && (document.getElementById!=undefined));
  var 
NS4 = (document.layers);
  var 
IE  = (navigator.appName=="Microsoft Internet Explorer");
  function 
GetLayer(layername)
  {
     if(
IE||NS4) return (NS4) ? FindLayer(layername) : document.all[layername];
     else return 
document.getElementById(layername);
  }
    
  function 
FindLayer(layernameobj)
  {
    
// recursive function to find the layer
     
if(obj == null) return false;
     var 
i=0;
     var 
perObj null;
     var 
tmpObj = (obj) ? obj.document.layers document.layers;
     for(
i=0;i<tmpObj.length;i++)
     {
       if(
tmpObj[i].id==layername) return tmpObj[i];
       
perObj FindLayer(layernametmpObj[i])
       if(
perObj) return perObj;
     }
     return 
false;
  }
 
 
  function 
writeToDiv(layernamestr)
  {
     
obj GetLayer(layername)
     if(
obj == null) return false;

     if(
NS4)
     {
         
obj.document.write(str)
         
obj.document.close()
     }
     if(
NS6 || IE)
     {
        
obj.innerHTML str
     
}
 
  }

  
// Section 1
  
function starttime(start) {
    
starttimeVar=new Date();
    
starttimeVar=starttimeVar.getTime();
    if(
start) {
      
offVar false;
      
countdown();
    }
  }
 
  
//Section 2
  
function countdown() {
    if(!
offVar) {
      
nowtime= new Date();
      
nowtime=nowtime.getTime();
      
secondssinceloaded=(nowtime-starttimeVar)/1000;
      
reloadseconds=Math.round(refreshinterval-secondssinceloaded);
      if (
refreshinterval>=secondssinceloaded) {
        var 
timer=setTimeout("countdown()",1000);
        if (
displaycountdown=="yes"){
          
writeToDiv("ts-refresh""Auto refresh in <b>"+reloadseconds+"</b> seconds.<br /><input type=\"button\"value=\"Off\" onClick=\"javascript:off()\" />");
        }
      }
      else {
       
clearTimeout(timer);
       
window.location.reload(true);
      }
    }
  }

 
  function 
off() {
    
offVar true;
    
clearTimeout(timer);
    
writeToDiv("ts-refresh""Auto refresh is <b>OFF</b><br /><input type=\"button\" value=\"On\" onClick=\"javascript:starttime(true)\" />");
  }
 
  
window.onload=new function(){starttime(true);}
</
script>


Enjoy

//EDIT NOTE//
I have edited the javascript section of this to clear up a few errors.
Fixed: Null objects being passed.
Fixed: IE required new function for onload calls.

darthmactis

you aboul to fix the page errors?

xadio

Yea sorry bout that, I use firefox so I don't see them show up until I open the JavaScript console. I'll fix them and edit the post above.  Thanks for the heads up.

This website is proudly hosted on Crocweb Cloud Website Hosting.