Ventrilo Tech Support  

Go Back   Ventrilo Tech Support > Main Category > Server

Reply
 
Thread Tools Display Modes
Old 10-09-2014, 03:59 PM   #1
zbyke
Junior Member
 
Join Date: Oct 2014
Posts: 2
Lightbulb Ventrilo server status work around

I wanted to post this for anyone looking to show their server's ventrilo status on their site, when you can't use the files provided by ventrilo due to how your host is set up.

Things you will need to do:
1.) Find a site that will output an xml of your ventrilo status (just use a search engine and search for ventrilo server xml)
2.) Create a file named "index.php"
3.) Add the code below to the file and save it
4.) Upload the file to your server, from there you can use the include function to call the ventrilo status file.



[php]
//START THE TABLE, YOU CAN CHANGE THE TABLE BACKGROUND COLOE HERE
echo "";
//SITE YOU FOUND OUTPUTTING THE XML OF YOUR VENTRILO SERVER
$xml = simplexml_load_file('http://LINK-CONTAINING-YOUR-VENTRILO-XML'); // for files



//EACH CHANNEL COLOR IS WHITE (#ffffff), YOU CAN CHANGE TO WHAT SUITS YOU
//EACH USER NAME IS GREEN (#009e1a), YOU CAN CHANGE TO WHAT SUITS YOU
//EACH "(ADMIN)" is RED (#ff0000),YOU CAN CHANGE TO WHAT SUITS YOU

foreach($xml->channel as $lobby) {
echo "";
}

//ALL CHANNELS UNDER LOBBY
foreach($xml->channel->channel as $channel) {
if($channel->attributes()->prot == "0"){
echo "";
}else{
echo "";
}

if($channel->client){
for ( $i = 0; $i < count($channel->client); $i++ ){
$client = $channel->client[ $i ];

if ( $client->attributes()->cid != $client->attributes()->cid )

continue;
echo "";
}
}

//LOBBY=>CHANNEL=>SUB CHANNEL
foreach($channel->channel as $subchannel) {
if($subchannel->attributes()->prot == "0"){
echo "";
}else{
echo "";
}

if($subchannel->client){
for ( $i = 0; $i < count($subchannel->client); $i++ ){
$client = $subchannel->client[ $i ];

if ( $client->attributes()->cid != $client->attributes()->cid )

continue;
echo "";
}
}

//LOBBY=>CHANNEL=>SUB CHANNEL=>SUB CHANNEL
foreach($subchannel->channel as $subchannel2) {
if($subchannel2->attributes()->prot == "0"){
echo "";
}else{
echo "";
}

if($subchannel2->client){
for ( $i = 0; $i < count($subchannel2->client); $i++ ){
$client = $subchannel2->client[ $i ];

if ( $client->attributes()->cid != $client->attributes()->cid )

continue;
echo "";
}
}

//LOBBY=>CHANNEL=>SUB CHANNEL=>SUB CHANNEL=>SUB CHANNEL
foreach($subchannel2->channel as $subchannel3) {
if($subchannel3->attributes()->prot == "0"){
echo "";
}else{
echo "";
}

if($subchannel3->client){
for ( $i = 0; $i < count($subchannel3->client); $i++ ){
$client = $subchannel3->client[ $i ];

if ( $client->attributes()->cid != $client->attributes()->cid )

continue;
echo "";
}
}
}


}
}
}
echo "
";
echo "";
echo "";
echo $lobby->attributes()->name;
echo "
";
echo "
  ";
echo "";
echo "";
echo $channel->attributes()->name;
echo "
";
echo "
  ";
echo "";
echo "";
echo $channel->attributes()->name;
echo "
";
echo "
  ";
echo "";
if($client->attributes()->admin == "1"){

echo $client->attributes()->name;
echo " (Admin)";
}else{
echo $client->attributes()->name;
}

echo "
    ";
echo "";
echo "";
echo $subchannel->attributes()->name;
echo "
";
echo "
    ";
echo "";
echo "";
echo $subchannel->attributes()->name;
echo "
";
echo "
    ";
echo "";
if($client->attributes()->admin == "1"){

echo $client->attributes()->name;
echo " (Admin)";
}else{
echo $client->attributes()->name;
}

echo "
      ";
echo "";
echo "";
echo $subchannel2->attributes()->name;
echo "
";
echo "
      ";
echo "";
echo "";
echo $subchannel2->attributes()->name;
echo "
";
echo "
      ";
echo "";
if($client->attributes()->admin == "1"){

echo $client->attributes()->name;
echo " (Admin)";
}else{
echo $client->attributes()->name;
}

echo "
        ";
echo "";
echo "";
echo $subchannel3->attributes()->name;
echo "
";
echo "
        ";
echo "";
echo "";
echo $subchannel3->attributes()->name;
echo "
";
echo "
        ";
echo "";
if($client->attributes()->admin == "1"){

echo $client->attributes()->name;
echo " (Admin)";
}else{
echo $client->attributes()->name;
}

echo "
";
?>
[/php]


This will output The lobby and all channels under your lobby and upto 3 sub channels.

Example:
  • Lobby
    • channel
      • sub channel
      • sub channel
        • sub channel
        • sub channel
          • sub channel
        • sub channel
    • another channel
      • sub channel
      • sub channel
        • sub channel
        • sub channel
          • sub channel
    • channel




etc.

Last edited by zbyke; 10-12-2014 at 01:49 PM. Reason: editing messed up php code, updated it
zbyke is offline   Reply With Quote
";
}
}
//ADD MORE CODE HERE
}


}
}
}
echo "
Old 10-12-2014, 01:54 PM   #2
zbyke
Junior Member
 
Join Date: Oct 2014
Posts: 2
Default

I updated the code, realized I posted the wrong file. If you have more sub channels, then I would suggest cleaning up your ventrilo server...

but you can add more sub channels here
[php]
echo "
";
?>
[/php]

where you would change the sub channel number like so
[php]

//LOBBY=>CHANNEL=>SUB CHANNEL=>SUB CHANNEL
=>SUB CHANNEL=>SUB CHANNEL
foreach($subchannel3->channel as $subchannel4) {
if($subchannel4->attributes()->prot == "0"){
echo "        ";
echo "";
echo "";
echo $subchannel4->attributes()->name;
echo "
";
echo "";
}else{
echo "        ";
echo "";
echo "";
echo $subchannel4->attributes()->name;
echo "
";
echo "";
}

if($subchannel4->client){
for ( $i = 0; $i < count($subchannel4->client); $i++ ){
$client = $subchannel4->client[ $i ];

if ( $client->attributes()->cid != $client->attributes()->cid )

continue;
echo "        ";
echo "";
if($client->attributes()->admin == "1"){

echo $client->attributes()->name;
echo " (Admin)";
}else{
echo $client->attributes()->name;
}

echo "";
}
}
//AND ADD MORE SUB CHANNELS HERE
}
[/php]
zbyke is offline   Reply With Quote
Old 09-02-2017, 10:33 AM   #3
HarpyWar
Junior Member
 
Join Date: Feb 2011
Location: Russia
Posts: 12
Default

Where is a download link of the status tool for Ventrilo 4?
HarpyWar is offline   Reply With Quote
Old 09-02-2017, 01:05 PM   #4
Prog-Rocker
just tryin to help
 
Join Date: Jul 2006
Location: Local Space/Time Continuum
Posts: 23,460
Default

I will try to find out and let you know
Prog-Rocker is offline   Reply With Quote
Old 12-06-2017, 07:57 AM   #5
ethardsdaisy92
Junior Member
 
Join Date: Dec 2017
Posts: 1
Default Can I install ventrilo on the phone?

Hello everyone. I have a question. Do you have a ventrilo version for android? Thanks very much.
ethardsdaisy92 is offline   Reply With Quote
Old 01-28-2018, 04:39 PM   #6
Bookertaire
Junior Member
 
Join Date: Jan 2018
Posts: 2
Default Ventrilo server status work around

anyone know a working script maker for ventrilo i have googled it and each one i find does not seem to work on my website
Bookertaire is offline   Reply With Quote
Old 04-30-2018, 11:25 AM   #7
HarpyWar
Junior Member
 
Join Date: Feb 2011
Location: Russia
Posts: 12
Default

Bookertaier, you can use this one [url]http://bit.ly/ventrilostatus[/url]
HarpyWar is offline   Reply With Quote
Old 04-28-2019, 04:23 PM   #8
HarpyWar
Junior Member
 
Join Date: Feb 2011
Location: Russia
Posts: 12
Default

Quote:
Originally Posted by Prog-Rocker View Post
I will try to find out and let you know
Did you find it after 2 years of searching?
HarpyWar is offline   Reply With Quote
Old 06-20-2019, 07:48 AM   #9
AlexBerg
Junior Member
 
Join Date: Jun 2019
Posts: 1
Default

Helpful thread I have google it and each one I find does not seem to work on my website.
AlexBerg is offline   Reply With Quote
Old 12-04-2019, 11:01 PM   #10
jbuenavides
Junior Member
 
Join Date: Dec 2019
Posts: 2
Default

Is this forum still active?
Where is the administrator?
A lot of new members here including I need some help with my Ventrilo account.
jbuenavides is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -5. The time now is 01:23 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2023, vBulletin Solutions, Inc.