bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

Load Bbpress into Wordpress

(18 posts)
  • Started 1 year ago by Atsutane
  • Latest reply from chrishajer
  • This topic is not a support question
  1. 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?

    Posted 1 year ago #
  2. You should be able to use any bbPress functions you like in WordPress as long as you

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

    Posted 1 year ago #
  3. Thanks :) It work now

    Posted 1 year ago #
  4. 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)?

    Posted 1 year ago #
  5. "require_once('path/to/bbpress/config.php');"

    where would this be added?

    Posted 1 year ago #
  6. @devils_advocate

    Inside wp-config.php

    Posted 1 year ago #
  7. 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';
    $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";
    $bb->wp_siteurl = "http://localhost/neoxyty";
    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... :-)

    Posted 1 year ago #
  8. 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

    Posted 1 year ago #
  9. try like this

    define('ABSPATH', dirname(__FILE__).'/');
    require_once(ABSPATH.'wp-settings.php');
    require_once('path/to/bbpress/config.php');
    ?>

    Posted 1 year ago #
  10. 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?

    Posted 1 year ago #
  11. Ok. found a css sheet, a new header and image files from Fernando_Graphicos <http://fernando.dubtribe.com> and got the forum up and running [i think] but it won't let me add a forum, doesn't recognize me as admin [after initial screen] etc...

    ??

    help?

    Posted 1 year ago #
  12. 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?

    Posted 1 year ago #
  13. 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!

    Posted 1 year ago #
  14. andyro,

    It looks like you need to set up pretty permalinks.

    Posted 1 year ago #
  15. Thanks, I will try this (first need to figure out how to access .htaccess - reading about this now! :)

    Posted 1 year ago #
  16. 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!

    Posted 1 year ago #
  17. parthatel
    Member

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

    Posted 2 months ago #
  18. 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.

    Posted 2 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.