View Single Post
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 Code:
echo "</td></tr>";
}
}
//ADD MORE CODE HERE
}


}
}
}
echo 
"</table>";
?> 
where you would change the sub channel number like so
PHP Code:

//LOBBY=>CHANNEL=>SUB CHANNEL=>SUB CHANNEL
=>SUB CHANNEL=>SUB CHANNEL
foreach($subchannel3->channel as $subchannel4) {
if(
$subchannel4->attributes()->prot == "0"){
echo 
"<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
echo 
"<img src='http://view.light-speed.com//images/s_vent2/channel_0_empty.gif' />";
echo 
"<font color=\"#ffffff\">";
echo 
$subchannel4->attributes()->name;
echo 
"</font>";
echo 
"</td></tr>";    
                                        }else{
echo     
"<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";                                               
echo 
"<img src='http://view.light-speed.com//images/s_vent2/channel_1_empty.gif' />";
echo 
"<font color=\"#ffffff\">";
echo 
$subchannel4->attributes()->name;
echo 
"</font>";
echo 
"</td></tr>";                                          
  }

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

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

            continue;
echo 
"<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
echo 
"<img src='http://view.light-speed.com//images/s_vent2/player.gif' /><font color=\"#009e1a\">";
if(
$client->attributes()->admin == "1"){ 

     echo 
$client->attributes()->name
     echo 
"&nbsp;<font color=\"#ff0000\">(Admin)</font>";
     }else{
     echo 
$client->attributes()->name;
     }

echo 
"</td></tr>";
}
}
//AND ADD MORE SUB CHANNELS HERE

zbyke is offline   Reply With Quote