|
|
bananaman
Noobie
Posts: 34
No ordinary superhero!
|
|
Re:[Done 1.3-1.4.1] Integrated Chat v.3
« Reply #242 on: January 14, 2003, 07:59:12 PM » |
|
Quote from: diva_uno on January 14, 2003, 07:47:13 PMOne more question. I was wondering if I could restrict chat to only certain people? I plan to have live chat with a certain celeb and I am going to block out all those members who are not active posters when this chat occurs. I don't know if this is a question for brodle or goosemoose or both.
You would need to modify this line: if ($username == "Guest") { die("Guests are not allowed to enter this area!"); } to exclude specific groups of users. For example something like this will check to see if the user is part of a member group and will prevent guests and "regular" members from entering the chat through the forum interface. $request3 = mysql_query("SELECT m.memberGroup FROM {$db_prefix}members AS m WHERE m.memberName='$username'"); while ($tmp = mysql_fetch_array($request3)) { if ($tmp['memberGroup'] != ''){ $specialmember = 1; } else { $specialmember = 0; }} if ($specialmember = 0 || $username == "Guest") { die("Only Special Members are allowed to enter this area!"); } NOTE I have not checked this code - just a quick cobble together to give you an example of what could be done.
|
|
« Last Edit: January 15, 2003, 08:07:39 AM by bananaman »
|
Logged
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|