Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: loading wordpress with bbpress

Nope. Here is my index.php file from the bbpress directory. What am I doing wrong?

‘<?php

require(‘./bb-load.php’);

//the next two lines are my attempts to load it myself

require_once(‘/home/myusername/public_html/blog/wp-config.php/’);

require_once(‘/home/myusername/public_html/blog/wp-blog-header.php’);

$bb_db_override = false;

do_action( ‘bb_index.php_pre_db’, ” );

if ( isset($_GET) && ‘1’ == $_GET ) :

$forums = false;

elseif ( !$bb_db_override ) :

$forums = get_forums(); // Comment to hide forums

$topics = get_latest_topics();

$super_stickies = get_sticky_topics();

endif;

do_action( ‘bb_index.php’, ” );

if (file_exists( BBPATH . ‘my-templates/front-page.php’ ))

require( BBPATH . ‘my-templates/front-page.php’ );

else require( BBPATH . ‘bb-templates/front-page.php’ );

//then i tried the include header call to no avail so i tried this

<?php include (/home/myusername/public_html/blog . ‘/wp-blog-header.php’); ?>

?>

Skip to toolbar