Problem with wordpress and bbpress not being in same directory
-
trying to integrate bbpress to use my wordpress theme… but running into problems. when i put the code into the bb.config file
require_once(‘../blog/header.php’);
if (file_exists(‘../blog/header.php’))
require_once(‘../blog/header.php’);
else
if (file_exists(‘../../blog/header.php’))
require_once(‘../../blog/header.php’);
it stacks the path on top of the forum path instead of where it belongs… giving me the error:
Warning: require_once(../blog/header.php) [function.require-once]: failed to open stream: No such file or directory in /home/xxxx/public_html/forum/bb-config.php on line 70
Fatal error: require_once() [function.require]: Failed opening required ‘../blog/header.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/xxxx/public_html/forum/bb-config.php on line 70
has anyone else had this problem… and can you share how to fix it?
I’m using the method of replacing the header.php file content with <?php get_header(); ?> and the footer with <?php get_footer(); ?> if there is a better way of going about this, I’m open so please share
thanks!
- You must be logged in to reply to this topic.