Log in

View Full Version : External pages using templates


TsirhCitna
08-12-2008, 10:54 PM
I created a custom 404 page using this:
http://www.vbseo.com/f34/create-custom-vbulletin-404-page-not-found-page-direct-vbseo-use-11288/

It works fine inside the forums directory, but I would like it to work on the root as well. As it stands I get php errors: http://www.tenstones.net/404.php

My .htaccess in the root points to /forums/404.php

Because it calls misc.php it needs global.php which I added to the root and edited to also point to /forums/ for all the files it calls, which leads to init.php and it continues. I even went as far as to copy the entire root and I have tried the intergration built into vBadvance which also didn't work.

I'm fresh out of ideas.

RLShare
08-13-2008, 12:28 AM
Why would you change the structure of the filesystem? Just change the current working directory to your forums root before you include any files using the 'chdir' function if you need to include files from that directory.
http://us3.php.net/chdir