View Full Version : how to include a vb page?
Sh4z0n
03-29-2003, 12:01 PM
hi all,
i've got a problem:
i've 2 directories, ROOT dir and FORUM dir.
in index.php in my root dir i need to include forum/usercp.php -
but the page included result blank... i CAN'T include any vb files in other directory... how can i do???
thanks in advance
filburt1
03-29-2003, 04:01 PM
You need to require global.php if you want to do pretty much any integration with vB. Also you can't include usercp.php because it will include <html> tags in there which will screw up your other page's layout.
Sh4z0n
03-29-2003, 11:05 PM
mmm...and so what can i do?!?!? i need to have another usercp in my home!
just copy the file over to your root directory and then at the top of the file do a chdir ('./forum/')
Sh4z0n
03-31-2003, 03:19 AM
Yesterday at 06:26 AM mr e said this in Post #4 (https://vborg.vbsupport.ru/showthread.php?postid=375357#post375357)
just copy the file over to your root directory and then at the top of the file do a chdir ('./forum/')
"the file" you say is usercp.php???
so i copy usercp.php in my root dir... and i do a chdir on vb dir...
that's ok?
thanks
copy usercp.php to your root directory and at the top of usercp.php (the root directory one) do a chdir('./DIRECTORYOFYOURFORUMS/')
Sh4z0n
04-04-2003, 02:06 PM
that's right :)
now you've been real very explicit :)
much thanks
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.