You need to put that include line at the very top of bb-config.php, right after <?php. What happens if you do that?
To install in the same database, you just specify that database’s connection details in bb-config.php. The important thing is to be sure you use a different table prefix for the bbPress installation. By default, it’s bb_ for bbPress and for wp_ for WordPress. Use different table prefixes and you can install as many applications into one database as you want. Just keep the table prefixes unique.
To uninstall, yes, just delete the directory with bbPress in it, then drop the bbPress tables from the database. DO NOT delete the database since you have WordPress in that database as well, right?
You’re probably overthinking it. Using the same database is how the bbPress directions are written now; I think it’s assumed. The key is to just keep the table prefixes unique and you can put as much stuff in one database as you want.
wait… it didn’t work in the default theme either…
I am putting the line:
if (file_exists(‘../wp-blog-header.php’))
require_once(‘../wp-blog-header.php’);
in right before:
if ( !defined(‘BB_PATH’) )
define(‘BB_PATH’, dirname(__FILE__) . ‘/’ );
require_once( BB_PATH . ‘bb-settings.php’ );
?>
when I put it at the end i got an error that i cannot define it twice…
is there a better place to put in the “require_once?
i just tried the default and it didn’t do the demo thing… any ideas in which file i can disable this in the theme?
I’ll but back the other theme so that you can see it…
thank you again for your help!
thank you!
http://greenprophet.com
http://greenprophet.com/exegesis
using peacemaker theme on bbpress
ideally i’d like to be able to access the functions so that I can integrate the pages better.
_ck_ said: “I recommend against separate databases unless you have some kind of weird configuration that demands it.”
Could you, or someone else, please outline any special instructions on how to go about installing bbpress to the same database that wordpress is already living on? Or is it just that simple as designating the wp database in the installation? What can go wrong? I have visions of destroying our wp installation and losing all our posts and pages.
Also, to uninstall bbpress, do I just delete its folder and database?
I would suggest adding a paragraph in the installation instructions recommending the single database installation and whatever instructions are necessary on how to properly do this.
Please post a link to your site. And the version of WordPress and bbPress.
Sounds like something built into the theme. Can you try the default theme and see what happens?
After I included into my bb-config.php
if (file_exists(‘../wp-blog-header.php’))
require_once(‘../wp-blog-header.php’);
my bbpress site turned into a “demo” site. It now says “Regisration disabled. This is a demo site.” (yes, with the spelling mistake) above the login.
any ideas what i can do?
many thanks!
Hello, I’m fairly new to bbpress, but I’m an avid web developer and wordpress user.
My problem:
When I go to the settings page, I cannot disable avatars.
I can uncheck it, but when I hit “update settings” I scroll down, and it’s just checked again!
Do I have a ghost? Am I doing something wrong?
I’m using:
BBPress V.0.9.0.2
Plugins:
Hidden Forums
Allow Images
BBCode Buttons
BBCode Lite
Avatar Upload (currently disabled, it won’t work because gravatars keep overwriting it or something)
That’s another one of those silly things that got carried over from WordPress. The database limits it to 60 characters and the default template limits it to 30 characters but it’s still overly long.
Fortunately in bbPress (unlike WordPress) the registration form is done in a template and not in the core, so the easiest way is just to modify the register.php template under my-templates (or copy it from bb-templates) and change the line that looks like this:
<td><input name="user_login" type="text" id="user_login" size="30" maxlength="30" value="<?php if (1 != $user_login) echo $user_login; ?>" /></td>
And instead of 30, make it the size limit you want.
However people that are sneaky and bypass the registration form can still make it 60 characters (ie. spammers). But they will stick out, so you’ll notice it right away.
This can be fixed via a plugin but it would be way too much code to justify the fix. The template method is best.
I’m running Alpha 1.0 and recently had to ask for support. I get the feeling I did something wrong before I did the solution as I now have an issue where I APPEAR to have permission to access admin panel and to post, but clicking on the links just sends me to the board index.
I’ve reinstalled the BBPress files and deleted the ‘bb_’ tables in the sql however this issue remains in this new installation. I’m integrated with WP, therefore I was wondering if someone could list the rows added to the WordPress sql by the bbpress integration process so that I could try removing them.
I faced the same problem, when installing bbpress 1 alpha with integration options (wp2.6) .
The problem is because of automatic generated codes by wordpress api. I installed wp 2.6 and get those codes through api. I had bb-login.php problems when I installed bbpress 1 alpha. And I changed wp codes written in wp-config.php to simple ones( I removed some special characters such a ),”,],/,,[,},{ ) , and then it worked.
I hope this helps you too.
Both bb and WP store data in wp_users and wp_usermeta, so when you do bb_get_user or get_user you get basically the same object.
I have a memberlist using my plugin, Aleph. The list is here: http://www.ryuuko.cl/busqueda/gente/
As you can see, i display a location field, which is filled in bbPress profile form.
I can log in only through WP for both BB and WP, and also log out: only through WP. I need help how to log in either in WP or BB for both BB and WP, and log out too?
Is there any way to “undo” an integration? I integrated WP 2.6 with version 9 before I found this thread and now I can’t log into BB press at all. Just wondering if I can hack in and do something to revert it back.
For the record, ThemePress integrated theme for bbPress+WordPress can be found in the middle of this page:
http://www.adityanaik.com/integratepress-part-i/
direct:
http://www.adityanaik.com/download/ThemePress-v-1.zip
it’s probably a bit outdated because it was meant for version 0.8 but should still work with a few modifications (for example his instructions say “config.php” when it’s now “bb-config.php” and the plugins he recommends are no longer required and might actually make things not work)
Just a quick question here, not sure if this is the right thread though.
I have WP 2.6.1, and last night installed bbpress 1.0 alpha.
Now when I log in this morning I click the button to ‘Log in’ and it redirects me back to the login page. The bbpress installation however, I can login to as normal.
better not do it that way, as updates will break your work. create an .htaccess and put the following in:
Redirect 301 /yourbbpressdirectory/register.php http://yourdomain.com/yourwordpressdirectory/wp-login.php?action=register
If there is no secure salt in WordPress then you don’t need one in bbPress. I think it says that in the note on that field in the installer.
Please include the version of bbPress you’re using when asking for help. If you are having trouble with WordPress integration, please post the bbPress version AND the WordPress version. If you are using an alpha or trunk release, please include the revision number. It will cut down on the time wasted answering questions that don’t apply to your version, or the back and forth of “what version are you running.”
Thanks.
What version bbPress and WordPress are you using?
Sorry I posted some incorrect/incomplete info. Until recently, it was only possible to have one database with both the wordpress tables and bbpress tables shared inside.
It’s now possible to force separate databases since 0.9
However I recommend against separate databases unless you have some kind of weird configuration that demands it. It’s just more overhead, more configuration, more to backup and worry about. Some hosts even limit the number of databases you can have (though tables inside are not restricted).
Once I get this forum installed, I plan to manually add a number of users from an old yahoogroup, and I’m wondering if we’d be better off entering them into the wordpress database, or into the bbpress database?