The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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: |
#2
|
||||
|
||||
try this:
PHP Code:
|
#3
|
|||
|
|||
Yeah but don't I need the actual integration of it into the vbscript?
|
#4
|
||||
|
||||
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:
|
#5
|
|||
|
|||
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?
|
#6
|
|||
|
|||
I should be able to stop people from just typing in example.com/image.jpg through htaccess though if I am not mistaken.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|