The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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) |
#2
|
||||
|
||||
At the top of the gallery.php file, find:
PHP Code:
PHP Code:
|
#3
|
||||
|
||||
yeah all you have to do is include the global.php
you may have to use chdir() function first.. like this: PHP Code:
|
#4
|
||||
|
||||
chdir was giving an error in safe mode, so the edit posted by Erwin did the work
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|