The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I've asked this question in vb.com and here's the thread:
http://www.vbulletin.com/forum/showthread.php?t=217356 My question is, can I create these php files out of the forum directory? they only work when they are in the forum directory and didn't when they are somewhere outside, I changed the path to the global.php file and still nothing happened? I really need help. |
|
#2
|
|||
|
|||
|
If you create the php files out of the forum directory, you'll need to change the links on the php file to the direct link.
E.g global.php -> /forum/global.php |
|
#3
|
|||
|
|||
|
I did that before and didn't work.
|
|
#4
|
|||
|
|||
|
you need to put chdir() function before include() / require() forum/global.php
Code:
chdir(PATH_TO_YOUR_FORUM);
require_once('./global.php');
|
|
#5
|
||||
|
||||
|
And chdir back to the current PHP file's folder or you will have problems
.
|
|
#6
|
|||
|
|||
|
I took the CHDIR from the vBa CMPS portal file and I just added it there. Thanks guys.
|
|
#7
|
|||
|
|||
|
Glad can help
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|