Teamspeak

Hier findest Du einige Modifikationen und erweiterte Mods und Serverviewer rund um Teamspeak 2 & 3.

Teamspeak 3: Serverviewer für die Homepage

Hier ein abgeändertes Modul für die Homepage. Es zeigt den aktuell gewählten Server an. In der config.php die Serverdaten eintragen und Script in die Homepage einbinden. Besonderheit des Viewers ist, das die vom Serveradmin Icons für Benutzer und Channels angezeigt werden können. Einfach unten in der config.php die entsprechenden Arrays ausfüllen:

config.php

Code eingefügt. Hier klicken zum Ein- / Ausblenden
<?php

// Place of the CSS File
$ts3['config']['css'] = 'style.css';

// Imagefolder
$ts3['config']['img_dir'] = 'images';

// Cachefolder (folder + files must have CHMOD 777)
$ts3['config']['cache_dir'] = 'cache';

// Server IP (without Port)
$ts3['config']['ip'] = '84.xxx.xxx.xx';

// Server Port (default: 9987)
$ts3['config']['port'] = '9987';

// Query Port (default: 10011)
$ts3['config']['qport'] = '10011';

// Use caching for the TS Viewer (Value in seconds, 0 = off)
$ts3['config']['cache'] = '20';

// Value for auto-refresh (Value in seconds)
$ts3['config']['refresh'] = '30';

// Possibility to cut channel's name (0 = off)
$ts3['config']['chancut'] = '35';

// Possibility to cut players's name (0 = off)
$ts3['config']['nickcut'] = '25';

// Shows groupinfo (0 = off, 1 = on)
$ts3['config']['showgroups'] = '1';

// Show information box - global switch (0 = off, 1 = on)
$ts3['config']['stats'] = '1';

// Show current players / max. players / reserved slots (0 = off, 1 = on)
$ts3['config']['serverinfo']['virtualserver_clientsonline']['show'] = '1'; 
$ts3['config']['serverinfo']['virtualserver_clientsonline']['label'] = 'Players';

// Show the IP:Port from the server (0 = off, 1 = on)
$ts3['config']['serverinfo']['virtualserver_ip']['show'] = '1'; 
$ts3['config']['serverinfo']['virtualserver_ip']['label'] = 'Host';

// Show the server uptime since the last restart (0 = off, 1 = on)
$ts3['config']['serverinfo']['virtualserver_uptime']['show'] = '1'; 
$ts3['config']['serverinfo']['virtualserver_uptime']['label'] = 'Uptime';

// Show the server traffic (0 = off, 1 = on)
$ts3['config']['serverinfo']['connection_bytes_total']['show'] = '1'; 
$ts3['config']['serverinfo']['connection_bytes_total']['label'] = 'Traffic (in / out)';

// Show on wich OS TS3 run (0 = off, 1 = on)
$ts3['config']['serverinfo']['virtualserver_platform']['show'] = '1'; 
$ts3['config']['serverinfo']['virtualserver_platform']['label'] = 'Server OS';

// Show the TS3 server version (0 = off, 1 = on)
$ts3['config']['serverinfo']['virtualserver_version']['show'] = '1'; 
$ts3['config']['serverinfo']['virtualserver_version']['label'] = 'Version';

// Server Icon
$ts3['config']['serverimg'] = 'grenade.png';

// Server Groups - Just feed this array with the existing groups / icons / names, to display all in the viewer
$ts3['config']['sgroup'][9]['n'] = 'Server Admin';
$ts3['config']['sgroup'][9]['p'] = '19_genarm.png';

$ts3['config']['sgroup'][6]['n'] = 'Co Admin';
$ts3['config']['sgroup'][6]['p'] = '17_ltgen.png';

$ts3['config']['sgroup'][12]['n'] = 'V.I.P.';
$ts3['config']['sgroup'][12]['p'] = '14_col.png';

$ts3['config']['sgroup'][7]['n'] = 'Member';
$ts3['config']['sgroup'][7]['p'] = '12_maj.png';

$ts3['config']['sgroup'][13]['n'] = 'Trial Member';
$ts3['config']['sgroup'][13]['p'] = '03_crp.png';

$ts3['config']['sgroup'][8]['n'] = 'Guest';
$ts3['config']['sgroup'][8]['p'] = '01_pfc.png';

// Channel Groups - Just feed this array with the existing groups / icons / names, to display all in the viewer
$ts3['config']['cgroup'][5]['n'] = 'Channel Admin';
$ts3['config']['cgroup'][5]['p'] = '11_cpt.png';

$ts3['config']['cgroup'][6]['n'] = 'Operator';
$ts3['config']['cgroup'][6]['p'] = '09_2lt.png';

$ts3['config']['cgroup'][7]['n'] = 'Voice';
$ts3['config']['cgroup'][7]['p'] = '02_lcrp.png';

// Channel Icons - Just feed this array with the existing ID's / icons, to display all in the viewer
$ts3['config']['icons'][2] = 'flag_de.png';
$ts3['config']['icons'][25] = 'rom.png';
$ts3['config']['icons'][26] = 'db.png';
$ts3['config']['icons'][21] = 'headset.png';
$ts3['config']['icons'][82] = 'wow.png';

?>

Zurück