The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Ok.. my site is run by php...... and im tryin too make it so someof the files can only be viewed by members.....
instead of require('./global.php') i require data.php (whihc ends up requirin global anyway) .. all of the files i want to be member only require data.php and no other files do so i figuired instead of having to put this code in evry page i could just put it in data.php so in other pages i just have the PHP Code:
|
#2
|
||||
|
||||
![]()
^^^
|
#3
|
|||
|
|||
![]()
if you have included global.php it loads the $bbuserinfo array and if they aren't registered or logged in their userid is 0 so you can use the following code
PHP Code:
|
#4
|
||||
|
||||
![]()
Thx!
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|