bbPress should not tamper with your WordPress tables.
The user data is kept separate.
Ah, I guess it’s important to point out that just like bbPress 0.9 is not compatible with WordPress 2.6, it’s also that bbPress 1.0 is not comptible with WordPress 2.5
Major cookie changes.
WordPress 2.5.x <-> bbPress 0.9
WordPress 2.6.x <-> bbPress 1.0
I’m getting a funky error:
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
I’m trying to integrate WP 2.5.1 and BB 1.0
It only started when I edited the bb_config file bbpress was working smoothly as a stand-alone… I think
You can just change the register links in the wordpress template to point to the bbpress login and registration forms… that’s easy enough (you can even copy the login form code into the template directly and it seems to work).
The problem is, how to get users back to the URL they came from after they login (by default they seem to get bounced to the forum home page instead)… any ideas?
Thanks so much for the help. You helped me spot that I had inadvertently uploaded the root’s index.php to the blog index.php folder. I had a feeling it was something simple and dumb.
If it’s this site http://famousbeats.net/ it’s 2.5.1:
<meta name="generator" content="WordPress 2.5.1" />
Turns out the main index.php WordPress template had been overwritten with a static page, and that was being served instead of templated content being served from the database. It had nothing to do with bbPress integration.
This plugin is meant as a temporarily workaround until the bug can be fixed in WordPress – it will replace “anonymous” with the user login.
Install it on the WordPress side:
<?php
/*
Plugin Name: changes anonymous to member's login if display name missing (plugin for WordPress)
*/
function no_anonymous_members($author) { // this is a WORDPRESS plugin, not bbPress
global $comment;
if (empty($comment->comment_author) && !empty($comment->user_id)) {$user=get_userdata($comment->user_id); $author=$user->user_login;}
return $author;
} add_filter('get_comment_author', 'no_anonymous_members');
if ( !function_exists('get_userdata') ) :
function get_userdata( $user_id ) {
global $wpdb;
$user_id = absint($user_id);
if ( $user_id == 0 )
return false;
$user = wp_cache_get($user_id, 'users');
if ( $user ) {
if (empty($user->display_name)) {$user->display_name=$user->user_login;}
return $user;
}
if ( !$user = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->users WHERE ID = %d LIMIT 1", $user_id)) ) {
return false;
}
_fill_user($user);
if (empty($user->display_name)) {$user->display_name=$user->user_login;}
return $user;
}
endif;
?>
(The real answer of course is to insert the user_login when the comment is posted, however I cannot find a suitable hook in WordPress’s comment-template.php so I am doing it by completely replacing the get_userdata function in pluggable.php)
I guess I can create some code to fix the display name issue in existing databases. Give me a few minutes.
update: actually it’s as simple as this in phpMyAdmin:
UPDATE wp_users SET display_name=user_login WHERE display_name=''
or via a mini-plugin:
<?php
/*
Plugin Name: Fix Anonymous Members
*/
function fix_anonymous() {global $bbdb;
$bbdb->query("UPDATE $bbdb->users SET display_name=user_login WHERE display_name='' ");
} add_action('bb_init','fix_anonymous');
?>
save as _fix-anonymous.php (with leading underscore)
you only need to upload and run bbpress once with it loaded (no activation required) and then delete the plugin or it will slow down bbPress.
I am now writing a WordPress plugin to fix this without having to duplicate all the names in the table which is a horrendous waste of space.
Well we know what causes “anonymous” to show up, it’s because bbPress is not creating the display name for the user when the user registers on the bbPress side and then goes to use WordPress.
The question is, why is this suddenly happening when bbPress is supposed to create it already. This might be a question for Sam – but I hope he can reproduce the problem.
Did you add the above code to insert the display name?
I hope I didn’t lead you wrong by implying you should try 2.6 because that will be incompatible with bbPress 0.9
2.6 has compatibility with bbPress 1.0 alpha but a few plugins won’t work with the alpha yet (like bb-topic-views)
Oh and the display name persists in 1.0 alpha and is on line 487 in pluggable. I’ve filed a trac report:
https://trac.bbpress.org/ticket/922
Are you running WordPress 2.5 or 2.6 ?
I’m betting it’s 2.6 since the cookies are incompatible.
Delete your site’s cookies and you’ll be able to get into WP again.
After installing bbpress I was able to sign in to bbpress with my regular admin info but something has happened with my wordpress backend now that it does say I’m logged in but I cannot get to the admin area. Any suggestions on how I can resolve this issue without completely reinstalling both WP & BP
Hello,
like for WordPress, i think a sitemap generator is interesting for the users who wants a forum good in seo.
someone would have it plans to make a nice sitemap plugin? : p
++
Very nice integration of the theme.
I noticed you are using WordPress 2.6. If someone logs in to WordPress or bbPress, are they logged in on the other (either bbPress or WordPress)? That is the level of integration most people are looking for, in addition to theme integration, and the latest word was that integration with WordPress 2.6 does not work. How did you do it?
You don’t really need a plugin to install Google Analytics in your bbPress forum. Just paste the code from Google Analytics right before the closing </body> tag in your theme’s footer.php. No plugin required. I never understood the need for Analytics plugins for WordPress either. Editing a template file is pretty basic.
I couldn’t tell you, but I am using bbPress 0.9.0.2 and WordPress 2.5.1.
I am going to update to 2.6 and see how it goes…
Just integrated by BBPress install with my WordPress install. Thanks for the help on here too!
http://www.theenglishguy.co.uk/bbpress/
I’ve offered all I can remotely. Can you contact me (find contact details in my profile here) and I can try to help by logging in and looking around?
Thanks
Settings > Reading is, and has been all along, set at:
“Your latest posts”
the page I am no longer able to display, even though I can find no change in any settings.
Thanks for replying,
Sorry, fresh out of ideas after that. I suspect that bbPress needs to be reinstalled after downgrading WordPress, but I don’t know why that failed for you.
Does bbPress need to be ‘reinstalled’ after going backwards to WordPress 2.5.1? Like, if the bbPress installation made changes to the database with WordPress 2.6, then you rolled back to WordPress 2.5.1, you would lose the changes that bbPress made to the wp_users and wp_usermeta table, right? Would you need to reintegrate with the WordPress 2.5.1 database?
If I try and create a new user, I get the error:
Warning: mysql_insert_id(): supplied argument is not a valid MySQL-Link resource in /home/turner/public_html/lifelightcam/bbpress/bb-includes/db-mysql.php on line 180"
I can log into wordpress just fine with my user id and password, but not into bbpress. I checked and the user id does exist in wp_users
Hello 
I presently use a framework called CakePHP for my website. I have an existing users data model etc., that consists of many tables and so forth. It’d be a hassle for my users to have to set up a whole new account.
So, I was wondering if bbPress is by any chance customizable to the extent of database structure and basically the way databases are treated. I guess I’m looking for the most customizable forum script right now.
So can it seamlessly integrate with existing data, besides WordPress?
So, http://www.addiva.net is OK, and later, when people type in http://www.addiva.net you will direct them to http://www.addiva.net/blog/home ?
Sounds like a configuration issue in WordPress. There is an option to choose what is displayed on the front page (Settings > Reading). you can select your latest posts or a static page.
Yes, the default address for the blog’s main page is index.php, and what is shown there is what I described changing above. Check those options and post back if it’s not what you expect to see based on what is configured.