hurrican
02-16-2005, 12:34 AM
Trying to accomplish where I can ban users by admin/user.php .. I have added "can access chat room" to that, which shows up, added that information to my database.. however, I am having trouble trying to get it expressed in the chat.php file.. My current chat file checks to see if the user can send pm's.. if yes, they can access chat, if no, they can't.. however, i want to make a 'canaccesschatroom' instead..
anyone tell me how I can modify this to make this work properly?
<?php
$service = "sigmachat"; # Options are: "ice" or "sigmachat"
error_reporting(7);
$templatesused='chat,chatbit,chatredirect';
// ## Changes Directory so it can accesss vbulletin ##
chdir("/home/public_html/vb/");
// ## Grabs global.php ##
require("./global.php");
$permissions=getpermissions($forumid);
if (!$permissions[canusepm]) {
show_nopermission();
}
if ($bbuserinfo['userid']!=0) {
if ((!isset($setwidth) or $setwidth=="") or (!isset($setheight) or $setheight=="")) {
eval("dooutput(\"".gettemplate('chatredirect')."\");");
}
.................
anyone tell me how I can modify this to make this work properly?
<?php
$service = "sigmachat"; # Options are: "ice" or "sigmachat"
error_reporting(7);
$templatesused='chat,chatbit,chatredirect';
// ## Changes Directory so it can accesss vbulletin ##
chdir("/home/public_html/vb/");
// ## Grabs global.php ##
require("./global.php");
$permissions=getpermissions($forumid);
if (!$permissions[canusepm]) {
show_nopermission();
}
if ($bbuserinfo['userid']!=0) {
if ((!isset($setwidth) or $setwidth=="") or (!isset($setheight) or $setheight=="")) {
eval("dooutput(\"".gettemplate('chatredirect')."\");");
}
.................