Quote:
07-09-03 at 01:57 AM mitomcua said this in Post #56
Hey guys,,,, this Mirc chat is pretty cool !!! however i want the non-registered at my forum cant not go to the chat room... how would i do that? becuase as now if you r not registered you can still be able to get in the chat with some kind of unregister / or guess.... Is there any thing can be edited in php.chat?
Thanks a lot for your help in advanced.
M
|
if you do not want none members to enter chatroom then use this chat.php instead of one in he zip.
or replace the whole code in the chat.php to
PHP Code:
<?php
//Include global variables.
include("global.php");
//Check to see if the user is registered, if they are not, show them the login screen.
if ($bbuserinfo[userid]==0) {
show_nopermission();
}
//If the user is registered, proceed to load the chat template.
else {
eval("dooutput(\"".gettemplate("chat")."\");");
}
?>