Log in

View Full Version : Help please


HabboForum
02-26-2005, 01:50 PM
Hi,

I'd like to make another Moderator CP for a different user group, how would I limit an additional ModCP so that only certain user groups can access it? The reason as to why I want to do this is so that I can make a higher level of Super Moderators. (I will add more features into the additional modcp, but am unsure how I can limit access to certain user groups)

Thank you.

Viks
02-26-2005, 03:59 PM
?!? u want to give access to another user to your MODCP?
why u wanna make a new usergroup for that?

just put that user in the moderator usergroup...

HabboForum
02-26-2005, 04:01 PM
It's rather difficult to explain but basically I want to have:

/modcp (won't change this)
/modcp2 (will change this and will include extra features from the admincp)

But I don't want Super Moderators to be able to access /modcp2. I want it to be accessable to certain user groups, but am not sure how to do this.

HabboForum
03-01-2005, 03:26 PM
Anyone?

Marco van Herwaarden
03-01-2005, 03:31 PM
Just add the functions you want to the existing modcp, then protect those functions with a test like:


if ($bbuserinfo['usergroupid'] == <usergroup#> )
{
Perform special functions........
}