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 - Advanced Voicetool Viewer (Teamspeak 2, Teamspeak 3, Ventrilo viewer) (https://vborg.vbsupport.ru/showthread.php?t=264573)

Disasterpiece 06-01-2011 10:00 PM

Advanced Voicetool Viewer (Teamspeak 2, Teamspeak 3, Ventrilo viewer)
 
1 Attachment(s)
INFO

This is a more advanced version of my old tsxviewer plugin. It was written from scratch and offers a lot more features!
It displays a list of users connected to a voicetool like Teamspeak 2, Teamspeak 3 or Ventrilo and displays them on the Forumhome page inside the what's going on box, or anywhere else!

Templates allow you to fully customize the viewer, which can display unlimited amounts of viewers for your voicetool servers!

Keep track your server's uptime with the cron logger, which logs every time a server times out or comes back online!


*** Despite the product description saying mumble is supported, it is NOT. Sorry for any confusion ***

FEATURES

- Multiple Server Viewers on a single page
- Fully customizable Templates
- Query caching
- Server Uptime Logging
- No iFrames! Fits perfectly into vbulletn. Make search engines love you!

INSTALLATION

Extract the archive and upload the files according to their structure:

Code:

- forum root
        - admincp
                + tsxview_admin.php
        - includes
                - cron
                        + tsxview_cron.php
                - xml
                        + cpnav_advancedvoicetoolviewer.xml
                + tsxview_class.php
                + ts2status.php
                + ts3status.php
                + ventstatus.php
        - images
                - cms
                        + delete_small.png
                        + edit_small.png
                        + permission-not-set_small.png
                        + permission-set_small.png
                - misc
                        + mumble.gif
                        + teamspeak2.gif
                        + teamspeak3.gif
                        + ventrilo.gif
                        + ts3_off.png (optional)
                        + ts3_on.png (optional)

Install the correct plugin xml file in your vBulletin ACP.
If you have any previous tsxviewer product installed prior to 1.3, uninstall it first! (Important!)

READ THE INCLUDED README FILE BEFORE INSTALLING THE PLUGIN! (srsly, spare you the headache!)

Disasterpiece 06-02-2011 12:47 AM

TROUBLESHOOTING

Please make sure, that
- you use the latest version
- followed the install instructions, uploaded each file to the correct location


TS3 Related Troubleshooting

My server is displayed as offline, but I can connect to the server!

Step 1: First, make sure you entered the correct port, queryport and serverID. it is crucial, that these informations are correct, otherwise the script won't get an answer or will pull the details from the wrong server.

Step 2: Firewall/NAT -
If your server is behind a firewall or a port filter tool, you need to allow datatransfer between the local server and the webserver. If you search for "Port forwarding", you should find enough material and tutorials to solve this issue

Step 3: query whitelist -
For the webserver being allowed to query information from the teamspeak server, you need to add the webserver's ip to the ip whitelist. The File is called "query_ip_whitelist.txt" and located in the ts3 server directory.
Add the webserver's ip in a separated line to the file and save the document. You may have to restart the ts3 server to apply these changes. (This step is not necessary if your teamspeak server runs on the same machine like the vB forum)

Step 4: For the query script to be allowed to pull specific information about the server, you need to grant special permissions to the guest and/or guest server query group.
First of all, you need to enable the advanced rights management inside of your ts3 client settings, so you can actually see what you're doing.
The specific setting is located in the settings window (ALT+P), under the "Anwendung / Application" Tab in the gorup "Verschiedenes / Misc" on the left hand side, named "Erweitertes Rechtemanagement / Advanced permissions system". Make sure the box is ticked.
Open the rights management from within the ts3 client while connected to your server, navigate to Server Groups. Then you need to grant these rights for the groups Guest and Guest Server Query:
  • b_virtualserver_info_view
  • b_virtualserver_channel_list
  • b_virtualserver_client_list
  • b_virtualserver_select
You'll find those rights via filter in the section Virtual Server > Information. (Make sure you have the selectbox set to "Display Names" on the bottom of the window)
If you are not able to solve this problem on your own or run in complications, please contact your ts3 server provider or the official teamspeak forums for assistance, since this problem is beyond the scope of this mod.


Also, you might want to check out this post on details how to enable these guest rights.

If you've gone through these 4 steps and still can't get the viewer to work, contact me via PM with this information:
  • TS3 Server IP:
  • TS3 Port:
  • TS3 Queryport:
  • TS3 Server IP:
  • TS3 Server version:
  • vBulletin Version:
  • Product version:
  • Problem description: Error messages, logs, observations, etc.
General F.A.Q.

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!


The viewer output doesn't print at all, how can I display it?

Check first, if you enabled the ts viewer in your vBulletin Settings -> "Advanced Voicetool Viewer".
Also, check in your ServerOverview panel, if there are any servers which are active.
If you chose to hide offline servers, check if at least one server is online.
When using a custom template, you may have different hook names than the default vbulletin style.
Check the template code for the right hook names where you want the viewer to appear or consult
your designer for help.
If all this didn't help, check the template files IF you modified them or ask in the mod thread for help.


The Viewer doesn't update immediately, sometimes I have to refresh the page multiple times for it to update the viewer!

This happens when you didn't set up a proper cron job for vbulletin.
Check the section "Cron jobs" in the readme file for more information.




CHANGELOG

Code:

CHANGELOG
=========

06/05/11
- Fixed a bug in the userlist for ventrilo servers
- Fixed a MYSQL Statement bug when editing a server
Upgrade notes: When updating from v1.3, just download the zip archive and upload the file inclues/tsxview_class.php

02/05/11
- Minor Bug fixes in back- and frontend
- Added option to specify the server ordering
- Improved template system to allow more customization
- Fixed wrong behaviour of ts2 query libary on certain occasions
- Fixed some image urls not being defined correctly
- Changed version to v1.3

04/04/11
- Internal Beta release of v1.2
- Introduced Support for Multiple Voicetools (TS2, TS3, Ventrilo)
- Introduced Query caching
- Introduced Multiple server viewers at once
- Improvements to server queries and error handling
- Bug fixes and improvements in the backend
- Added phrases for translations

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


Mastar 06-03-2011 03:21 AM

Its saying our vent is offline when its not! Any suggestions?

Mastar 06-03-2011 03:22 AM

Its saying our vent is offline when its not! Any suggestions?

tlwwolfseye 06-03-2011 12:11 PM

I tried that Mod ony my 4.10 vB and I get this MySQL error.

Quote:

MySQL Error : Column count doesn't match value count at row 1
Error Number : 1136
There were no previous Versions of TSX installed. Whats wrong ?

kardac.stenfot 06-03-2011 01:52 PM

Nice app. Installed.

Disasterpiece 06-03-2011 02:03 PM

Quote:

Originally Posted by Mastar (Post 2202926)
Its saying our vent is offline when its not! Any suggestions?

Did you use the correct ip and port?
Please PM me the connection details to your vent server, I'll take a look.

Quote:

Originally Posted by tlwwolfseye (Post 2203041)
I tried that Mod ony my 4.10 vB and I get this MySQL error.

There were no previous Versions of TSX installed. Whats wrong ?

Huh, never heard of that one before. 4.1.0 you say? I'll check back and see what's the problem. Didn't encounter something like this myself yet.

Kapeket 06-03-2011 08:12 PM

Installed and working.

I am new to CMS so how do I go about creating a forum block for this or widget?

Thriled with the idea of not using an outside source for this information.

I did get the cronjob setup correctly so that is a start. =)

watfro 06-05-2011 07:49 AM

Quote:

Originally Posted by tlwwolfseye (Post 2203041)
I tried that Mod ony my 4.10 vB and I get this MySQL error.



There were no previous Versions of TSX installed. Whats wrong ?

I have the same problem on 4.1.3 when adding an TS3 server...

Doc90 06-05-2011 07:50 PM

mee too

NPGamers.Net 06-06-2011 01:37 AM

You need to read the directions. You have to put the correct ID of the TS in to stop the errors.

I installed it correctly on my site but says the server is offline. I have allowed my website into the ip whitelist for TS3 and no change. ?

Rabillo 06-06-2011 03:41 PM

Quote:

Originally Posted by Disasterpiece (Post 2203072)
Huh, never heard of that one before. 4.1.0 you say? I'll check back and see what's the problem. Didn't encounter something like this myself yet.

Invalid SQL:
INSERT INTO `vb_tsx_server` (`active`, `name`, `ip`, `port`, `queryport`, `serverID`, `type`, `order`, `cacheTime`, `signalTime`, `status`, `created`, `password`) VALUES ( 0, 'Teamspeak 2', 'xxx.xxx.xxx.xxx', 8767, 59176, 0, 1, 999, 0, 0, 3, '1307378271' );

'value' for 'password' is missing in sql-query ... the last value ('1307378271') in the query is the value for the 'created' timestamp.


vBulletin 4.1.3 pl1
avv 1.3

Edit 2 - solution:

tsxview_class.php, find line 126:

VALUES ( %d, '%s', '%s', %d, %d, %d, %d, %d, %d, %d, %d, '%s' )",

replace it with

VALUES ( %d, '%s', '%s', %d, %d, %d, %d, %d, %d, %d, %d, %d, '%s' )",

Disasterpiece 06-06-2011 04:14 PM

The MYSQL error is now fixed.

For all those with version 1.3, just download the package, upload the file
includes/tsxview_class.php and overwrite the old version.
Or alternatively, try the fix from Rabillo. Now you should be able to add new servers.

Quote:

You need to read the directions. You have to put the correct ID of the TS in to stop the errors.

I installed it correctly on my site but says the server is offline. I have allowed my website into the ip whitelist for TS3 and no change. ?
Can you PM the ts3 information to me so i can check what's wrong?

ip:
port:
queryport:
serverid:

Doctor Death 06-06-2011 05:12 PM

I like this mod... Wonder if I can recommend an enhancement or two... Take them or leave them.

Where it says JOIN SERVER, if you have ventrilo and a default visitor name, it will try and overwrite the local profile.. any way for it to join and keep default user name if one exists?

I think it should have an icon that says "Voice Servers" and then list the servers under that by type with icon and status.....

Should probably be able to define the color of the JOIN SERVER link.

Thanks again, this is very useful

Disasterpiece 06-06-2011 05:36 PM

Hi Doctor Death,
most of the features are already covered by the way you can modify the templates on your own. Given that you have the according HTML/CSS knowledge or someone who does.

Quote:

Where it says JOIN SERVER, if you have ventrilo and a default visitor name, it will try and overwrite the local profile.. any way for it to join and keep default user name if one exists?
Not sure what you mean by "default user name". Does ventrilo has a setting like this? I'm not sure how ventrilo handles these things, but possibly it should be enough to leave the user name parameter in the url blank, right?

Quote:

I think it should have an icon that says "Voice Servers" and then list the servers under that by type with icon and status.....
You can modify the 2 templates accordingly to fit this kind of output.
I'm not sure it would be a wise idea to implement this kind of output and then nobody uses it. The template vars should be enough to let you style the output exactly how you like them to be. If something in particluar is missing, let me know!

Quote:

Should probably be able to define the color of the JOIN SERVER link.
You already can!
Put this in your CSS > additional.css template:
Code:

/* TS VIEWER JOINLINK COLORS */
/* TS2 */
.tsx_type_1 span.tsxview_joinlink a {
color: #ff0000;
}
/* TS3 */
.tsx_type_2 span.tsxview_joinlink a {
color: #00ff00;
}
/* Ventrilo */
.tsx_type_3 span.tsxview_joinlink a {
color: #0000ff;
}

Replace the color codes with the colors you like and the link should have that color!

Mastar 06-06-2011 07:39 PM

I've updated the Hack on my forums and it still doesn't connect to Vent... it says Offline!

computer22 06-07-2011 03:41 AM

Would be awesome if it could display a small box on the CMS frontpage!

Kraxell 06-09-2011 04:00 PM

Hello,

i want to enable "b_virtualserver_select" but the voice always say error. Any idea?

/EDIT
Works =)

But one little Problem. Names with special signs are not working. Any idea to solve it?

2. Question:
How to show it only for a special usergroup?

Disasterpiece 06-09-2011 04:41 PM

Quote:

Originally Posted by Kraxell (Post 2205489)
But one little Problem. Names with special signs are not working. Any idea to solve it?

By "not working" you mean the name gets displayed just without special chars, or some weird characters showing insted or no username at all?

Quote:

Originally Posted by Kraxell (Post 2205489)
2. Question:
How to show it only for a special usergroup?

Sure, you can edit the viewer_overall template and add these conditional tags around the content:
PHP Code:

<vb:if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)">
...
</
vb:if> 

where 1, 2, 3 are the group ids of the groups, where the user must be a member of (at least one)

Kraxell 06-09-2011 04:57 PM

Quote:

By "not working" you mean the name gets displayed just without special chars, or some weird characters showing insted or no username at all?
Names shows as ?????

Ok, thanks for help =)

AH sehe gerade, deutsch? :)

Disasterpiece 06-09-2011 07:37 PM

Quote:

Originally Posted by Kraxell (Post 2205513)
Names shows as ?????

Ok, thanks for help =)

AH sehe gerade, deutsch? :)

Dachte die Flagge und die Location h?tten mich schon enttarnt ;)

I'll look into it, probably something wrong with utf8 encoding.
Which server types show this behaviour? TS2/TS3/Vent or all servers?

Kraxell 06-09-2011 07:45 PM

Steht nur GER da, keine Flagge :P
EDIT: Ah....Avatar und so :D

I use TS3.

Ronya 06-12-2011 03:10 PM

i've installed last version and don't see server.usercount looks like phrases not added.

It's possible to see cyrillic fonts in user names?

Disasterpiece 06-12-2011 10:51 PM

The special processing with specific charsets will be improved in the next version, i'll try to release it this week.

iKettles 06-23-2011 02:53 PM

Can't seem to be able to get my TS3 server showing as online on my forums.
http://www.flycay.com/forums
99% sure server details are right but still shows as offline

Disasterpiece 06-23-2011 05:18 PM

Quote:

Originally Posted by iKettles (Post 2211799)
Can't seem to be able to get my TS3 server showing as online on my forums.
http://www.flycay.com/forums
99% sure server details are right but still shows as offline

Did you follow the troubleshooting in post #2?
https://vborg.vbsupport.ru/showpost....35&postcount=2

If after that you still can't get it to work, send me your ts server credentials per PM and I'll take a look.

andyv72 06-24-2011 11:34 AM

What is withs MUMBLE ?????

\avv-1_3_2FIX-product\images\misc\mumble.gif <----

Disasterpiece 06-24-2011 05:26 PM

Quote:

Originally Posted by andyv72 (Post 2212132)
What is withs MUMBLE ?????

\avv-1_3_2FIX-product\images\misc\mumble.gif <----

I started to implement mumble as well, but mumble is from a developer perspective just utter cr4p so I scrapped it completely.

As long as they don't provide an usable query API: No way.

FuzzyBear 07-08-2011 04:06 AM

I have the same problem as the previous poster installed fine but says offline when at the time of seeing this there are 7 people in ventrilo, i've checked and double checked the IP, Port and Password

Disasterpiece 07-08-2011 04:52 AM

Quote:

Originally Posted by FuzzyBear (Post 2218029)
I have the same problem as the previous poster installed fine but says offline when at the time of seeing this there are 7 people in ventrilo, i've checked and double checked the IP, Port and Password

check your PMs

FuzzyBear 07-08-2011 04:33 PM

Pm sent thanks for the fast reply.

techanalyst 07-18-2011 08:16 PM

I have my server IP address in, but which port do I use? I know what the Queryport is but password must be query port password

TS3 ServerID, Im not sure what we are suppose to put here

Disasterpiece 07-19-2011 02:19 AM

As TS3 QueryPort use: 10011, as connect port (obsolete, gets pulled by the script: 9987)
If that doesn't work, ask your hoster/provider for the correct ports

techanalyst 07-20-2011 07:58 PM

I actually own the physical servers and the license so theres no hoster involved.

Ive done all that but doesnt work, im guessing TS3 Server ID is wrong maybe

Disasterpiece 07-20-2011 09:30 PM

Did you set the correct query Permisions?
Otherways send me your server credentials per pm for further assistance

Kraxell 07-25-2011 09:18 AM

Is it possible to add the list in a widget?

kinhell 08-01-2011 06:34 PM

Our host wont allow us to edit the whitelist and our server is showing offline, is there any way round this?

Disasterpiece 08-02-2011 04:37 PM

Not that I know of.

Maybe it's enough to give the necessary query permissions to the guest account like described here?

Otherwise, consult the official Teamspeak Support forum or change your host.

Note: This is beyond the scope of my mod and a ts3-related problem.

kinhell 08-02-2011 06:42 PM

Is there any logging we can view to see why this mod shows offline? Really would like to get it working as its the best one weve seen

Disasterpiece 08-02-2011 07:51 PM

Well, you can hover over the last positive signal entry, if there was any socket response or a negative answer from the ts3 server, you can see it there.
But still, it's not a problem of the mod, it's simply a problem where no socket connection to the ts server could be established.


All times are GMT. The time now is 05:05 AM.

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.01479 seconds
  • Memory Usage 1,859KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (16)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