PDA

View Full Version : Limit forum access by userid...


Chris M
06-14-2002, 01:09 PM
Is there a hack out there that can limit the access to certain forums by Userid?

I am going to start up a specific clan forum, and I only want the people who I want to see it to be able to...

If this could be intergrated into the Admin CP, that would be great!

Satan

Admin
06-14-2002, 01:11 PM
It's called ACCESS MASKS. :)

Chris M
06-14-2002, 02:30 PM
Yeh...

But Access Masks take too long to edit...

Satan

Admin
06-14-2002, 03:03 PM
LOL But access masks is exactly what you're asking for. The hack will also take a long time to edit... :p

Chris M
06-14-2002, 03:07 PM
Ah ok...

Its just that other admins can edit Access Masks anyway...

Satan

JoshFink
06-16-2002, 10:55 PM
Originally posted by hellsatan
Yeh...

But Access Masks take too long to edit...

Satan

Easiest way that I've found to do access masks is to make up a SQL script that will put in all the corect data you want into the tables for you. Then you just need to modify it for the different forum id's and redo.

Josh

Zzed
06-16-2002, 11:45 PM
We have the same thing on our forums.

Just create a new user group and give them permission to access the forum you are talking about. No need to fiddle with access masks. ;)

SWRoleplay.com
06-17-2002, 03:49 AM
Its just that other admins can edit Access Masks anyway...

That's easily fixed. Credit goes to Firefly for this code.

Open forumpermissions.php.

Find:

require("./global.php");

After That, Put:


if ($bbuserinfo['usergroupid'] != 1) {
show_nopermission();
}

Xenon
06-17-2002, 12:06 PM
if ($bbuserinfo['usergroupid'] != 1) ???

in general all admins have usergroupid 6, so every admin will get this error.

if ($bbuserinfo['userid']!=1)
should be the correct syntax

Chris M
06-17-2002, 12:56 PM
Thanks:)

Satan