i need code to add rooms just for admins/moders, for this chat http://ultimate.madpage.com here is the script
Admin/moder Room's
Started on the old forum in September 2007 · view the original in the archive · old links redirect here
Guest
#1
Attachments:
script.rar
Regz
#2
Add this codin to ua online.php nd enter.php :-
$q = @mysql_query("select `var`,`val1` from `".$px.$stable."` where `mod`='room' order by val3;");
while($droom = @mysql_fetch_array($q)) {
$q_online = @mysql_query("SELECT * FROM `".$px.$utable."` WHERE ltime>'".intval(time()-$offline)."' AND room='".$droom['var']."' order by ltime desc;");
$q_count = @mysql_query("SELECT count(*) FROM `".$px.$utable."` WHERE `ltime`>'".intval(time()-$offline)."' AND `room`='".$droom['var']."';");
$sex=mysql_fetch_array(mysql_query("SELECT sex, byear FROM chat_users WHERE id=$id"));
$age=0;
$age=2006-$sex[1];
if ($age>60) $age=0;
$dcount = @mysql_fetch_array($q_count);
if($droom['var']<>"room#" && $droom['var']<>"room#" && $droom['var']<>"room#") print '[url="room.php?id='.$id.'&pass='.$pass.'&room='.$droom['var'].'"]'.$droom['val1'].'('.$dcount['count(*)'].')[/url]
';
else if((!$login['moder'] or $droom['var']<>"room#") && ((!$login['moder'] or $droom['var']<>"room#") && ($droom['var']<>"room#" or $sex[0]<>"zh")) && ($age<18 or $droom['var']<>"room#")) print $droom['val1'].'('.$dcount['count(*)'].')
';
if($login['moder'] && $droom['var']=="room#") print '[url="room.php?id='.$id.'&pass='.$pass.'&room='.$droom['var'].'"]'.$droom['val1'].'('.$dcount['count(*)'].')[/url]
';
if(($login['moder']&& $droom['var']=="room#") or ($droom['var']=="room#" && $sex[0]=="zh")) print '[url="room.php?id='.$id.'&pass='.$pass.'&room='.$droom['var'].'"]'.$droom['val1'].'('.$dcount['count(*)'].')[/url]
';
if($age>18 && $droom['var']=="room#") print '[url="room.php?id='.$id.'&pass='.$pass.'&room='.$droom['var'].'"]'.$droom['val1'].'('.$dcount['count(*)'].')[/url]
';
if ($donline['sex']=='m') $s="";
else $s="";
i need code to add rooms just for admins/moders, for this chat http://ultimate.madpage.com here is the script
Replace this enter.php annd online.php wit ur existing files then go to ur database select chat_settings browse it and make room4 ur Staff Room / room2 it is ur Ladies rum and / and Room3 is ur adult Room
Attachments:
New_Folder.zip