The Arcive of vBulletin Modifications Site. |
|
how to include a vb page? Details »»
|
|||||||||||||||||||||||||
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 Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
|||
|
|||
|
mmm...and so what can i do?!?!? i need to have another usercp in my home!
|
|
#4
|
||||
|
||||
|
just copy the file over to your root directory and then at the top of the file do a chdir ('./forum/')
|
|
#5
|
|||
|
|||
|
Quote:
"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 |
|
#6
|
||||
|
||||
|
copy usercp.php to your root directory and at the top of usercp.php (the root directory one) do a chdir('./DIRECTORYOFYOURFORUMS/')
|
|
#7
|
|||
|
|||
|
that's right
![]() now you've been real very explicit ![]() much thanks |
![]() |
|
|