The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Including external file
I want to know how to include external file.
i have already read the plugin system manual about including external file. but it says '/path/to/file' and my file is located at vbulletin's root directory . name of file is random.php What i want to know is the variable which contain the forum's url i.e /forum/ so that i can use this code : PHP Code:
but the variable ".$vboptions['forumurl']." isnt working, it gives this error : Code:
Warning: include(/random.php) [function.include]: failed to open stream: No such file or directory in \global.php(360) : eval()'d code on line 4 Warning: include() [function.include]: Failed opening '/random.php' for inclusion (include_path='.;D:\Softwares\Setups\xampp\php\pear\') in \global.php(360) : eval()'d code on line 4 |
#2
|
|||
|
|||
If its in the same directory as the forum you don't need to use anything:
PHP Code:
|
#3
|
|||
|
|||
what if user goes into my arcade, ie: /forum/arcade.. wont it give error of file not found??
|
#4
|
|||
|
|||
You can use:
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|