Correct me if I am wrong but the “theme editor” in WordPress is simply a remote file editor for templates. Doesn’t do anything special other than let you edit a file directly on your server without having to use FTP (or shell).
While it seems handy, if I am not mistaken it also requires you to chmod 777 your theme folder which is very dangerous on a shared server.
I suppose bbPress will get the feature eventually because it’s so very simple. I would guess it could be ported from the WordPress code in probably an hour.
Okay, I think I got it working.
I was able to fix the redirection issue by modifying the get_user_profile_link() function in the template-functions.php. I added the following line towards the end of the function, right before the last line of code in the function:
$r = str_replace('forums/profile/' . $user->$column , "profile/" . $user->$column, $r);
This is the full code:
function get_user_profile_link( $id = 0, $page = 1 ) {
$user = bb_get_user( bb_get_user_id( $id ) );
$rewrite = bb_get_option( 'mod_rewrite' );
if ( $rewrite ) {
if ( $rewrite === 'slugs' ) {
$column = 'user_nicename';
} else {
$column = 'ID';
}
$r = bb_get_option('uri') . "profile/" . $user->$column . ( 1 < $page ? "/page/$page" : '' );
} else {
$r = bb_get_option('uri') . "profile.php?id=$user->ID" . ( 1 < $page ? "&page=$page" : '' );
}
$r = str_replace('forums/profile/' . $user->$column , "profile/" . $user->$column, $r);
return apply_filters( 'get_user_profile_link', $r, $user->ID );
}
I noticed that if you did not install bbPress with WordPress cookie integration, then this hack will cause bbPress to always think you are logged out. I think it has something with it not being able to retrieve the cookie because of the path change.
However, if you have WordPress cookie integration enabled, then everything seems to work. Not exactly sure why. But I think it must be something to with the path that’s being set in the cookie.
If you have a WP profile (like the author archive or some other profile) you can redirect the bbPress profile using this hook:
//add_action('bb_init', 'profile_redirect');
function profile_redirect() {
if (is_bb_profile() && $_GET['tab'] != 'edit' && $_GET['tab'] != 'favorites') {
$user = bb_get_user($_GET['id']);
if ($user) wp_redirect("http://www.example.com/member/" . $user->user_nicename);
}
}
I did this using this plugin for WordPress profiles, so even users who don’t have published posts have a profile. It works but you miss the profile edit messages (like “your profile has been updated”).
Hi, i have a plugin that will support this soon 
The plugin is named Gaming Codes. It’s for WP, but i have a stripped down version for bbPress. I’ll post it here soon.
I think bbpress should have a theme editor like wordpress.
The code he pasted, above, is missing the <?php … ?> tags, so I’m also getting compiler errors.
Perhaps this idea of a single profile page for both WordPress and bbPress will be part of the recently accounted backPress.
It would great to have a profile link such as:
http://www.example.com/member/username
that works for both WordPress and bbPress. Instead of separate ones at:
http://www.example.com/forums/profile/username
or
`http://www.example.com/author/username
Is there a version 1.0 development plan anywhere? I’m curious what new features we’ll be seeing in bbPress.
Additionally, are there plans to update the web site design (like wordpress.org) and add a Codex?
That “future of bbpress” announcement in January was very exciting, but it doesn’t seem like much as happen since then. Other than the WP 2.5 integration of course, which is great don’t get me wrong.
I’m having a problem with a fresh install of 0.9.0.2. After last step of installation…
Referrer is OK, beginning installation…
>>> Setting up custom user table constants
Step 1 - Creating database tables
>>> Create table bb_forums
>>> Create table bb_posts
>>> Create table bb_topics
>>> Create table bb_topicmeta
>>> Create table bb_tags
>>> Create table bb_tagged
>>> Added index wp_users UNIQUE KEY user_nicename (user_nicename)
>>>
>>>>>> Duplicate key name 'user_nicename'
Step 2 - WordPress integration (optional)
>>> WordPress address (URL): MYURL
>>> Blog address (URL): MYURL
>>> WordPress cookie secret key set.
>>> WordPress database secret set.
>>> User database table prefix: wp_
Step 3 - Site settings
>>> Site name: MYSITENAME
>>> Site address (URL): MYURL
>>> From email address: MYEMAIL
>>> Key master role assigned to existing user
>>>>>> Username: admin
>>>>>> Email address: MYEMAIL
>>>>>> Password: Your existing password
>>> Description: Just another bbPress community
>>> Forum could not be created!
>>> Key master email sent
There were some errors encountered during installation!
I should note that I assigned the key master as my admin user in WordPress. When I go to my forum I receive the following error….
Parse error: syntax error, unexpected T_STRING in /MYPATH/bb-config.php on line 22
I just installed bbpress on my site with a username “jen”. After it was installed, I went into the settings and integrated it with my wordpress user database. However, now I cannot log in — “jen” no longer exists and my “admin” wordpress user doesn’t exist either. What did I do wrong and how can I log back in?
Thanks.
I’m having this same problem. Fresh installation using version 0.9.0.2.
Referrer is OK, beginning installation…
>>> Setting up custom user table constants
Step 1 - Creating database tables
>>> Create table bb_forums
>>> Create table bb_posts
>>> Create table bb_topics
>>> Create table bb_topicmeta
>>> Create table bb_tags
>>> Create table bb_tagged
>>> Added index wp_users UNIQUE KEY user_nicename (user_nicename)
>>>
>>>>>> Duplicate key name 'user_nicename'
Step 2 - WordPress integration (optional)
>>> WordPress address (URL): MYURL
>>> Blog address (URL): MYURL
>>> WordPress cookie secret key set.
>>> WordPress database secret set.
>>> User database table prefix: wp_
Step 3 - Site settings
>>> Site name: MYSITENAME
>>> Site address (URL): MYURL
>>> From email address: MYEMAIL
>>> Key master role assigned to existing user
>>>>>> Username: admin
>>>>>> Email address: MYEMAIL
>>>>>> Password: Your existing password
>>> Description: Just another bbPress community
>>> Forum could not be created!
>>> Key master email sent
There were some errors encountered during installation!
I should note that I assigned the key master as my admin user in WordPress. When I go to my forum I receive the following error….
Parse error: syntax error, unexpected T_STRING in /MYPATH/bb-config.php on line 22
Just found out:
My problem was even simpler:
I instaled MD5 Insecurity and Mouldy Old Cookies on folder bb-plugins when I should had install it on folder my-plugins.
I change them to the new folder, delete again the line
$bb->cookiepath = ‘./wordpress’;
on bb-config.php
And it is still working.
I was having the exact same problem, but with normal WP (not WPMU).
My problem was that I instaled wp and bbPress both in subfolders, like:
http://www.mysite.com/wordpress
http://www.mysite.com/bbpress
The problem was on cookies, since bbPress was creating them on root and wordpress both on root and on ./wordpress – but it seems that the ‘good cookie’ was the one on ./wordpress.
The ideal solution would be to set WP to use cookies only on root, but I wasn’t able to do it in a simple way. So I configured bbPress to set cookies on ./wordpress.
This was done by simply adding a line to bb-config.php:
$bb->cookiepath = ‘./wordpress’;
Now it seems that all is working fine.
Hope it helps you too
It made sense to me, but I didn’t think it would be happening any time soon. Since WordPress just got this functionality in 2.5, I figured it would be a while until bbPress got it since it’s not quite to version 1 right now. The projects they took on for the Google Summer of Code were related to import/export, not anything like this, that I know of.
https://codex.wordpress.org/GSoC2008#Web_Forums_Export.2FImport_Standard_and_Tools
@ mykes
What version of WordPressMU?
I’m not sure that the latest version is compatible with bbPress yet. The recent Release Candiadte is though.
Chris, you have a point. However the URL structure of forums and topics always begin with “forum” or “topic”. As in:
http://www.example.com/bbpress/forum/pets-discussions/
http://www.example.com/bbpress/topic/my-sweet-dog
So it would seem that it should be possible to remove the “bbpress” from the URL without interfering with a WordPress installation.
Having said that, I think the solution proposed in the thread I referred to in my last post (https://bbpress.org/forums/topic/nicer-slug-url-rewrite-plugin-done) is a much more elegant solution for shortening the bbPress URLs.
It could work like that I think if there were no website (like WordPress) in the www root. Otherwise, how does the server know it’s a bbPress page vs. a WordPress page?
If you are running a forum only on a domain, then it would be silly to have it in any sort of directory at all. Otherwise, if you have a website in the root, you have to put bbPress into some sort of directory to prevent confusion.
wp_validate_auth_cookie has an error. When hashing for the key
$key = wp_hash($username . $expiration);
WordPress and BBPress do it differently thus nullifying the ability to integrate the cookies of the two.
The problem is that this in bbpress pluggable.php:
$key = wp_hash($username .’|’. $expiration);
should be this:
$key = wp_hash($username . $expiration);
There are a few other places where this needs to be fixed too
I login on my WordPress 2.5 site. Then I go to the BBPress 0.9.1 install which was installed second and setup to be integrated with WP. When I hit BBPress, I have to login again.
On WordPress, the plugin area it will show:
There is a new version of “PLUGIN” available. Download version X.X here or upgrade automatically.
when there is an upgrade.
Can someone make that for BBPress?
This code works fantastic! Thanks
Now I have a new problem. When I make a comment on a post in WordPress it will change all my other previous comments to the same user and comment as demonstrated here:
http://www.fawked.net/2007/12/29/wannabe-rappers/
Everything in bbpress is working fine for now, it shows the correct comments.