![]() |
How can I do this?
I have a gallery on my site, and I would like only registered members to be able to view it (basically I want people to sign up if they want to view the gallery).
So I have a gallery.php file outside my /forum/ directory, so if I move the gallery.php to the vB forum directory I'd like to add access restriction for registered members only. How can I do this? (if I can) |
At the top of the gallery.php file, find:
PHP Code:
PHP Code:
|
yeah all you have to do is include the global.php
you may have to use chdir() function first.. like this: PHP Code:
|
chdir was giving an error in safe mode, so the edit posted by Erwin did the work :)
|
All times are GMT. The time now is 11:24 AM. |
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:
|