PDA

View Full Version : Release: TeamSpeak 2 Banner Dispatcher


Cyrus
05-01-2007, 14:18
We are proud to announce a new nifty tool for your TeamSpeak 2 servers written in entire PHP 5. The tool is called TeamSpeak 2 Banner Dispatcher and allows you to define multiple banners and multiple banner link targets for TeamSpeak 2 servers running in the same instance.

The dispatcher uses XML-files as data storage and provides a well-documented easy to use PHP 5 API for associating servers and banners. Of course you can also use any other programming language that supports DOM-XML manipulation for manipulating the association tables.

The package contains the dispatcher class, example files and a README and is licensed under GNU General Public License.

Download TeamSpeak 2 Banner Dispatcher 0.3 (http://www.planetteamspeak.com/component/option,com_docman/task,doc_details/Itemid,69/gid,64/)

Edit:
Claw made a useful video tutorial that explains basic usage of this tool to newbies. Unfortunately he used a proprietary codec called "Camtasia" so hopefully you non-windows guys do understand my readme ;-)
Videotutorial: http://download.myvu.de/bannerdispatcher.rar

ScreaM_GER
05-01-2007, 14:54
Really a nice release!
Many hoster often asked whether it is somehow possible to have different banners on virtual servers.
Everytime we could only say "sorry, that is not possible". But now we can say "Yes, it is possible" :D

Maybe ATHP can offer a "privat banner" as extra special or something else.

Cyrus
07-01-2007, 16:56
Version 0.3 has been released and adds database support using PDO. This has been tested with SQLite 3, but should work with others like MySQL too.

Debone Tallywacker
10-02-2007, 08:36
im not really good at programming anything, i need a little help setting the Banner Dispatcher up on my system ive downloaded the Banner Dispatcher. but got no clue where to begin or end... i got my own TS server and webserver. im so i have access

Please help

Cyrus
10-02-2007, 10:21
please refer to the README and the examples provided

Debone Tallywacker
11-02-2007, 00:52
well thats the problem, im a newb at programming. so i dont understand the readme

i got no clue where to place the files or what to write in the XML file
if thats even something i have to do...

please help, if i could get an example of what had to be done. i might have a better understanding of what to do

the Readme seems to me like its really only for people who knows the programming language

ShadyPieZ
17-02-2007, 16:22
well thats the problem, im a newb at programming. so i dont understand the readme

i got no clue where to place the files or what to write in the XML file
if thats even something i have to do...

please help, if i could get an example of what had to be done. i might have a better understanding of what to do

the Readme seems to me like its really only for people who knows the programming language
I'm having the same problem as this guy, if someone could supply me with an example i'm sure i'll be able to understand alot more. :)

Cyrus
17-02-2007, 18:17
default-configurator.php and default-dispatcher.php are kind of example files. They already consist most of the parts the README describe. You just have to alter the values a bit.

and if you are a bit experienced you may have a look at the:
default-pdo files that use Databases instead of XML-files.

And please do not PM me.

Debone Tallywacker
19-02-2007, 16:54
i understand the *.php files somewhat, what i need an example of is the *.xml file

Cyrus
19-02-2007, 20:55
the xml-file get's created by the default-configurator.php just run it once

karimali831
19-02-2007, 22:55
I wish I understand this. :(
Looks like I can't have it. :(

astanford
22-02-2007, 21:47
if you need help shoot me a PM and i will install if for you.

ShadyPieZ
31-03-2007, 23:26
Has anyone managed to make a decent tutorial for this as I'd really like it on my server.

Or if anyone can help me via PM it would be much appreciated.

Claw
01-04-2007, 16:17
Has anyone managed to make a decent tutorial for this as I'd really like it on my server.

Or if anyone can help me via PM it would be much appreciated.

I've created an video tutorial - It should be very easy to setup your servers with the TeamSpeak Banner Dispatcher!

You can download it under the following link:
The File (http://download.myvu.de/bannerdispatcher.rar)
The Codec (If you just see a black screen) (http://www.techsmith.com/download/codecs.asp)

Have fun with it ;-)

Reedy Boy
01-04-2007, 20:25
I've created an viedeo tutorial - It should be very easy to setup your servers with the TeamSpeak Banner Dispatcher!

You can download it under the following link:
The File (http://download.myvu.de/bannerdispatcher.rar)
The Codec (If you just see a black screen) (http://www.techsmith.com/download/codecs.asp)

Have fun with it ;-)

Nice one

Should help people out loads

May be worth posting the files with the extra comments in? ;)

Cyrus
02-04-2007, 10:08
nice work, thanks for this claw, now also beginners should understand the thing ;)

Debone Tallywacker
02-04-2007, 20:45
I've created an video tutorial - It should be very easy to setup your servers with the TeamSpeak Banner Dispatcher!

You can download it under the following link:
The File (http://download.myvu.de/bannerdispatcher.rar)
The Codec (If you just see a black screen) (http://www.techsmith.com/download/codecs.asp)

Have fun with it ;-)

Awsome job Claw... tells me excactly what i need to know.

Thumbs up for a great video :p

randal
13-04-2007, 13:14
Hi,
I have six server on the same base. The banerdisplay is working, but the baner is on all server. How to do diffrent banners on all server?

Debone Tallywacker
14-04-2007, 08:59
Hi,
I have six server on the same base. The banerdisplay is working, but the baner is on all server. How to do diffrent banners on all server?

everything listet below can be found in default-configuration.php

This part is for the default banners. it gets shown on all servers unless you specify some specific routes...

/*
* Define some default routes.
*/
$router->addStaticRoute('banner', 'default', 'http://Example.com/someimage.jpg');
$router->addStaticRoute('target', 'default', 'http://http://www.Example.com/');

"default" Dont Change this one. its for the banner dispatcher. so it know what image and link to give to undefined servers


This is the Specific Routes. Here you Define what server should have what banner

/*
* Define some specific routes
*/
$router->addStaticRoute('banner', '1', 'http://Example.com/CoolLogo.jpg');
$router->addStaticRoute('target', '1', 'http://www.Example.com');
$router->addStaticRoute('banner', '2', 'http://Example.com/CoolLogo2.jpg');
$router->addStaticRoute('target', '2', 'http://www.AnotherExample.com');

You can add as many "$router->addStaticRoute" as you have servers. just remember each server should have a banner and a target for it to have an image and a link.

however i think it could work without a target so it would only show an image but im not sure...

"banner" Defines what the image should be for the server

"target" Defines what the target should be. aka. what Website it should open when clicking on the image

"1" Defines what server the banner and target is defined for

the server ID of all the servers can be found through the superadmin web interface

ID1 is 1
ID2 is 2
and so on.....

Hope this helps you

Martyr
25-07-2007, 19:22
Hi all

Sry this might be a silly question but assuming I've made an XML file using this resource, where do I place the XML file to do the job?

In a folder in my TS server installation??

Thanks
M.

Debone Tallywacker
26-07-2007, 00:15
if i remember correctly the XML file will automaticly be placed where it needs to be once you run the php script

ginger|HFD
26-07-2007, 06:17
Another fantastic work made by the third party tools people. Nice to see and nice to have!

Danke!

uMbRaNoX
27-07-2007, 13:41
hi there ppls

my problem is the next :
i know how to adjust the files but i cant get that xml file and i also dunno how to get it by running the default configuration.php
because i dont know how to run it i changed it and saved it but no xml file is created ?
im running ts on my home computer 24 hours 7 days a week and i dont have a webserver installed on it
i dunno where to start and in what maps i have to place what files i would love to have some help can u tell me how to do it ?
for example i have all the php files that come with the dispatcher download
- then i change the default configuration
-then the default dispatcher and add the links and banner for the other virtual server
- then i have to change something in the ini file of ts itself
- i restart ts and then it should work

that how i see it now and i have no clue over in what map i have to put the changed php files
- to what php file the ini file should refer to and where to change it in the ini file (prob on the place i filled in the banner that is showing everywhere now )
and how i get a xml file ?
i tried to open the default configuration.php in explorer but no xml file is showing ?
i would like to see that xml file somewhere :)

can u clear some things up for me , i know for some of u this sounds stupid mabey but i need to b taken by the hand and that someone starts with:
ok u open the dispatcher map, then u see the php files open the default configuration in dreamweaver ( my standard client for webthingy's) then change this and that ..
save it and then open ....

safe all ur files in this or that folder on the puter where u run the server
etc etc
step by step :(
if anyone would b so kind i would b so greatfull and mabey some others that have the same skills as me ( no skills lol)


thanks a million already !

uMbRaNoX
03-08-2007, 19:06
ok i downloaded a free app called wamp
it allows u to create a map on ur harddrive thats set as a server able to run php aswell
i did that and typed in my IE http://localhost/default-configuration.php
and the xml file was created so far so good
then i changed the ini file like on the movie and i changed the dispatcher witch
http://localhost:14242 superadmininlog passw. in the tcp line like on the movie
for the location i used http://localhost: (the portnumber that shows on my ts superadmin login screen)
my banners are not on the local server but on a www.something.com server
and i refered to them in the default configphp
the xml file looks like i was expecting but...
my banners still dont show up
i have 3 servers (virtual )
any idea's ?

sorry if this explaination isnt fully detailed i typed it at work

Cyrus
04-08-2007, 08:30
Did you activate access_u and access_r loglevels in the server.ini?

uMbRaNoX
04-08-2007, 13:24
i dont think i did how do i do that mate and thanks a LOT for ur quick reply by the way !!

ps : im at home now and can give u lil more detailed info :

first i downloaded this local server thats freeware and does the job great
http://www.e-novative.info/software/wamp.php
then i runned my default config.php while it was in the server map i created
by wamp with the command in explorer
http://localhost/default-configuration.php
that created the xml file
then i adjusted the server ini with the 2 lines as on the movie with :
http://localhost/default-dispacher.php
and still no banners show up ??


this is what i did and in the server ini i just added this line http://localhost/default-dispacher.php to both the ISPLinkURL=http://localhost/default-dispacher.php
and the GFX URL=http://localhost/default-dispacher.php

thats all i changed in the ini not what u mentioned i think can u help me out, do i need to change the acces u and acces r to 1 instead of 0 ?
regards eddy
i changed it to 1 and still no banners this is how my ini looks like now

[debug]
MessageTypes=LMTALL
MessageDepths=LMDALL
[Main Config]
ExternalIPDectection=1
HTTPServer Port=14534
HTTPServer Enabled=1
DateTimeFormat=dd-mm-yyyy hh:nn:ss
TCPQueryPort=51234
AllowedClientNameChars=
DisAllowedClientNameChars=()[]{}
BoundToIp1=
[WebPost]
AdminEmail=na
ISPLinkURL=http://localhost/default-dispatcher.php
ISPName=Private
ISPCountryNumber=4445
Enabled=1
PostURL=
ListPublic=0
UserAgent=teamspeak
[log]
access_r=1
access_u=1
channel_registerred=0
channel_unregisterred=0
sa=0
chat=0
kick_server=0
kick_channel=0
[Spam]
max_commands=10
in_seconds=2
[ISP]
GFX URL=http://localhost/default-dispatcher.php

hope u can help

Cyrus
05-08-2007, 09:16
You cannot use localhost as hostname because then the client would try to download the banner from his own pc which will not work.

uMbRaNoX
05-08-2007, 20:09
ok i understand that and in the default config all te banners are refering to a normal www server not on the local pc or do u mean that the dispatcher also not can run on a local server ?

BHKai
05-08-2007, 21:22
In other words, the information about the banner is sent to the client the client is the one that gets the banner.

So lets say the ip of your server is 12.123.123.45. You would put http://12.123.123.45/default-dispatcher.php because when the information about the banner is sent to the client the client will go to your server instead of trying to look on their computer.

uMbRaNoX
08-08-2007, 15:05
hello there :)

Cyrus i sended u all the files im using by pm will u pls b so kind to take a look at it, because in my opinion it shoeld work like this and i sended them to someone else aswell and he told me he wasnt using multiple servers but it does look good the way i did it.

i know u probably dont like ppl pm ing u about this but i have not much choise and if ur not willing or able to to check my files will u also b so kind to tell me that way someone else mabey wants to take a look at it .
but i dont feel so comfy to put them in the forum cuz i didnt change anything all my personal things are in there.

regards Eddy

Vashji
10-08-2007, 18:55
Hey guys i need a little help understanding something here.

* Specify a PDO
*/
$br = new BannerRouterPDO(new PDO('sqlite:default.sqlite'));

How can i change that to use mysql instead of sqlite

Claw
10-08-2007, 19:16
http://php.net/pdo

Vashji
11-08-2007, 04:17
still need help now after doing that i get this error
Catchable fatal error: Argument 1 passed to BannerRouterPDO::__construct() must be an instance of PDO, string given, called in C:\xampp\htdocs\bannerdispatcher\default-pdo-dispatcher.php on line 8 and defined in C:\xampp\htdocs\bannerdispatcher\BannerRouterPDO.p hp on line 59

Cyrus
11-08-2007, 12:45
Read the error message: you should pass a PDO object and you passed a string
so compare with the original code and you probably will find your mistake

Vashji
11-08-2007, 22:34
not really i'm not php savvy kinda hit a dead end here

Claw
11-08-2007, 23:15
$br = new BannerRouterPDO(new PDO('mysql:host=localhost;dbname=test', $user, $pass));

slayer1991
10-09-2007, 00:37
the video tutorial link is down...
i really need to know how to do this!!!!!!!!!
re up the vid? pease?

Claw
10-09-2007, 11:33
the video tutorial link is down...
i really need to know how to do this!!!!!!!!!
re up the vid? pease?

http://web5.hotel450.server4you.de/download.myvu.de/bannerdispatcher.rar