Skip to:
Content
Pages
Categories
Search
Top
Bottom

Load Bbpress into WordPress

  • @atsutane

    Member

    The only way available right now is to load wordpress into bbpress. I like to load some bbpress function into wordpress.

    Anyone know how to do it?

Viewing 17 replies - 1 through 17 (of 17 total)
  • @mdawaffe

    Member

    You should be able to use any bbPress functions you like in WordPress as long as you

    require_once('path/to/bbpress/config.php');

    @atsutane

    Member

    Thanks :) It work now

    @zimpet

    Member

    Mmmmh. Tried it and got: “Fatal error: Call to undefined function __() in /path/to/bbpress/bb-includes/capabilities.php on line 27”, it is the part with “function get_roles()”. Maybe it is beacuase I have defined a role “Key Master” within WordPress (with the plugin Role Manager)?

    @devils_advocate

    Member

    “require_once(‘path/to/bbpress/config.php’);”

    where would this be added?

    @atsutane

    Member

    @devils_advocate

    Inside wp-config.php

    @bonnyweb

    Member

    Hi guys,

    I’ve tryed to integrate bbpress in my wordpress blog, but I’ve some problems…I think in the configuration file.

    I’ll post my config file for semplicity:

    wp-config.php:

    <?php

    define(‘DB_NAME’, ‘blog_wp’);

    define(‘DB_USER’, ‘root’);

    define(‘DB_PASSWORD’, ‘root’);

    define(‘DB_HOST’, ‘localhost’);

    $table_prefix = ‘wp_’;

    define (‘WPLANG’, ”);

    define(‘ABSPATH’, dirname(__FILE__).’/’);

    require_once(ABSPATH.’wp-settings.php’);

    ?>

    bb-config.php:

    <?php

    define(‘BBDB_NAME’, ‘blog_wp’);

    define(‘BBDB_USER’, ‘root’);

    define(‘BBDB_PASSWORD’, ‘root’);

    define(‘BBDB_HOST’, ‘localhost’);

    $bb_table_prefix = ‘bb_’;

    $bb->domain = ‘http://localhost/neoxyty&#8217;;

    $bb->path = ‘/forum/’;

    $bb->name = ‘Neoxyty forum’;

    $bb->admin_email = ‘pippo@pluto.com’;

    $bb->mod_rewrite = false;

    $bb->page_topics = 30;

    $bb->edit_lock = 60;

    $bb->gmt_offset = 0;

    $bb->akismet_key = false;

    $bb->wp_table_prefix = false; // ‘wp_’;

    $bb->wp_home = “http://localhost/neoxyty&#8221;;

    $bb->wp_siteurl = “http://localhost/neoxyty&#8221;;

    define(‘BBPATH’, dirname(__FILE__) . ‘/’ );

    require_once( BBPATH . ‘bb-settings.php’ );

    ?>

    The intallation of the wordpress is ok and it works, and also the installation of bbpress seams to be ok, but when I try to read a post or make some changes in the admin section it doesn’t work…

    Some section are ok and other no…

    Somebody can help me…please!

    P.S. sorry if my english is not so good… :-)

    @devils_advocate

    Member

    so you all suggest I change

    define(‘ABSPATH’, dirname(__FILE__).’/’);

    require_once(ABSPATH.’wp-settings.php’);

    ?>

    to read

    define(‘ABSPATH’, dirname(__FILE__).’/’);

    require_once(‘path/to/bbpress/config.php’);

    ?>

    or to read

    define(‘ABSPATH’, dirname(__FILE__).’/’);

    require_once(ABSPATH.’path/to/bbpress/config.php’);

    ?>

    ??

    tia

    da

    @atsutane

    Member

    try like this

    define(‘ABSPATH’, dirname(__FILE__).’/’);

    require_once(ABSPATH.’wp-settings.php’);

    require_once(‘path/to/bbpress/config.php’);

    ?>

    @devils_advocate

    Member

    Ok….did that – got the install up – but am STILL not getting the css (or stylesheet) to load.

    Am seeing non-styled HTML – and most important – when I click a link to go to the first post, or login, I’m taken to the front page of the WordPress blog (posts and all)…

    no sign of bbPress…..

    what’s going on do you think?

    @devils_advocate

    Member

    Ok. found a css sheet, a new header and image files from Fernando_Graphicos <http://fernando.dubtribe.com&gt; and got the forum up and running but it won’t let me add a forum, doesn’t recognize me as admin [after initial screen] etc…

    ??

    help?

    @devils_advocate

    Member

    also happening is: when I click on the link “Your First Post” (or somesuch) I get this error…

    “Too many redirects occurred trying to open “http://mydomain.com/cms/bbpress/topic.php?id=1”. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page.”

    anyone know why this is happening?

    @andyro

    Member

    I have bbpress loaded inside wp (like this: (wp/bbace/’). All bb pages show, except when user profile is clicked on (the respective users from worpress showed up automatically) I get:

    The requested URL /wp/bbace/profile/2 was not found on this server.

    Or when a topic is posted (the post goes up) but I get this error:

    The requested URL /wp/bbace/topic/3 was not found on this server.

    On the server side, there is nothing under ‘topic’ or ‘profile’ – should this be looking for a .php script, or something in the mysql side of things?

    Any pointers would be appreciated…to view the site:

    http://archicad.ca/wp/bbace/

    Thanks in advance!

    @mdawaffe

    Member

    andyro,

    It looks like you need to set up pretty permalinks.

    @andyro

    Member

    Thanks, I will try this (first need to figure out how to access .htaccess – reading about this now! :)

    @andyro

    Member

    OK, it totally works now. Thank-you. I didn’t realize I had to CREATE a .htaccess file under my ‘/www’ folder, I somehow assumed it would already be there in the installation package, and I only needed to add the MultiViews line to allow pretty permalinks – perhaps this could be clarified in the installation instructions? I am a complete ignoramus regarding all of this stuff, so the fact that I even got it working is a testament to its simplicity. The creation of the .htaccess file had me hung for several hours though. Otherwise, great work, I am looking forward to trying this out now!

    @parthatel

    Member

    ok, so what exactly are the steps to load bbpress into wordpress?

    @chrishajer

    Participant

    You need to add this to the top of your wp-config.php right after <?php:

    require_once('/path/to/bbpress/bb-config.php');

    I would use the full server path to the bb-config.php file, not a relative path like ./bbpress/bb-config.php (rumor is that full paths work better) and not a URL like http://www.example.com/bbpress/bb-config.php (URLs won’t work at all here).

    That’s it, just one step. Good luck.

Viewing 17 replies - 1 through 17 (of 17 total)
  • You must be logged in to reply to this topic.
Skip to toolbar