755833Inactive
Sorry, didn’t see you post there _ck_. I appreciate the work and effort you guys are putting into things. I’ve used bbPress successfully in the past… see http://www.foronemoreday.co.uk/ which runs a bbPress backend.
Also I’ll take another look at my integration settings but i’ve been through it a lot already trying to get it to work today.
Cheers again!
KJ
Oh and “separate wp database”. Does this mean you decided NOT to install bbPress’s tables into the same db as WordPress but a whole new mysql db? I’m not even sure the automated integration can handle that.
755833Inactive
Well I fixed it, if anyone (incl. developers) are interested. Unfortunately it requires modifying a line of core application code…
pluggable.php in bb-includes
Line 502
$bbdb->insert( $bbdb->users,
compact( ‘user_login’, ‘user_pass’, ‘user_nicename’, ‘user_email’, ‘user_url’, ‘user_registered’ )
);
Replace with
// bbPress / WordPress bug fix added display name to wordpress
$display_name = $user_login;
$bbdb->insert( $bbdb->users,
compact( ‘user_login’, ‘user_pass’, ‘user_nicename’, ‘user_email’, ‘user_url’, ‘user_registered’, ‘display_name’ )
);
It’s really confusing me why suddenly there are so many people having trouble integrating bbPress 0.9 with WordPress 2.5
You aren’t trying to do what I call “reverse integration” are you – where you install bbPress first and THEN install WordPress? That can only lead to lots of problems (and tears).
Anyway, the automated integration process should pretty solid, except the part where you have to copy the secret key manually (which I strongly disagree with but that’s the way Sam wants to do it).
I think I need to install a fresh copy of 2.5 and try integrating 0.9 to see what all these issues are.
If you are getting anonymous users, I suspect you haven’t setup integration properly and they are not sharing the same user table.
As far as your other observations (and I felt he same way in the beginning too) you have to realize that (easy) integration was only a priority starting with 0.9
(you can see how complicated the process used to be under 0.8 here – note most of that is not needed now)
Until 0.9, bbPress was just something that ran wordpress.org for Matt and there was no attitude to make integration work. There were tons of problems with usernames etc. and all integration had to be done manually with lots of plugins to fix things.
Then attitudes changed when Matt got funding and decided to use the bbPress code to power TalkPress (essentially forums for users on WordPress.com) Sam and MDA have done a great deal of work to make integration work better but it definitely has a way to go (and should become painless and super-easy IMHO).
So 0.9 has made integration easier but keep in mind bbPress is not even 1.0 yet, so officially it’s not even a released product. The radical cookie changes in 2.6 will take awhile for bbPress to catchup, it’s always been that way.
ps. if it’s not obvious, I am in no way officially associated with Automattic/WordPress/bbPress. Just a plugin developer. And I am not paid. My opinions are definitely just my own and not any kind of official statement.
Malfhok, you’ll notice that you cannot stay logged into both sides of WordPress and bbPress if you use the admin area. The cookies have completely changed on the WordPress side.
755833Inactive
From what I can tell the anonymous issue is because users that register through bbPress get added to the wp_users table but the display_name field is left empty. Where do I change the query to put the user_nicename into the display_name on registration, like WordPress does? I’m not sure why bbPress doesn’t do this automatically.
755833Inactive
I’m not meaning to be rude or anything but I’m struggling to understand why two bits of software made by the same company are so hard to integrate? I’ve never managed to get integration working fully and I always get to the point where users who registered through the forum post on the WordPress blog show up as Anonymous… which basically renders the whole process pointless. I’ve managed to get WordPress and vBulletin to integrate seamlessly, but not bbPress.
bbPress and WordPress are both great pieces of software in their own right, but when it comes to integration with each other they are pretty weak. For example, the new bbPress isn’t compatible with WordPress 2.6 because of an issue with cookie management in WordPress… for the integration to work we now have to wait for bbPress to release an update which according to a moderator on here will be a while away.
There are also so many unsolved integration threads here that it’s very difficult to find any one collection of possible solutions. I appreciate the amount of work that goes into this kind of software and time required to provide support. I’m just feeling a bit frustrated
755833Inactive
I too would like a solution to this. There is a plugin available to do this but it doesn’t work on wordpress 2.5.1. I think I may just have to hack the bbPress registraton queries.
I have a WP 2.6 install that works perfectly with the 0.9 bbPress branch. Unless there are some specific problems that I haven’t experienced yet.
755628Inactive
Hi.
This is an extension of this question: http://bbpress.org/forums/topic/hiding-subforums-on-the-homepage#post-11761
My forum has forums, subforums, and then subforums of those subforums. Basically, there are three levels of forums.
I was able to hide the subforums from the main forums page. But how do i hide the subforums’ subforums from the subforums pages, so that the visitor must click on the subforum to view the subforums’ subforums.
I would really appreciate any help on this matter. I am not good at coding so it would be wonderful to get assistance!
Think I will stay with 2.5.1 for the time being. Thanks
Of course you can do it, bbPress can do almost anything – as long as you code it 
Showing the gravatar is the easy part, the code to fetch the latest poster and their email address is the tricky part. How’s your mysql?
Showing a gravatar for any email address is as simple as:
<img src="<?php echo "http://www.gravatar.com/avatar.php?gravatar_id=".md5($user->user_email); ?>" >
The mysql code for the email of the last poster is going to need a left join of the users table against the post table and more than I am willing to do right now. I suppose I could be lazy and use get_latest_posts(1, 1)
to fetch the entire info the last post and grab the email address from there.
753861Inactive
Hello all,
I have downloaded and installed the plug-in “Required Fields In bbPress” and that works great but how can I create a text area, or drop down list instead of a input? Any ideas ?
Thanks
724719Inactive
whats the link i want to add mine in : http://www.picbi.com/forum
?
EDIT: CK do you know how to resolve this issue :-
https://bbpress.org/forums/topic/show-gravatar-on-frontpage
Oh darn I completely missed this one.
Well the projects that made it as finalists are much bigger, so maybe next year.
http://sourceforge.net/community/index.php/landing-pages/cca08/
ps. did you know Sourceforge uses bbPress for it’s forums?
bbPress functions with the word “get” in them do not self-echo, they simply return the string. So you have to add echo. You almost have it, for example, this should work:
<a href="<?php echo bb_get_profile_link(); ?>">My Profile</a>
And just to confuse you, there are a couple of legacy functions with the word “get” in them that do echo. But they shouldn’t and are rare so don’t worry too much, lol.
Well login integration is not as important as the register part. As far as your instructions, I wouldn’t recommend deleting the contents of a core file but the redirect part is okay.
It occurs to me, it’s actually possible to redirect the register page in bbpress to the wordpress side via plugin with no edits required anywhere.
Remember that bbPress registration process should catch up to the WordPress side eventually. In fact I like it’s layout better but WordPress’s is more mature code-wise.
Sorry for the tangent _ck_ but… you really recommend redirecting all logins to WP, too? As in, this silly thing I just posted about “unifying” registration on the WP side?
Yes, this is why I always recommend to people when integrating with WordPress that they redirect all login and registration links to the wordpress side. It’s had years of development in that area.
In any case, here is a simple plugin to prevent duplicate email addresses. Unfortunately bbPress has no way to place custom error messages on the page without template hacking but this should do:
<?php
/*
Plugin Name: no duplicate email addresses
Author: _ck_
*/
if ($_POST && bb_get_location()=="register-page") {add_filter('bb_verify_email','no_duplicate_email');}
function no_duplicate_email($email) {
if ($email) {global $bbdb; if (!$bbdb->get_row($bbdb->prepare("SELECT * FROM $bbdb->users WHERE user_email = %s", $email))) {return $email;}
else {add_action('bb_foot','no_duplicate_email_alert'); return false;}}
}
function no_duplicate_email_alert() {echo "<scr"."ipt>alert('".__("email address already registered")."');</script>";}
?>
(bbPress 0.9 or higher required)
(Subtitle: how to use registration protection/filtering in WP for bbPress – the lazy but effective way!)
Say: you’re a PHP newbie (like me), want to run bbPress and WP, and have successfully completed the installation of the plugin to integrate the bbPress user database with WP’s (whew!) and then you discover that people can register via either the bbPress or WP . Suppose furthermore that you’re getting hammered by nasty bots registering themselves, and have an open self-registration policy on your WP blog/CMS, and therefore installed a nifty registration screening plugin (oh say, WP-reCAPTCHA) and would like to use that for bbPress.
How could you do that? With two simple edits you can:
1) Open the register.php file of bbPress (in bbPress’ root directory) and delete EVERYTHING in it, and save your cleaned-out register.php file back to its place on the server (saving an empty file is to avoid a possible “file not found” error after the next step)
2) Open (or create if you don’t have it – which would be rare) a .htaccess file in the web server’s root directory and add the following single line (it’s displayed here on two lines, but really ought to be a single line!), and put that at/near the top of your .htaccess file (assuming your bbPress install sits in the /forum sub directory; else, modify accordingly to point to the register.php file):
Redirect permanent /forum/register.php http://www.example.com/wp-login.php?action=register
Make sure you substitute “example.com” with your own domain (of course).
3) This step is non-existent. Instead, enjoy your newfound unified registration bliss for dummies!
I would back up your database first, just to be sure.
If you delete all the files, nothing happens to WordPress.
If you delete all the bb_ tables, that does not affect WordPress.
I’m not sure how you get rid of the bb users from the wp_users table. But once you delete all the bb_ tables from the database, you should verify that you can log in to WordPress admin fine. You might want to manually delete the bb users from the wp_users table, but you’d have to be careful if they created any content in WordPress that would be keyed to their id.
I think this covers integration:
https://bbpress.org/documentation/integration-with-wordpress/
You cannot use WordPress 2.6 with bbPress 0.9
There are major cookie changes in 2.6.
It’s going to be awhile before there is a version of bbPress that will work with 2.6, so stick with 2.5.1
From what I am being told, it’s going to be awhile before an official release of bbPress will work with with WP 2.6 because of the radical cookie changes. Most certainly not the 0.9 branch.
There is a version of bbPress in the trunk that supposedly will work with WP 2.6 but that is definitely not recommended for the average user.
Stick with 2.5.1