vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Home Enhancements - TSxView: simple live viewer for Teamspeak 2 & 3 (https://vborg.vbsupport.ru/showthread.php?t=231924)

Disasterpiece 01-01-2010 10:00 PM

TSxView: simple live viewer for Teamspeak 2 & 3
 
1 Attachment(s)
++++ ATTENTION! ++++++++++++++++++++++

This mod is outdated and has been replaced with an advanced version, covering more features: https://vborg.vbsupport.ru/showthread.php?t=264573

Because the mod has been completely rewritten, this isn't considered a simple "update".
Please install the new mod as I won't offer any more support for this one.

+++++++++++++++++++++++++++++++++++





[Old version:]

Welcome everyone!

You can find here a simple Teamspeak online-viewer for your forum.
You don't have to edit core files, just a small plugin file with a php libary and everything should work fine.

If you want to have an overview about how it's looking in the end, check out the screenshots included with this post.

The vBulletin 3.8.x Version of this mod is located here.



INFO
====

Current Version: (please report bugs, issues and any other feedback)
Author: Andreas Rudolph <radon@ggmj.de> (aka Radon)

This is a vB 3 / 4 Plugin with a simple who-is-in-teamspeak box.
Tested with:
- TS2
- TS3 Beta 9
- vBulletin 4.0.0
- vBulletin 3.8.2


ADDITIONAL FILES
================


There are two libaries included with this script which are necessary for php-sided teamspeak query.
You don't need both files, if you're using one teamspeak version only.

ts2status.php by Guido van Biemen (aka MrGuide@NL)
ts3status.php by Sebastien Gerard <sebeuu@gmail.com>


INSTALLATION
============


Extract the archive and upload the libary files into "/forum/includes/" directory.
Install the correct plugin xml file in your vBulletin ACP.
If you are updating, make sure to allow overriding of previous plugin versions.


UPGRADING
=========


To upgrade the plugin, proceed as you'd install a new product by navigating to the
"Plugins & Products -> Manage Products" group and klick "[Add/Import Product]"
Choose the pluginfile for your vBulletin version and make sure to check "Allow Overwrite" before
you import the updated plugin.

If you have problems after upgrading the plugin, write down your plugin's settings, un-install the
addon and install it again.

If you made any changes to the templates, the template records will not be deleted!
After the installation you'll have to re-enter your configurations, because these won't be saved!


CONFIGURATION
=============


By default the plugin is disabled in its options to prevent error warnings.
You can access the configuration by "Settings -> Teamspeakx Viewer".
After you entered the correct information, you can enable the viewer with the first option.

The most important settings:

- Enable / Disable TSxViewer:
This should be enabled for the actual plugin to work. Make sure to enable it *after* you
configured your plugin.

- Teamspeak Version:
If you want to query a TS2 server, switch this to "NO", otherwise leave it to "YES".

- Server IP:
Simply enter the IP, you're using to connect to your teamspeak server.

- Teamspeak 2 Port:
If you're using Teamspeak 2, you have to specify the connection port. This is important,
because if more virtual servers are running on the same machine, this port is used to
identify the correct server and it's used to display a Join link so user can connect through
your forum.
This is the port number you use in your Teamspeak 2 application behind the IP.
If you're using this ip in your TS2 Connection window: "123.123.123.123:8767", your TS2 port
is "8767".
If you're using Teamspeak 3, this setting is obsolete, because the port is transfered
through the query anyway.

- Queryport:
The teamspeak server uses a certain port where it listens for incoming queries.
For TS2 servers, you find this port in the server.ini file, which is located in the same
directory as the server binary is.
In the server.ini, look for a like called "TCPQueryPort". The port number is the value
after the "=".
For TS3 servers, you find this port in the ts3server.ini file, which is located in the same
directory as the server binary is.
In the ts3server.ini, look for a like called "query_port". The port number is the value
after the "=".

If you don't have access to these ini files, ask your server administrator or server
provider for these informations.

- VServer ID:
Teamspeak 3 servers aren't identified by their port number anymore.
Each virtual server gets an unique ID to differ it from the others.
In order to query the correct Teamspeak server, you have to specify its id. This is
important, if the machine TS3 is running on, provides more virtual servers than one.
In this case, you may ask your server provider for the correct ID of your server or ask your
server admin.
You usually find this ID in the server's log files too.


TROUBLESHOOTING / F.A.Q
=======================


- I get the error message "Socket error" or "Connection refused"
-> This is mostly the case, if you entered the wrong IP or port information.
Regardless if the port and ip is correct, the script sends a query to ask if the server
is "there" and answers. If no answer comes back, the script gives back these error messages.
Also check if you use the correct connection method. If your server is Teamspeak 2, it makes
no sense to query it with Teamspeak 3 methods and vice-versa.

- The who-is-online list prints out players who aren't on my server
-> You probably entered the wrong server port (for TS2) or the wrong vServerID (for TS3) and
the script is querying the wrong server.
Make sure you're using your server's data.

- I'm getting a blank site with PHP errors of classes that could not be found
-> You forgot to upload the query libaries or you put it in the wrong place.
Make sure you uploaded the necessary php files into the ./forum/includes directory and set
the correct permissions so the webserver can access it.
Also check if you're using the correct version.
If you update the plugin file, always update the libary file(s) too!


CUSTOMIZATION
=============


To customize the template, you'll find it in the forumhome Templategroup as "forumhome_tsviewer"
If you want advanced customization of the output code, you have to edit the plugin code.

To display the viewer in a different position, you can edit the output template hook.
In the plugin's code, find
"$hookpos = 'forumhome_wgo_pos'.$vbulletin->options['tsx_displayposition'];"
And change the 'forumhome_wgo_pos' to any other hook you want the output to appear.
Since the forumhome template has 5 positions (forumhome_wgo_pos1, forumhome_wgo_pos2, ...,
forumhome_wgo_pos5), you have to remove
"$vbulletin->options['tsx_displayposition'];"
if your preferred hook has no number at its end.
If there is no output at all, you probably used an invalid hookname.

For usage with teamspeak2, you can also put an icon file "teamspeak.gif" into the misc dir of your
image folder. This icon will be displayed on the left side of the output row.
If you want to use an other icon file or rebuild the output row, you have to edit the forumhome_tsview
template to fit your needs.


CHANGELOG
=========


12/01/09
- First non-beta Release starting at v1.1
- Fixed a formatting error in ts3status.php libary file
- Fixed tabs and whitespaces in xml files causing plugin installation to fail in rare cases.

04/01/09
- General code-cleanup
- Some additions for the settings descriptions
- Added setting for password-protected servers
- Added joinlink support for passworded servers
- Minor changes in ts3status.php

01/01/09
- Initial release

Safe Stars 01-02-2010 03:17 PM

This could benefit from some better installation instructions. A lot better.

Mine simply shows "Currently in TS: -1 User
Socket error: Connection refused [111]"

Using TS3.

Disasterpiece 01-02-2010 03:25 PM

This error appears, when the server is not responding.
Do you have set the correct query port?

Is your TS3 running on a local machine behind a NAT? Do you have redirected the ports correctly?

Safe Stars 01-02-2010 03:29 PM

Yes it's querying the right port, no it's not on a local machine, it's running on a dedicated server from a hosting company.

I've used TSViewer.com before to query it and had no issues, but it also used the port, not a virtual server ID.

Disasterpiece 01-02-2010 03:39 PM

I didn't write the code for the actual query, i just wrote the connection between the query and vB :)
But if you PM me detailed data about your ts server (ip, port, virtual server id, queryport) i'm sure i can help you out.

Install instructions will be updated soon.

juscampin 01-03-2010 09:44 AM

Does anyone have this working?

Disasterpiece 01-03-2010 01:38 PM

Quote:

Originally Posted by juscampin (Post 1945793)
Does anyone have this working?

Hi

You can PM me with your settings in the ACP, then i'll take a look if something is missing.
Apparently, there might be some misunderstanding regarding the settings of the plugin, so i'd like to find out where the problem is.

pointy 01-05-2010 05:02 AM

Hi mate.

I installed the plugin, no errors
Uploaded the files to the forum/includes/ dir
Edited the settings

It does not show up in the 'Whats going on' area at all, not even the title shows up.
Any ideas?

EDIT - my apology - was meant to post this in the 3.8.x version area (now posted there)

Disasterpiece 01-05-2010 01:35 PM

Hi pointy!

2 possibilities:

1) did you enable the plugin in the top setting? Otherwise it won't do anything at all

2) did you modify your style (forumhome respectively) so that some hooks were removed/modified?
Do the following:
Edit your FORUMHOME template and search for "forumhome_wgo_pos".
You should find 5 positions with "$template_hook[forumhome_wgo_pos1]" to 5 as i wrote in the customization section of the readme.
If you don't find them, just place a line
"$template_hook[forumhome_wgo_pos2]"
somewhere where you think it might fit your needs.
I suggest to put it in the what's going on box.

If this doesn't work, please tell me your vB version and what style you're using (if not the default style)


regards

pointy 01-06-2010 06:41 AM

Hi mate

Thanks for your help

I got it working, but its not displaying any image?

www.bestgn.net.au/forums

EDIT - there is no image available in the specified location? is there meant to be?

Disasterpiece 01-06-2010 02:02 PM

Hi

It's normal that there isn't an image for that.

Either you rename the image file in the template, or you place a custom teamspeak icon in your images/misc directory.

In the next release I'll provide a teamspeak icon.

pointy 01-07-2010 02:37 AM

I had a mate do an image up quickly, but supplying the image would be a bonus for sure.

Great mod mate. Good work!

Cface 01-07-2010 05:41 AM

Tagged.

Maybe you will add the ability to check for specific channels within a server in later features? Or is this already a function?

Disasterpiece 01-07-2010 09:22 AM

@Cface: I'm not sure what you mean. Do you want to query only a single or two channels instead of the whole server?

Hollanda 01-07-2010 11:56 AM

I'll get this error: XML Error: Unknown at Line 1

Disasterpiece 01-07-2010 12:03 PM

Hi

Open the xml install file and change the first line from:
Code:

<?xml version="0.1" encoding="ISO-8859-1" ?>
to:
Code:

<?xml version="0.1" encoding="ISO-8859-1"?>
(Remove the whitespace left of the closing ?> part)

Seems to be a common error, so I updated the package.

RMonster 01-11-2010 05:39 PM

Hi I'm getting:

XML Error: XML_WAR_UNKNOWN_VERSION at Line 412

When i try to add the product

RMonster 01-11-2010 06:23 PM

fixed by:

<?xml version="1.0" encoding="ISO-8859-1"?>

Disasterpiece 01-11-2010 06:26 PM

Quote:

Originally Posted by RMonster (Post 1952919)
Hi I'm getting:

XML Error: XML_WAR_UNKNOWN_VERSION at Line 412

When i try to add the product

Hi

I have never heard of this and i have absolutely no idea what this could be, but try to remove the tab whitespace in the last line of the plugin's xml file:

Code:

        </product>
becomes:
Code:

</product>
And try uploading it again.
Maybe this works? :confused:

RMonster 01-11-2010 07:10 PM

changing the first line to
<?xml version="1.0" encoding="ISO-8859-1"?>

fixed it.

I think it didn't like the 3 place decimal points in the version string.
Thanks for the great mod btw!

Disasterpiece 01-11-2010 07:33 PM

oh, okay. next version will be 1.1 then ;D

thanks for your help!

Fr4n-FX 01-11-2010 10:51 PM

Thank you!!!!!!!!!!!!

Doctor Death 01-11-2010 10:53 PM

Any chance of getting this for ventrilo?

Thanks!

Disasterpiece 01-12-2010 08:35 AM

A few more integrations like Vent and Mumble are planned, but before this, a general feature adjustment like caching is planned.

So it might take some time.

Doctor Death 01-12-2010 08:41 AM

Thanks for that response... I look forward to it!!

RMonster 01-12-2010 02:52 PM

1 Attachment(s)
hi I seem to have a formatting issue.

Whenever i enable ts viewer, it messes with vb css, see attached.

I tried changing some things but it still does it.

Any ideas?

Disasterpiece 01-12-2010 03:24 PM

Just updated the Plugin.

Please use the latest version and replace the old ts libary files, then everything should work :)

Changelog in first post.

RMonster 01-12-2010 03:42 PM

Thanks works great now!

Hollanda 01-14-2010 02:36 PM

Works like a charm!

Jinkasu 01-17-2010 01:58 PM

Installed: Nice Mod :)

St0rmNet 01-18-2010 04:41 PM

Issues with this mod with the update to server version Beta 15.

Updates?

-St0rm

Disasterpiece 01-18-2010 06:25 PM

i'll look into it.

give me some time.

Disasterpiece 01-18-2010 07:59 PM

Problem found. Please read the notice in the mod description:

Quote:

*** IMPORTANT NOTICE FOR TS3 BETA 15 AND HIGHER ***

With the latest release (Beta 15) of the teamspeak 3 server, ts3 has introduced a query flood protection which bans every ip, which queries the teamspeak server too often in a short period of time.
To exclude ips from this procedure, edit the query_ip_whitelist.txt in your ts3 server directory.
For those who don't have access to this file, consult your service provider.
The next major version of this plugin will include some techniques to deal with this limitation. Stay tuned.

Also notice, that the newest ts3 server version (beta 15) requires client version of beta 11 or higher.

Please read the version notes and the documentation of teamspeak3 itself to get further information: http://www.teamspeak.com/?page=home
========

allenelson 01-26-2010 10:25 PM

Nice mod, installed! Can you add on to the script and make it a dual teamspeak/ventrilo status for us multi-voip sites?

Olli2k 02-13-2010 12:25 PM

Hey there,
is it possible to display this mod only for selected usergroups?

The conditions for my page would be <vb:if condition="is_member_of($bbuserinfo, 5,6,7,11,12)">, but i downt knwo where to modify the code. My trys always ended in several php error messages.

ysam 02-21-2010 02:32 PM

Can someone post a way to display this as a widget and/or in sidebar plz?

Kaosvf 03-10-2010 12:14 PM

Sorry, can i show only a specific channel??

GS18DVD 03-13-2010 09:14 AM

i now have got it installed but it always shows that on the teamspeak 3 server is no user, also if there is someone on it.

how can that be? can you/someone help me please.

thanks.

Disasterpiece 03-13-2010 03:51 PM

uh, didn't notice new posts, vb.org sent me no mail :o

Anyway sorry for the delayed replies:

Quote:

Originally Posted by Olli2k (Post 1981340)
Hey there,
is it possible to display this mod only for selected usergroups?

The conditions for my page would be <vb:if condition="is_member_of($bbuserinfo, 5,6,7,11,12)">, but i downt knwo where to modify the code. My trys always ended in several php error messages.

You can edit the template "forumhome/tsviewer" and put this info in the first line. Or replace the template's code with this one:

PHP Code:

<!-- TSxViewer -->
<
vb:if condition="is_member_of($bbuserinfo, 5,6,7,11,12)">
<
div id="ts_viewer" class="wgo_subblock collapse">
<
h3><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="TSxViewer" />{vb:raw phrase_tsx_currentuser}</h3>
    <
div>
    {
vb:raw tsxview_output}
    </
div>
</
div>
</
vb:if>
<!-- /
TSxViewer --> 

(not tested, but should work)

Quote:

Originally Posted by Kaosvf (Post 2000856)
Sorry, can i show only a specific channel??

Currently not without changing the code files on your own. This feature will be supported in the next major update.

Quote:

Originally Posted by GS18DVD (Post 2002690)
i now have got it installed but it always shows that on the teamspeak 3 server is no user, also if there is someone on it.

how can that be? can you/someone help me please.

thanks.

It is most likely, that you used the wrong server ID (Teamspeak 3) or used the wrong server port (TS2).
If your TS server is hosted by a provider, ask him what your serverID is (TS3) or which query port you should use (TS2)
If the problem persists, you can PM me your TS data and I can take a look.

Kaosvf 03-13-2010 04:24 PM

Quote:

Originally Posted by Disasterpiece (Post 2002879)
Currently not without changing the code files on your own. This feature will be supported in the next major update.

Ok, i wait... xD


All times are GMT. The time now is 07:13 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01512 seconds
  • Memory Usage 1,855KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete