![]() |
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 |
If its in the same directory as the forum you don't need to use anything:
PHP Code:
|
what if user goes into my arcade, ie: /forum/arcade.. wont it give error of file not found??
|
You can use:
PHP Code:
|
All times are GMT. The time now is 04:42 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:
|