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)
-   -   Integration with vBulletin - [Neoobs] Teamspeak3 Integration (https://vborg.vbsupport.ru/showthread.php?t=255700)

Neo_obs 12-21-2010 10:00 PM

[Neoobs] Teamspeak3 Integration
 
1 Attachment(s)
** Find more information about this project along with source code and bug/support tracker here **

Please remember to click Mark as Installed if you use this modification.
Please feel free to nominate this modification for the MOTM, and/or use the donate link provided (Support Developer).

This mod integrates Teamspeak 3 with VBulletin by synchronizing VBulletin usergroups with Teamspeaks server groups. It also issues tokens to users and has a small viewer. More functionality will be added upon request or as needed.

NOTE: You must have a Teamspeak 3 server with ServerQuery Login. (Other permissions may be required, a full list of permissions will be added later.)

Options / Features :
* The ability to turn the whole modification on/off.
* The ability to show the modification in Quick Links.
* Automatically add users to TS3 groups (server and channel) based off of their Unique ID (set in profile)
* The ability to look up users by username or userid (if they used a token generated by this script)
* The ability to look up users by unique ID
* The ability to allow certain usergroups to generating tokens.
* The ability to allow certain usergroups to reset token counts.
* The ability to allow certain usergroups to administer tokens.
* Custom number of tokens and unique ID's

Two new usergroup permissions are provided in the usergroup manager.

* Default Teamspeak Server Group - The Teamspeak 3 server groups that users will be placed into.
* (Channel Name) - The Teamspeak 3 channel group that users will be placed into for that channel. (Only one group is allowed per channel, select none to not set a channel group)
* Can Generate Tokens
* Can Reset Tokens
* Can Admin Teamspeak
* Number of Tokens allowed (also used for number of unique ID's)

Two new user fields have been added and are editable through the user manager or the teamspeak script.

* Teamspeak Unique ID (variable depending on settings for primary usergroup)
* Tokens (the number of tokens they have generated)

* All other modification settings are in vBulletin Options > Neoobs - Teamspeak.

To install or upgrade;
  • Unzip the files.
  • Upload contents of upload folder to forum root.
  • Import the product into vBulletin using the ACP Product Manager.
  • Set your groups in the usergroup manager.
  • Set your settings in the settings manager.

Note that by default all usergroups are not set up, you must set them each to your own server groups. (This will be fixed in a future release)



Support
Support will not be provided for vBulletin 4 Alpha, Beta or RC versions.
Feel free to PM me if you have any problems and I will try my best to fix them in a timely manner.
Low priority will be given to posters who do not have this marked as installed
In some cases, support can only be provided if I have an admin login and ftp access.


To Be Added
* Update TS3 Group when VB3 Group is updated
* Viewer on ForumHome
* Add FAQ and Admin Help Topics


History:
v0.9.9 : 4-May-2011 : Initial Stable Release.

Beta Releases
v0.9 Beta : 31-Dec-2010 : Added support for custom number of tokens, Moved away from profile fields, Added lookup page, Added support for multiple unique ID's, Added support for secondary usergroups. Added Screens (NOTE: Phrases are not complete in this version. However if you would like to add phrases for another language let me know)
v0.8 Beta : 23-Dec-2010 : Added lookup page, Added multiple server groups, Added channel groups
v0.7 Beta : 22-Dec-2010 : Initial Beta Test.




GNU COPYRIGHT NOTICE: This mod uses Teamspeak3 PHP Framework provided by Sven 'ScP' Paulsen of Planet TeamSpeak.

Neo_obs 12-22-2010 01:09 PM

Reserved - Screenshots coming soon.

Harelin 12-22-2010 08:18 PM

Thank you for creating this. I'm glad to see support for channel groups on your to do list - I'll be adopting this for use on my forum as soon as that is implemented.

Neo_obs 12-23-2010 02:13 AM

Quote:

Originally Posted by Harelin (Post 2137785)
Thank you for creating this. I'm glad to see support for channel groups on your to do list - I'll be adopting this for use on my forum as soon as that is implemented.

Well since you gave some feedback, why not help me make this the best TS mod for you, how do you want to support channel groups? Should it be per user or per usergroup? Do you want it as easy as possible or are you ok with entering number combinations like (channel_id => channel_group_id)

Trip3151 12-23-2010 02:40 AM

I am installing this mod as we speak I think the best TS3 mod for VB would be this:
http://addons.teamspeak.com/director...chokiller.html

If this mod could do all or even 90% of what the above app can do then people that have a vbulliten forum can host TS3 servers \ reseller.

Thanks for the mod :)

Neo_obs 12-23-2010 02:51 AM

Quote:

Originally Posted by Trip3151 (Post 2137870)
I am installing this mod as we speak I think the best TS3 mod for VB would be this:
http://addons.teamspeak.com/director...chokiller.html

If this mod could do all or even 90% of what the above app can do then people that have a vbulliten forum can host TS3 servers \ reseller.

Thanks for the mod :)

That is essentially what I want to do, except with VBulletin as the backend. (I use that already, and even want to incorporate TSFTP into this as well)

Trip3151 12-23-2010 03:04 AM

Ok lets see

I get an error when I try and edit the usergroup

Database error in vBulletin 4.1.0:

Invalid SQL:

SELECT text, languageid, special
FROM phrase AS phrase
LEFT JOIN phrasetype USING (fieldname)
WHERE phrase.fieldname = 'error'
AND varname = 'neo_teamspeak_error' AND languageid IN (-1, 0, 1);

MySQL Error : MySQL server has gone away
Error Number : 2006
Request Date : Thursday, December 23rd 2010 @ 04:03:09 PM
Error Date : Thursday, December 23rd 2010 @ 04:03:20 PM
Script : http://forum.outkasts.net.au/admincp...&usergroupid=6
Referrer : http://forum.outkasts.net.au/admincp....php?do=modify
IP Address : 60.230.100.202
Username : Trippy
Classname : vB_Database
MySQL Version :

Trip3151 12-23-2010 03:16 AM

Ok Mysql error has gone away now I am getting

TeamSpeak Teamspeak Error 110: Connection timed out.

Take it password or port is wrong

Neo_obs 12-23-2010 03:50 AM

The MySQL error was something with your server, however the Connection timed out error most likely points to wrong settings, double check the settings in vbulletin->options->Neoobs-Teamspeak

sgbmad 12-23-2010 02:54 PM

Installed but in group Settings changes not saved.

When I have selected Default Teamspeak Server Group Serveradmin, normal or guest allways appears like Serveradmin. :eek:

Neo_obs 12-23-2010 05:37 PM

Quote:

Originally Posted by sgbmad (Post 2138119)
Installed but in group Settings changes not saved.

When I have selected Default Teamspeak Server Group Serveradmin, normal or guest allways appears like Serveradmin. :eek:

Will be fixed in next release which should be out very soon (couple days max)

Hendrik83 12-23-2010 07:02 PM

Installed and working.

Only when someone switches usergroups(vb) it is not updated.
The user is added to the new servergroup(ts3) and not removed from the older servergroup so he is added to two groups on teamspeak.

I got paid subscriptions so there is some switching between usergroups on VB.

Thanks

Neo_obs 12-23-2010 07:13 PM

I will add that to the list of things that need to be fixed. As of right now it only updates when you edit a user (and that is a lot of work) I will try and find a way to sync when people are moved from one usergroup to another.

Neo_obs 12-23-2010 07:37 PM

A new version is up, 0.8 adds channel group support and multiple server group support.

Also because of the way things are set up, you will need to set up server groups again. Sorry just couldn't make it work right.

Hendrik83 12-24-2010 09:46 AM

Thanks for the update.

Hope you find a way to do it.

Neo_obs 12-24-2010 09:56 AM

Quote:

Originally Posted by Hendrik83 (Post 2138549)
Thanks for the update.

Hope you find a way to do it.

Did this latest update fix the problems?

Trek 12-25-2010 06:33 AM

Wow, it really is Christmas! =)

So I just installed this on 4.06 (edited the XML version so I could) and I understand you say it may work, etc. But wanted to give you an error report incase it's something else.

When editing a usergroup, I get the following error once per channel or server group, not sure.

Warning: in_array() expects parameter 2 to be array, boolean given in [path]/admincp/usergroup.php(201) : eval()'d code on line 15

I have a few hundred users of my TS server with anywhere from about 25-50 on most of the time. This is pretty much something I started to write myself at one point and then didn't have the time. (I even had the profile field already there and configed the same. heh).

Anyway, if you don't wanna support 4.06 that's cool, just trying to help out where I can. =) Please let me know why you think it might not work on 4.06 so I can either try to work around it or see if I want to attempt an upgrade (my site is pretty custom so... things tend to break a lot with upgrading).

Questions, Etc.

I'd like all members within a specific usergroup to be able to generate tokens (which is looks like you have) that allow specific things. However, I'd also like to somehow validate that they are the ones using those tokens if possible. Not sure how to do this, but... I just want members to be able to be as self reliant as possible.

Along those lines, set (per usergroup) how many times within X time they can generate a token. I'd like them to be able to do it once every 30 days for example. Otherwise they need to talk to an admin to see what the problem is.

As you already mentioned, trapping when someone's usergroup is changes would be very nice.

The viewer doesn't display custom icons for server groups. Not sure if these can be downloaded from the server or if they'd need to be uploaded to the web server manually, but either way would be good.

An icon displayed in the postbit as to the users current TS status would be nice, a mouse over tooltip of what channel they are in and how long they've been connected/idle too.

I'm not sure how heavy that would be on the server, but for myself... I'd like to try it anyway and see.

I'll come up with more ideas later, I guess I really just need to get it working first though. heh

Neo_obs 12-25-2010 07:07 AM

Shoot me a PM so we can get it working as soon as possible. I will also add your suggestions to the list. About support, I don't support it because I don't have a forum running it to check for errors. However I am more than willing to try if someone wants to let me.

Trek 12-25-2010 07:26 AM

PM Sent, I have no problems at all providing you with whatever you need to make it work. =)

Hendrik83 12-25-2010 10:53 AM

Quote:

Originally Posted by Neo_obs (Post 2138550)
Did this latest update fix the problems?

The update does not safe the default servergroup within usergroups on VB 4.1.0.

I reinstalled and it is not working only the older version 0.7 works.

Neo_obs 12-25-2010 11:33 PM

Quote:

Originally Posted by Hendrik83 (Post 2138873)
The update does not safe the default servergroup within usergroups on VB 4.1.0.

I reinstalled and it is not working only the older version 0.7 works.

Do you mind PM'ing me your forum addy and an admin username and password, I kinda want to see why it isn't saving because it saves in all 3 forums I have (2 test and 1 production)

Trek 12-26-2010 04:24 AM

Just a quick note, good support from the developer on this, fixed things up for me quickly. Excellent mod and I can't wait to see how it grows!

Hendrik83 12-26-2010 12:39 PM

Send the PM.

Just to be sure i removed 0.7 and installed the 0.8 version.
But still it does not safe the servergroup.

Edit: Thanks to Neo_obs for fixing my problem!

Neo_obs 12-28-2010 07:30 AM

A new version was supposed to be out Monday night, sadly personal issues came up. But I should have it done by Wednesday.

This will be the last beta and will include quite a bit more than the previous 0.8 version including:
* Custom number of tokens instead of just 3
* Move away from profile fields and into custom fields for Unique ID
* Lookup users by Unique ID(s)
* Multiple Unique IDs
* Support for Secondary Usergroups
* List and Remove active tokens

I just want to thank Trek for letting me test things on his forum along with his wonderful insight on new features and generous donations (which helped a lot since my credit card was stolen and that was all I had)
Also a thank you to Hendrik83 who found a bug in 0.8

Trek 12-28-2010 08:06 PM

No problem Neo_obs, glad to help! .9 should be a large improvement, can't wait!

nhdriver4 12-29-2010 12:30 AM

Awaiting screen shots before I move from my custom hack job of a TS3 integration.

Neo_obs 12-29-2010 06:37 AM

Screen shots will come as soon as 0.9 is out

Neo_obs 12-31-2010 07:42 AM

I just released 0.9, I am asking everyone to remove 0.8 and 0.7 before uploading 0.9 as some changes have been overwritten. Also you no longer have to create a profile field. If you have an issues please reply here and let me know so I can fix them ASAP.

EDIT: Also added screen shots per user request, a full group of screens are in the zip

Hendrik83 12-31-2010 08:29 AM

I am going to try it.

Thanks.

TheShanka 01-02-2011 05:58 AM

Very interested in this mod; does it change usergroup on TS3 when you change it on the site?

Neo_obs 01-02-2011 10:54 PM

Quote:

Originally Posted by TheShanka (Post 2142639)
Very interested in this mod; does it change usergroup on TS3 when you change it on the site?

It updates the users TS3 Group when they update their Unique ID.

This mod needs the users to enter their Unique ID in order to work, the Unique ID is the only way to make sure the person is who they say they are as you can not fake a Unique ID (normally) in the TS3 Client

ysam 01-15-2011 08:04 PM

Excellent Mod. Mostly needed!!!

Problem follows :(

When pressing the generate key that's what's happening..

Code:

vBulletin Message
Teamspeak Error 1539: parameter not found.

Server logs Protocol mismatch. Running TS3 3.0.0-beta30 (latest).

Code:

2011-01-15 22:00:55.586749|INFO    |VirtualServer |  1| query client connected 'serveradmin from 127.0.0.1:44711'(id:1)
2011-01-15 22:00:55.683269|ERROR  |ParamParser  |  | Protocol mismatch, old client or old server?
2011-01-15 22:00:55.742334|INFO    |VirtualServer |  1| query client disconnected 'vbulletin'(id:1) reason 'reasonmsg=disconnecting'

Maybe they changed something..

Keep up the good work!

Thanx a mil.

Hendrik83 01-15-2011 08:16 PM

Tested.

I have the same error on generate token.

Neo_obs 01-15-2011 08:31 PM

Quote:

Originally Posted by Hendrik83 (Post 2149668)
Tested.

I have the same error on generate token.

If both of you could add your webservers IP to your white list that should solve the problem. If not let me know and I can troubleshoot further.

ysam 01-15-2011 08:40 PM

I am using 127.0.0.1 which is by default in the whitelist and I have also double checked that.
I have also put the Internet IPs too with no luck. Same problem.

Code:

2011-01-15 22:36:50.867816|INFO    |CIDRManager  |  | updated query_ip_whitelist ips: 127.0.0.1, 62.1.xx.xx, 62.1.xx.xx, 10.67.1.4,
2011-01-15 22:38:15.834231|INFO    |VirtualServer |  1| query client connected 'serveradmin from 127.0.0.1:44737'(id:1)
2011-01-15 22:38:15.922421|ERROR  |ParamParser  |  | Protocol mismatch, old client or old server?
2011-01-15 22:38:15.982523|INFO    |VirtualServer |  1| query client disconnected 'vbulletin'(id:1) reason 'reasonmsg=disconnecting'


Hendrik83 01-15-2011 08:45 PM

It is already white listed for my ts viewer.

Neo_obs 01-15-2011 11:59 PM

A protocol mismatch can be caused by quite a few things, but the usual problem is that the server and client are two different versions. As of right now this only works with 3.0.0-beta30 [Build: 12998]

If both of you have that can you private message me with an admincp login I will see if there is a different problem.

Hendrik83 01-16-2011 12:06 AM

You still have mine?

Neo_obs 01-16-2011 12:19 AM

Quote:

Originally Posted by Hendrik83 (Post 2149763)
You still have mine?

I don't believe I ever got a login... and I usually delete the PM shortly after helping so that it isn't saved anywhere for people to use

ysam 01-17-2011 10:17 PM

Thanx Neo_obs. It's working now..

Next steps..

1. ts3icon.php is missing so custom server icons show up as broken pics. Flags do show tho.
2. I suggest you put a new variable for autoconnect to server and not the one you have for server query. I have it 127.0.0.1 so autoconnect doesn't work. Work arround is to put real server address but it's not good security wise. (query)

Other than that it's very good!


All times are GMT. The time now is 05:24 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.01433 seconds
  • Memory Usage 1,845KB
  • 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
  • (9)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