The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Show who is online in Teamspeak on forumhome Details »» | |||||||||||||||||||||||||||
Show who is online in Teamspeak on forumhome
Developer Last Online: Dec 2018
Hi,
this is my first little hack and I hope one of you has a little bit time to improve it. This hack will check who is online on a Teamspeak server and generate a list of nicknames in a file. This file will then be display in the statistics area of forumhome. Hack can be installed in 5 minutes! Difficulty: very easy Screenshot attached Enhancements: If anyone knows how to start this via vBCron please tell me in forumroot/index.php find: PHP Code:
PHP Code:
Edit Template FORUMHOME Find: PHP Code:
PHP Code:
Upload ts2php (compiled c++ file) to /forumhome/ Upload ts2icon.jpg to /forumhome/images/misc/ Use a cronjob to start ts2php every 2 minutes (should be done via vBCron if possible but I don't know how!) with the following command: ./ts2php TEAMSPEAKIP whoisints.php This will check the Teamspeakserver for users and creates a file whoisints.php with the names in it. If you run a teamspeak server with a different port run ./ts2php TEAMSPEAKIP -p<port> whoisints.php Don't forget to chmod 755 ts2php See the screen to take get a better impression! Show Your Support
|
Comments |
#12
|
|||
|
|||
ok, I really want to add this and have been hacking vb's since the 2.1.x days. I've got everything working fine, but it wont update the list (so not really working fine) the ts ip we have is 67.18.180.106:1237 how would i enter that into the cronjob (i'm using crontab on control panel)
anyone able to help me out on what the cronjob line should look like for that ip? thanks |
#13
|
|||
|
|||
Quote:
PC Gaming Site http://WOLFGaming.net |
#14
|
||||
|
||||
Quote:
0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3 6,38,40,42,44,46,48,50,52,54,56,58 * * * * /home/www/web1/html/forum/includes/cron/ts2php 217.160.173.218 /home/www/web1/html/forum/whoisints.php >/dev/null 2>&1 This is starting the update every 2 minutes Don't forget to add a -p<port> in your case. |
#15
|
|||
|
|||
ok thanks, n00b type question here, but i add the 1237 in inplace of the word port right?
so like -p<1237> |
#16
|
||||
|
||||
Quote:
ts2php IPADDRESS -p1234 FILE or ts2php IPADDRESS -p:1234 FILE Did not remember how I add that |
#17
|
|||
|
|||
Thanks, im still having problems getting it to work, it doesnt seem to be creating the whoisints.php file at all, or updating it when i manually create a blank php file and name it whoisints.php
It's very late here too, so I've totally given up for tonight, but I dunno what else I can do to try and get it working, which is a crying shame cos the hack itself looks sound, and would have been really useful to have got working. I'll openly admit tho, I only got the control panel stuff added a couple of months back and this is my first experience with cronjobs outside of vb, so this may be the problem for me. |
#18
|
||||
|
||||
Does this work for 3.01 by chance? Also, does the TS server need to be the same server as the forum server or could it be different?
This sounds very cool. Thanks a lot! |
#19
|
|||
|
|||
works like a charm on 3.0.1, check my forums if you want to see it in action, i have it set to update every 2 minutes now.
thanks for the help with the cronjob too jluerken, I've been waiting for something like this for my clan for months, such a breeze to install, took me a while to get the cron down, you need the port as IP -p:addnumberhere file Once again, thanks for a great hack. |
#20
|
|||
|
|||
Quote:
This run's every two minutes too. |
#21
|
|||
|
|||
Instead of cronning it, run the command whenever index.php is loaded? Surely enough people visit your board to compensate for no-cron job.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|