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.
I administer a phpbb forum that we are considering migrating to new software. As I’m pretty familiar with WordPress I thought this might be a good option, but I wanted to double check and ask a couple questions:
1) Can bbPress import my phpbb database? What info am I liable to lose?
2) My forum has a public section, a private section, and a superprivate section for admins and such. Does bbpress support this sort of thing? We govern who can go where with groups and permissions in phpbb, but I’m concerned that it wouldn’t translate.
Thanks!
It only affects posts made afterwards, not existing posts but some easy php/mysql code could fix existing posts.
But I could have sworn this was fixed in bbPress 0.9 with the WordPress Integration section built in. It should give the users a WordPress role and display name. Actually, WordPress should create the display name itself if it sees a user name without a display name. I wonder if this is a WP 2.6 issue which should not be used with bbPress 0.9
The themes section on WordPress.org is brand new and replaced the defunct one on WordPress.net bbPress.org will eventually get the look and layout that WordPress.org has, it just might take awhile as there is no one to work on it while bbPress is being developed.
A few sites have tried to do the “collections” idea but they have come and gone. I pretty much try to do what you are asking for on http://bbShowcase.org and of course right on this forum are lots of tips and tricks
Well each forum matrix is maintained by someone from each project. I recently had MDA update the settings for bbPress but there are still some things that are incorrect due to the limitations on that website (for example “plugin” is not an option on some settings).
In other related news, Wikipedia decided to delete the page on bbPress last week which really upset me:
http://ckon.wordpress.com/2008/08/08/wikipedia-overlords-delete-bbpress-page/
Virtually every other forum software is on there, so I don’t know why they felt that was necessary:
http://en.wikipedia.org/wiki/Category:Internet_forum_software
Hello everyone 
It’s not directly related to bbPress script, but somewhere around it. What do you think about making something like Weblog Tools Collection, but for bbPress? You know – the newest themes and plugins for bbPress, tips, tricks etc?
I was also thinking about something like: http://wordpress.org/extend/ideas/ – so people could submit their ideas for new plugins etc. And something like http://wordpress.org/extend/themes/ – even if I would like to submit some themes for bbPress, I don’t have a site to do this
.
What do you think?
Thanks so much for the reply.
What I get at http://www.addiva.net is fine and what I expect. What I get at http://www.addiva.net/blog/home is the same and, once we get our htaccess file set up, will be what you get when you type in http://www.addiva.net. What we can no longer call up is the first page of the blog, the one that displays one or more recent posts, you know, the index for the actual blog section.
I don’t know of any way to call it up in the control panel to check on what the permalink is supposed to be. What’s the default address for the blog’s main page supposed to be? Isn’t it supposed to be http://www.addiva.net/blog/index.php? If I type that in I just get the main page of the site. .
As I said before, it was all working fine until I made an initial attempt to integrate our new bbpress installation with wordperss, didn’t get it to work and tried to backtrack what I’d done to try again another day. I’m trying to figure out what files might have been affected during this process.