View Single Post
";
}
}
//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