![]() |
Group Only Page
How can I take this code from zachary and use it to now allow people from a certain group to play using. Thanks.
<?php // ## Error Reporting ## error_reporting(E_ALL & ~E_NOTICE); // ## Sets Enviroment ## define('NO_REGISTER_GLOBALS', 1); // ## Grabs global.php ## require_once("./global.php"); if (!$bbuserinfo['userid']) { print_no_permission(); } ?> :surprised: |
try this:
PHP Code:
|
Yeah but don't I need the actual integration of it into the vbscript?
|
woops i made a mistake above anyways.
just plug this code in there and fill in x with the # of the usergroupid you wish to view that page: PHP Code:
|
Yeah that should work great! THanks for the help. But now that I think of it say the page is going to be a gallery any ideas how I could protect the image files from people just typing in the path?
|
I should be able to stop people from just typing in example.com/image.jpg through htaccess though if I am not mistaken.
|
All times are GMT. The time now is 09:13 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|