Log in

View Full Version : Need advice


Oreamnos
01-05-2005, 02:50 AM
I am going to be making some additional pages that will only be accessible by members of my forum. These pages will live in the forums/ directory.

My question:
Which files should I include on these pages and what is the code snippet to check if the user is a Guest or Member?

Thanks

noppid
01-05-2005, 03:24 AM
There is a hack around here that has good instructions for doing that. I just aint got the link handy.

If ya wanna go it alone use a copy of the GENERIC_SHELL template to get most of what ya need.

Oreamnos
01-05-2005, 03:25 AM
Thanks, I'll keep searching for that hack and check out GENERIC_SHELL.

if anyone knows of this hack please post it here :)

Link14716
01-05-2005, 04:50 AM
<?php

require_once('./global.php');

if ($bbuserinfo['userid'] == 0) {
print_no_permission();
}

?>

## Rest of file here.

Oreamnos
01-05-2005, 05:10 AM
Great, Thanks!