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

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.

biffking

that is what i did last night and it works great

Arkanthos

lol, yes but I'd prefer not to register my Teamspeak Server on someone's website. And, with the viewer I'm currently using, people are able to join a chan by clicking on it. With the number of chans that I have it's kinda neccessary to me.

biffking

well my host does not allow it so i have to use what works for me.

core

Hi there TS lovers,

I have a block setup with teamspeak, when a member clicks the channel name it will connect that member to the corresponding channel with their forum name. I have hardcoded the server password as for me anyone who visits our site may use the teamspeak even tho there is a password on the TSserver.

If anybody wants this forumname pushing TS block, dont ask me about pushing passwords.. let me know

click and connect

Arkanthos

Hey man, that would be killer! It would definitely give me a jumping off point for when I get the other 1/2 of it figured out. If you could toss it to me in a PM or send it via e-mail to jonathanroth@cox.net I'd be really grateful.

core

just noticed that the script I edited was the first one posted... need to get those errors out.. when I get this done I will post it here

core

I just read this thread and see allot of posts about people getting these errors but dont see any posts about a solution...

can someone help me with these errors? I have 35000 pages of them LOL



8: Undefined property: g_channels
File: /home/resellers/841289/841289/corenation.com/www/smf/teamspeak/ts_config.inc.php
Line: 83


8: Use of undefined constant _B - assumed '_B'
File: /home/resellers/841289/841289/corenation.com/www/smf/teamspeak/ts_config.inc.php
Line: 250


8: Undefined index: 8
File: /home/resellers/841289/841289/corenation.com/www/smf/teamspeak/ts_config.inc.php
Line: 239


8: Undefined offset: 7
File: /home/resellers/841289/841289/corenation.com/www/smf/teamspeak/ts_config.inc.php
Line: 238


8: Undefined offset: 6
File: /home/resellers/841289/841289/corenation.com/www/smf/teamspeak/ts_config.inc.php
Line: 237


8: Undefined index: 5
File: /home/resellers/841289/841289/corenation.com/www/smf/teamspeak/ts_config.inc.php
Line: 235


8: Undefined offset: 4
File: /home/resellers/841289/841289/corenation.com/www/smf/teamspeak/ts_config.inc.php
Line: 234


8: Undefined offset: 3
File: /home/resellers/841289/841289/corenation.com/www/smf/teamspeak/ts_config.inc.php
Line: 233


8: Undefined offset: 2
File: /home/resellers/841289/841289/corenation.com/www/smf/teamspeak/ts_config.inc.php
Line: 232


8: Undefined offset: 1
File: /home/resellers/841289/841289/corenation.com/www/smf/teamspeak/ts_config.inc.php
Line: 231


8: Undefined variable: _50
File: /home/resellers/841289/841289/corenation.com/www/smf/teamspeak/ts_config.inc.php
Line: 384


8: Undefined variable: _50
File: /home/resellers/841289/841289/corenation.com/www/smf/teamspeak/ts_config.inc.php
Line: 384


8: Undefined variable: _50
File: /home/resellers/841289/841289/corenation.com/www/smf/teamspeak/ts_config.inc.php
Line: 384


8: Undefined variable: _50
File: /home/resellers/841289/841289/corenation.com/www/smf/teamspeak/ts_config.inc.php
Line: 384


8: Undefined index: 8
File: /home/resellers/841289/841289/corenation.com/www/smf/teamspeak/ts_config.inc.php
Line: 239


these errors are generated 4 pages a click! nice! LOL

anyhow.... has anybody solved this?

xadio

All the errors are now fixed.  I would like to take a second and say that the way the coder coded this is ridiculous!!!!  It takes forever to figure out what his variables are meaning!!!!  How hard is it to name this

          $_39=trim($_38[0]);
          $_3A=trim($_38[1]);
          $_3B=trim($_38[2]);
          $_3C=trim($_38[3]);
          $_3D=trim($_38[4]);
          $_3E=trim($_38[5]);
          $_3F=trim($_38[6]);
          $_40=trim($_38[7]);
          $_41=trim($_38[8]);
          $_42=trim($_38[9]);
          $_43=trim($_38[10]);
          $_44=trim($_38[11]);
          $_45=trim($_38[12]);
          $_46=trim($_38[13]);
          $_47=trim($_38[14]);


to


                        $TSchannels=explode("    ", $aString);
                        $TSid=trim($TSchannels[0]);
                        $TScodec=trim($TSchannels[1]);
                        $TSparent=trim($TSchannels[2]);
                        $TSorder=trim($TSchannels[3]);
                        $TSmaxusers=trim($TSchannels[4]);
                        $TSname=trim($TSchannels[5]);
                        $TSname=$this->somefuncname($TSname);
                        $TSflags=trim($TSchannels[6]);
                        $TSpassword=trim($TSchannels[7]);
                        $TStopic=trim($TStopic[8]);
                        $TStopic=$this->somefuncname($TStopic);
                        //$_35=$_2C; not neccesary cause now we have a name.... $TSid

That took me all of 2 minutes... and if you started off like that then it would take you all of 0 minutes!

And of course you should at least name the functions to something readable!!!! not _9!!!
Like I said its ridiculous!!

Now to what matters! :) Attachment is below... let me know if you encounter any more issues.
Directions:  Overwrite <smf directory>/teamspeak/ts_config.inc.php with the attached ts_config.inc.php

[attachment deleted by admin]

IchBin

I took a look at those files some time ago xadio and I totally agree. Commenting and naming things properly sure makes it easier to figure out what is happening.

core

Xadio,

Sorry to be a noob, but I have a modified version wich I really like as my version connects user directly to my TS server with their username.

Would hate to loose these modifications as I dont think I will be able to reproduce it by myselve.

Could you or someone please tell me in noob language what I need to edit in my ts.config.php?

when I tried above edit I got a:

Fatal error: Call to undefined function: somefuncname() in /home/resellers/841289/841289/corenation.com/www/smf/teamspeak/ts_config.inc.php on line 284


This website is proudly hosted on Crocweb Cloud Website Hosting.