vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Show who is online in Teamspeak on forumhome (https://vborg.vbsupport.ru/showthread.php?t=67969)

jluerken 08-02-2004 10:00 PM

Show who is online in Teamspeak on forumhome
 
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 :D



in forumroot/index.php find:
PHP Code:

require_once('./includes/functions_bigthree.php'); 

Right under it add:
PHP Code:

// get teamspeak data
   
$myts2footer file_get_contents("./whoisints.php"); 


Edit Template FORUMHOME
Find:
PHP Code:

<if condition="$show['birthdays']"

and add the following text above it:

PHP Code:

<!-- teamspeak users -->
<
tbody>
    <
tr>
        <
td class="thead" colspan="2">
            <
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('forumhome_teamspeak')"><img id="collapseimg_forumhome_teamspeak" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_teamspeak].gif" alt="" border="0" /></a>
            
Who's online in Teamspeak
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_teamspeak" style="$vbcollapse[collapseobj_forumhome_teamspeak]">
    <tr>
        <td class="alt2"><img src="$stylevar[imgdir_misc]/ts2icon.jpg" alt="TS2" border="0" /></td>
        <td class="alt1"><div class="smallfont">$myts2footer</div></td>
    </tr>
</tbody>
<!-- end teamspeak users --> 

Extract ts2forumhomehack.zip
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 :D



See the screen to take get a better impression!

???`S?LV?R???` 08-03-2004 09:45 PM

awesome, sounds good :)

Holidazed 08-03-2004 09:55 PM

What is a teamspeak server?

BoNfiRe 08-03-2004 10:29 PM

it's a voice comms system similar to roger wilco, ventrillo ect ect ect you can find it here

Reeve of shinra 08-03-2004 11:09 PM

cool hack. maybe this will get people into the teamspeak.

Phalynx 08-04-2004 06:43 AM

Cool Thing! I created a similar hack with the difference that the data is beeing read in realtime from the Server.

http://www.insideearth.de/forum.php?guestlanguageid=5

danbc 08-04-2004 07:39 AM

So if you haven?t got access to regular cron, you can?t get this to work? :(

jluerken 08-04-2004 03:16 PM

Quote:

Originally Posted by Phalynx
Cool Thing! I created a similar hack with the difference that the data is beeing read in realtime from the Server.

http://www.insideearth.de/forum.php?guestlanguageid=5

Would be nice if you post this here.
This can help all users which cannot run own cron jobs.

Mith 08-04-2004 04:07 PM

Quote:

Originally Posted by jluerken

Enhancements: If anyone knows how to start this via vBCron please tell me

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

Hi,

I would find this very useful for my site, I unfortunately don't know how to run a cron job, but was wondering if anyone knew how to make this run via the vb scheduler.

Many thanks,

Mith

MrNase 08-04-2004 05:00 PM

As far as I know, the vBulletin Cron script can only run *.php scripts :)


All times are GMT. The time now is 07:55 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.01128 seconds
  • Memory Usage 1,747KB
  • 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_php_printable
  • (2)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
  • (10)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