![]() |
Question about template based pages
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. |
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 |
Quote:
|
you need to put chdir() function before include() / require() forum/global.php
Code:
chdir(PATH_TO_YOUR_FORUM); |
And chdir back to the current PHP file's folder or you will have problems :).
|
I took the CHDIR from the vBa CMPS portal file and I just added it there. Thanks guys. :)
|
Glad can help :)
|
All times are GMT. The time now is 01:07 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:
|