Skip to:
Content
Pages
Categories
Search
Top
Bottom

loading wordpress with bbpress

  • what does that mean?

    setting BB_WP equal to true that is. is’nt it suppose to load the header/footer of my wp installationg? if that is the case, it it’nt working.

Viewing 25 replies - 1 through 25 (of 54 total)
  • No – WP_BB only tells bbPress that you will be loading WordPress so that it knows not to try to load thingsn which will conflict with WordPress.

    If bbPress is installed in a subdirectory of WordPress, put this in bbPress’ config,php

    require_once(dirname(dirname(__FILE__)) . '/wp-config.php');

    I tried that and it threw back a serious error. I might be a noob, but is there more defining that needs to be done? Inserting the code towards the bottom didn’t work. My installation works ok, but it doesn’t load wordpress at all, and if I uncomment the wp_bb line, it errors up as well.

    Help!

    i’m using

    require_once(‘/absalout/path/’)

    Ok so I got it to work without error, but it still does not load my blog site on top of the forum. Maybe I misunderstood, I need more than just username and password integration. I need it to show my blog.

    cmcraft, you need to call WordPress’ template functions yourself. bbPress doesn’t do that for you.

    ok, can you tell me how?

    Ok, now I am beginning to understand. I assume from looking around that I need to add that code (such as ‘<?php get_header(); ?>’) into the bbpress/index.php file.

    Naturally bbpress won’t know to look in the /blog/ folder (bbpress is in the /blog/bbpress/ folder) so how do I set the path?

    Would that be another require( etc code?

    Thanks for all the help, I am learning so much!

    I am going to try this, thanks to the page you referenced above.

    <?php include (TEMPLATEPATH . ‘/header2.php’); ?>

    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’); ?>

    ?>

    What you’re trying to do should be done in bbPress’ config.php file, but you’re really close :)

    Put your index.php back the way it was. In bbPress’ config.php file, put the following two lines right after the <?php line.

    require_once('/path/to/wp-blog-header.php');

    define('WP_BB', true);

    It seems you’ve found the correct path to use in you system: /home/myusername/public_html/blog/wp-blog-header.php

    So it should now look like:

    <?php

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

    define('WP_BB', true);

    Then, copy your bb-templates/ directory to my-templates/ this is so you can modify the template files without editing the original ones; bbPress will use the files in that directory automatically instead of the original ones.

    In my-templates/front-page.php (and any of your other template iles), you can now call any WordPress template function, even get_header().

    First let me say what a breeze to install and intigrate. I didnot even realize it was integrated untill I noticed while logged into WP admin I brought up the forum in another tab and was logged in there too! Nice job.

    Ok now to my question, Im trying to get the forum to look like wp, in my cae its http://dentalceramics.com and http://dentalceramics.com/forums. Like what youve done with this site.

    My problem is that every time I try and ad

    <?php

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

    define(‘WP_BB’, true);

    I get a crash. Interestingly though define(‘WP_BB’, true); works under the last section of the config.php file but only as define(‘wp_bb’,true); Its how its defined now.

    So my thouht is do I need to even do this? Can I just start adding wp tags tp my bb_template files? If so what should for example <?php bb_get_header(); ?> be changed to in the front-page.php file if this is the way to go about it.

    Many thanks,

    Rob

    Oh, sorry no access to my error log files which is a real bummer for stuff like this to help.

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

    define(‘WP_BB’, true);

    Where are you putting that? It should be the very first thing in bbPress config.php

    Yes right at the top right after <?php

    The congfig.php file at the bottom where it asks about wp intigration also has a statement.

    //define(‘WP_BB’, true); When I uncokmmented that it failed so I changed WP_BB to wp_bb and it worked. I’ve set up the wp url and siteurl as well. This all works.

    So when I added your code to the top I’ve tried all combinations, that is, lowercase, commenting out the define(‘WP_BB’, true); at the bottom of the config file etc.

    Thanks for responding!

    Rob


    Ok after a few more trys, I got it to load. I think I might have had a carriage return (ha, they still use that term?) in the cut and pasting. Now the work to get them to match begins. I need to now get info from the bb_header file into the front-page.

    Thanks.

    Rob

    Hi, I think I’ve got the same problem.

    I’m trying to install bbPress into a subdirectory of wordPress and I want it to have the same template of my main site.

    I’ve looked this topic and I’ve uninstalled bbPress and made some changes to my config.php, that now looks like:

    <?php

    require_once('/home/wererabbit/demon.wererabbit.net/wp-blog-header.php');

    define('WP_BB', true);

    define('BBDB_NAME', '*****');

    define('BBDB_USER', '*****');

    define('BBDB_PASSWORD', '******');

    define('BBDB_HOST', 'mysql.wererabbit.net');

    $bb_table_prefix = 'bb_';

    $bb->domain = 'http://demon.wererabbit.net/';

    $bb->path = '/forum/';

    $bb->name = 'Forum';

    $bb->admin_email = 'lum@wererabbit.net';

    $bb->mod_rewrite = true;

    $bb->page_topics = 30;

    $bb->edit_lock = 60;

    $bb->gmt_offset = 0;

    $bb->akismet_key = false;

    $bb->wp_table_prefix = 'wp_';

    $bb->wp_home = 'http://demon.wererabbit.net';

    $bb->wp_siteurl = 'http://demon.wererabbit.net';

    define(WPp_BB', true);

    define('BBPATH', dirname(__FILE__) . '/' );

    require_once( BBPATH . 'bb-settings.php' );

    ?>

    Now when I try to install I get a parse error:

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/.nevermore/wererabbit/demon.wererabbit.net/forum/config.php on line 57

    line 57 is:

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

    I think there’s something missing but I do not catch it.


    peiqinglong
    Member

    @peiqinglong

    If you want it to have the same look as your site, don’t edit the config.php like that. Create a folder inside bbpress directory called my-templates and make a copy of all the files in bb-templates and paste it into my-templates and edit those files. Example: http://www.abunchofcars.com/forum/

    mokona,

    The error is actually caused by the line above that on. Delete the line that says:

    define(WPp_BB', true);


    doubter
    Member

    @doubter

    hey gang. i typically can figure stuff out on my own, but after a week of trying to install this i have hit a wall. i am sure i am missing something fairly stupid, but any help at this point would be very helpful. i am trying to incorporate bbpress with my wp blog @ captainsdead.com. I am currently receiving this error.

    arse error: syntax error, unexpected T_STRING in /home/captvan4/public_html/config.php on line 55

    thanks in advance, very much.

    Greg

    <?php

    // ** MySQL settings ** //

    define(‘BBDB_NAME’, ‘////); // The name of the database

    define(‘BBDB_USER’, ‘///’); // Your MySQL username

    define(‘BBDB_PASSWORD’, ‘//’); // …and password

    define(‘BBDB_HOST’, ‘///’); // 99% chance you won’t need to change this value

    // Change the prefix if you want to have multiple forums in a single database.

    $bb_table_prefix = ‘$bb->wp_table_prefix’; // Only letters, numbers and underscores please!

    // If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.

    // Adjust the domain and path to suit your actual URL.

    // Just the domain name; no directories or path. There should be no trailing slash here.

    $bb->domain = ‘http://captainsdead.com&#8217;; // Example: ‘http://bbpress.example.com&#8217;

    // There should be both a leading and trailing slash here. ‘/’ is fine if the site is in root.

    $bb->path = ‘/forums/’; // Example: ‘/forums/’

    // What are you going to call me?

    $bb->name = ‘captainsdead forums’;

    // This must be set before running the install script.

    $bb->admin_email = ‘gregor@captainsdead.com’;

    // Set to true if you want pretty permalinks.

    $bb->mod_rewrite = false;

    // The number of topics that show on each page.

    $bb->page_topics = 30;

    // A user can edit a post for this many minutes after submitting.

    $bb->edit_lock = 60;

    // Your timezone offset. Example: -7 for Pacific Daylight Time.

    $bb->gmt_offset = 0;

    // Change this to localize bbPress. A corresponding MO file for the

    // chosen language must be installed to bb-includes/languages.

    // For example, install de.mo to bb-includes/languages and set BBLANG to ‘de’

    // to enable German language support.

    define(‘BBLANG’, ”);

    // Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage

    // of Akismet’s powerful spam blocking, you’ll need one. You can get an Akismet key at

    // http://wordpress.com/api-keys/

    $bb->akismet_key = false;

    // The rest is only useful if you are integrating bbPress with WordPress.

    // If you’re not, just leave the rest as it is.

    $bb->wp_table_prefix = ‘wp_’; // WordPress table prefix. Example: ‘wp_’;

    $bb->wp_home = ‘http://www.captainsdead.com; // WordPress – Options->General: Blog address (URL) // No trailing slash

    $bb->wp_siteurl = ‘http://www.captainsdead.com&#8217;; // WordPress – Options->General: WordPress address (URL) // No trailing slash

    /* Stop editing */

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

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

    ?>

    doubter,

    $bb->wp_home = 'http://www.captainsdead.com';

    That line in the code you pasted is missing a single quote at the end (before the semi colon).

    Hope that works :)


    doubter
    Member

    @doubter

    thanks so much for the quick reply, but sadly i am now getting this error

    Warning: constant() [function.constant]: Couldn’t find constant **moderated** in /home/captvan4/public_html/bb-includes/db-mysqli.php on line 51

    Warning: constant() [function.constant]: Couldn’t find constant *moderated** in /home/captvan4/public_html/bb-includes/db-mysqli.php on line 52

    Warning: constant() [function.constant]: Couldn’t find constant *moderated**in /home/captvan4/public_html/bb-includes/db-mysqli.php on line 53

    Warning: constant() [function.constant]: Couldn’t find constant *moderated** in /home/captvan4/public_html/bb-includes/db-mysqli.php on line 54

    Cannot select DB.

    wow, i have no idea whats going wrong here. as above, i appreciate any help.

    thanks

    greg


    peiqinglong
    Member

    @peiqinglong

    doubter:

    Are you trying to incorporate the look of your main site into bbpress or functions of WP into bbpress? If you are looking to make bbpress look a part of your site, I highly recommend that you remove all the WP code from config.php. Then make a my-templates directory inside bbpress directory, make a copy of the contents of bb-templates and drop it in there. Then modify the files to match your existing site. See an example here: http://www.abunchofcars.com/forum/


    Atsutane
    Member

    @atsutane

    Fatal error: Cannot redeclare widget_akismet() (previously declared in /path/to/wp-content/plugins/akismet/akismet.php:376) in /path/to/wp-content/plugins/akismet/akismet.php on line 376

    I dont know what went wrong, but this happen when i try to loading wordpress 2.0.5 using bbpress 0.73. Before when i using wordpress 2.0.4 and bbpress 0.72 on my another blog, i dont have such problem. Is it because i have update my akismet plugin or i did something wrong in the config? I only put this on the top of my config.php

    require_once(‘/path/to/wp-blog-header.php’);

    define(‘WP_BB’, true);

    I also have the same problem with Ultimate tag warrior but i can disable that plugin, but i dont want to disable akismet. Anyone got any good suggestion?

    doubter,

    Can you try moving the file bb-includes/db-mysqli.php somewhere safe and then copying bb-includes/db.php to bb-includes/db-mysqli.php (so that the mysqli file is a duplicate of the other file)?

    And, just to help troubleshoot, WordPress is working fine for you on that server?

    Atsutane,

    Can you disable Ultimate Tag Warrior to see if that fixes both problems by magic?

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