Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

August 19, 2022, 06:13:39 AM

Login with username, password and session length
Members
  • Total Members: 3843
  • Latest: Tricky
Stats
  • Total Posts: 193479
  • Total Topics: 21088
  • Online today: 58
  • Online ever: 1035
  • (November 26, 2020, 04:45:12 AM)
Users Online
Users: 2
Guests: 52
Total: 54

Author Topic: Teamspeak block!  (Read 196585 times)

0 Members and 1 Guest are viewing this topic.

-Prismatic-

  • Guest
Teamspeak block!
« on: October 14, 2005, 04:20:45 PM »
Ive been using this for a long time on my website and figured a lot of others would benefit from it aswell :)

Directions
Download and unzip Teamspeak.zip to a subfolder in the root of your forum called teamspeak (IE. www.yoursite.com/yourboards/teamspeak/)
Open ts_viewer.php
Find:

Code: [Select]
$ts_viewer->set_Viewer("Prestigious Gaming", "http://lifeisshort.warrency.com/");
   $ts_viewer->set_Channels();
   $ts_viewer->show_ts_viewer("warrency.com", 8767, 51234, "");

See this line >> $ts_viewer->set_Viewer("Prestigious Gaming", "http://lifeisshort.warrency.com/");
Replace Prestigious Gaming with the name of your Teamspeak server, and http://lifeisshort.warrency.com/ with the link to your site

See this line >> $ts_viewer->show_ts_viewer("warrency.com", 8767, 51234, "");
Replace warrency.com with the ip/web address to the teamspeak server. "8767, 51234" are ports I believe... (should be fine with defaults)

To Make it show up on your website
Create a new PHP block. Inside of it place this code >> include ("teamspeak/ts_viewer.php");

That should be it! If it doesn't work post here with the problem and I will try to help you fix it :)

Live Demo: http://lifeisshort.warrency.com - Lower right side.

Please use the attached file in this post for the teamspeak block. It should be error free.
http://www.tinyportal.net/index.php?topic=1021.msg26256#msg26256
« Last Edit: March 26, 2008, 01:31:36 PM by IchBinâ„¢ »

Racenut

  • Guest
Re: Teamspeak block!
« Reply #1 on: October 14, 2005, 04:32:53 PM »
I have been waiting for this! Bless you  :)

-Prismatic-

  • Guest
Re: Teamspeak block!
« Reply #2 on: October 14, 2005, 04:55:21 PM »
Np :) It wasn't made by me, but origonally it would cause hell for TP, and the config file was compressed to around 12-15 lines :| What I did was make it function in a TP block with no issues and clean up the config file :)

Racenut

  • Guest
Re: Teamspeak block!
« Reply #3 on: October 14, 2005, 05:19:06 PM »
It worked, however the images do not show. Any idea why?

Racenut

  • Guest
Re: Teamspeak block!
« Reply #4 on: October 14, 2005, 05:41:13 PM »
Ok, I see why the images are not showing. When i right click on where the images are supposed to be, i see the path to the images is wrong. The path it calls for is http://mysite.com/forum/xx.gif. The images are actually at http://www.mysite.com/forum/teamspeak/xx.gif. What is the best way to correct this? Should i just dump the images out in the forum directory or should the code be changed somewhere to make it point to where they are now?

thanks

-Prismatic-

  • Guest
Re: Teamspeak block!
« Reply #5 on: October 14, 2005, 05:50:14 PM »
Aside from editing the code in the config file that would probably be your best bet =X


Edit - let me modify the config file for you hang on..

Racenut

  • Guest
Re: Teamspeak block!
« Reply #6 on: October 14, 2005, 05:52:56 PM »
ok thanks :) but why does it call for the images from the wrong place? Only reason I ask is Im wondering if its just me or if your instructions need to be changed a bit. I just always like to know why the problem occurs so I can learn from it. :)

-Prismatic-

  • Guest
Re: Teamspeak block!
« Reply #7 on: October 14, 2005, 05:56:11 PM »
Here try this config. It looks for the images in the /teamspeak/ folder :)

Racenut

  • Guest
Re: Teamspeak block!
« Reply #8 on: October 14, 2005, 05:59:05 PM »
Worked like a charm  ;)

-Prismatic-

  • Guest
Re: Teamspeak block!
« Reply #9 on: October 14, 2005, 05:59:45 PM »
Cool :D

Edit - And if you are wondering why it was happening. The way the images were being called were the straight images, no directorys, because I assumed that since the ts_viewer and config files were in the folder with them, it would call them correctly, but it appears when you include the php file it acts as if it's right there in the root folder :) so I added "teamspeak/" to the begining of all the files so they get called from the right place.
« Last Edit: October 14, 2005, 06:05:24 PM by -Prismatic- »