Clan Adverts

Adding A Ventrilo Connect Button To Your Site

Description: This is very simple code to add a Ventrilo connect button to your site. It will allow users to easily connect to your Ventrilo server from the web site.
Version: 1.0
Added on: 24 June 2008
Author: Floppy
Difficulty Level: Very Easy
Views: 2612
Rating: 10.0 (1 Vote)
Detailed ProfileView Comments (1)

It is rather simple mechanics. The following code can be inserted nearly anywhere.

Code:
$host = '0.0.0.0'; //You can use an ip or actual host name
$port = '0000'; //Farily simple should explain itself
$servername = 'myservername'; //Just modify this so it matches your desired server name

//For a block
$content = '<a href="ventrilo://'.$host.':'.$port.'/servername='.$servername.'">Join Server</a>';

//For a module
echo '<a href="ventrilo://'.$host.':'.$port.'/servername='.$servername.'">Join Server</a>';


Basically what happens here is, your calling for the OS to load Ventrilo and connect with the following information.