The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Limit Guests on foreign scripts?
Just wanting to know the correct code to use to add to a foreign script.
To ensure that only registered users are capable of viewing what i offer? |
#2
|
|||
|
|||
Foreign script? More details please.
|
#3
|
|||
|
|||
A custom php script.
For example if i am to create a script and place it in the root directory then i would like to be able to prevent non registered users from viewing the page. |
#4
|
||||
|
||||
And is the global.php script included in your custom script? I fyou have that script included, then you can use basic vbulletin code.
|
#5
|
|||
|
|||
Quote:
Warning: require(./includes/class_bootstrap.php) [function.require]: failed to open stream: No such file or directory in /home/ftwforum/public_html/global.php on line 15 So i assume this is because i am using a directory instead of the root for my script location? --------------- Added [DATE]1287284215[/DATE] at [TIME]1287284215[/TIME] --------------- Anyone got any ideas what i am doing wrong? I can get it to work in the root directory using the below code. PHP Code:
Normally errors like this. Code:
Warning: require(./includes/class_bootstrap.php) [function.require]: failed to open stream: No such file or directory in /home/ftwforum/public_html/global.php on line 15 define( ROOT_PATH , "./" ); But that did nothing either. I know this is a simple answer but i am really not that good with PHP and even less skilled with VB. So any help here would be appreciated. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|