Log in

View Full Version : Restricting access to jirc chat page


manguish
03-31-2004, 07:57 PM
I have a chat room which is located at vb/chat.php

I don`t want normal registered users to be able to access this, but i want a seperate usergroup to be able to along with admins.

I`m presuming the admin bit is not a problem, since they have access to everything, but how do i restrict my nonpaying usergroup access while allowing my paying group in?

burnist
03-31-2004, 08:54 PM
just after

require_once('./global.php');

Add this

if(( $bbuserinfo[usergroupid == 2) {
eval(print_standard_error('nopermission_loggedin') );
} else {


and then put a final } before the ?> at th end of the document

All this does is no allow the users in the main registered group to view that chat, all other usergroups can eg mods,s-mods,admin abd whatever else you have

There are probobly parse errors in that code so fix them if there is and im sorry if theres alot