Fields can be added via plugins but I don’t believe there is any general plugin available to do that yet on an easy basis like WordPress.
Well some are far easier than others.
First look for $wpdb and change to $bbdb
Then you have look at things like get_option
and other functions and see if they can easily use the bb_get_option
or other bb_
version of the function.
But even if the alternative function exists you have to be sure that it’s doing what you want. Things that relate to users are similar but things that relate to posts have to be change to topics and then there is comments vs posts.
The problem is definitely the lack of a WordPress table prefix.
The path of least resistance is to rename the WordPress tables adding a prefix, and change your configs to reflect the new table names.
Unlike WordPress I don’t believe bbPress has an easy way to do role management (yet). There is a privilege built-in for bb_current_user_can( 'write_topics' )
which means it is technically possible to control who can start topics by taking away that role privilege from the “member” role.
In theory a small plugin should be able to do this – I’ll take a look at how it might be done as an exercise in learning more about bbPress roles…
Just set up the “user role map” in the “WordPress integration” section of the bbPress admin area.
It seems fixed now but almost sounds like you are running separate user tables when they should both be pointing to the user table in WordPress? Are you certain you have the correct setup in bbPress pointing to WordPress?
And I assume that’s WP 2.5 with bbPress 0.9?
ps. be sure to check out the alternative Kakumei Blue theme (in bbPress 0.9) to match your WP’s blue colors…
Sounds interesting but:
Fatal error: Call to undefined function: bb_option() in wp-content/plugins/bbpress-admin/bbpress-options-admin.php on line 38
Is this for people who has bbPress running INSIDE WordPress, instead of just stand-alone integration?
I’d like to see bbPress replace commenting in Word Press. Ideally it would just embed as a plugin and look the same as the current commenting but then the comments could be viewed and managed as a forum.
If bbPress was designed to easily embed as a commenting system it wouldn’t have to just be used in WordPress either. I’m currently trying to implement something along these lines where bbPress functions as the comment system on a website so people can comment on our short films through the forum or directly on the website. Each comic/film/whatever will be tied to a separate topic ID and pull related comments. Hopefully it works because I like the way it looks in my head.
WordPress is thinking this forum page does not exist., so WordPress throws the 404 but the page is still properly served. It happens only because you’ve included blog-header.php (a normal integrated installation wouldn’t do this).
I think this post covers it (basically, install a WordPress plugin to overcome the problem):
https://bbpress.org/forums/topic/bbpress-wordpress-mu-or-not-leads-to-404-errors-but-pages-still-load#post-13156
to better illustrate my issue, my current code for the profile page is:
if ( avatarupload_get_avatar(ID) ) {
avatarupload_display($user->ID);
} else {
echo bb_get_avatar( $user->ID );
}
which means if uploaded avatar exists then display it, else get gravatar.
but what i really want is:
if uploaded avatar exists then display it, else if gravatar exists then display that, but if neither exists then display the avatar upload default avatar.
Right now it displays gravatar default instead. which isn’t my first choice since avatar upload would give me control over the default image which is better for obvious reasons.
1. Use the same database if you want to integrate registrations.
2. Yes. Call the folder whatever you want.
3. Not sure. There was a post here at one point that mentioned directing all the registrations through WordPress since the registration plugins were more robust, but I can’t find it now.
OK, so it looks like the plugin version 0.8.3 still works in bbPress 0.9.1 – though I have not yet put it through heavy testing. I found the install directions left a little to be desired so I added more detailed directions below.
However… I still have a question. Some of my users have adopted Gravatars since WP 2.5 was released. The plugin currently does not seem to check for gravatar existence, let alone provide some sort of control over precedence of different sourced avatars.
The installation instructions DO provide you with the function to call to see if a plug-in uploaded/created avatar exists. However, in order to get the precedence working the way I’d like, I need to know how to test for a Gravatar existence as well. Any ideas? Thanks in advance.
Any ideas?
Install instructions:
1. Download Plugin here:
https://bbpress.org/plugins/topic/avatar-upload/
Version 0.8.3 is current at time of this writing.
2. Create the following two folders in your bbpress install:
/my-plugins
/avatars
3. follow instructions (specifically, step 5) in the readme file which tells you where to copy files. Some files in the zip aren’t mentioned (such as indenticon.php). I put those into my-plugins and so far, so good.
4. Activate plugin.
I followed this
bbPress will not have access to WordPress’ functions unless you manually tell bbPress to load WordPress first. In order to do that, you need to put require_once(‘path/to/wp-blog-header.php’); in bbPress’ bb-config.php (wp-blog-header is in the same directory as WordPress’ wp-config.php file).
and it looks like this
require_once( dirname(__FILE__) . ‘/wp-config.php’);
this is located in http://domain.com
my bbpress is on http://forums.domain.com and I am using Cpanel
I used to run a blog using blogger called veryserious.org that had various contributors. I wanted a forum, so I used bbpress and set up board.veryserious.org. I liked the interface and having more control etc, so I switched from blogger to wordpress.
Then, I tried to integrate wp and bbpress. It worked okay, but what I think happened was that user numbers from WP were used to assign posts and info to users on BBpress. If you see from this thread:
http://board.veryserious.org/topic.php?id=34
There is a post (2nd post on page) from a girl named Phoebe, but the post is attributed to Jake. Can I reassign posts, or should I just erase all the posts and start over?
I have created a wordpress plugin that moves most used bb admin tab functionality to the wordpress admin section.
the plugin is available here
http://wordpress.org/extend/plugins/bbpress-admin/
any feedback will be appreciated..
cheers
I just set up two new accounts… testuser1 and testuser2.
As testuser1, I posted a new topic.
As Keymaster, I was unable to delete testuser1’s post. Before logging off as Keymaster, I made testuser2 a Moderator.
Logging in as testuser2, I was able to delete testuser1’s post.
I’m running v0.8.3 with WordPress 2.3.3. I am not in a position to upgrade to bb 0.9.01 or WP 2.5 yet, since our forum and website are very active right now.
So… why can’t the Keymaster delete a post?
I’m not sure that it’s the “fault” of bbpress, but i just successfully set up
an installation and integrated the user db with my wordpress install.
However, now I find that I can’t get into my admin page for wordpress.
I get the error:
“You do not have sufficient permissions to access this page.”
With my admin username. Same with any other username I have. I can log in, but I don’t have the right access.
I can however get into the bbpress admin page.
I have access to phpMyAdmin and checked out the db. In the usermeta table I have this entry for my admin user:
wp_capabilities a:1:{s:13:”administrator”;b:1;}
Which looks right to me.
Any suggestions would be greatly appriciated.
The Avatar Upload plugin is fairly well developed and I believe there is a hack to show them on the WordPress side as well. It does take a little bit of time to setup though.
Thanks for the reply. I added the line you suggested:
$wp_table_prefix = ‘wp_’;
I put this right after:
$bb_table_prefix = ‘bb_’;
But now I get the following error when logging in. It seems to me that there must be something in the config file or in a table that tells BBPress to use the WordPress usesrs table? I tried deleting the bb-users table whihc didn’t help.
bbPress database error: [Table ‘webdeadm_main.bb_users’ doesn’t exist]
SELECT ID FROM bb_users WHERE user_login = ‘admin’
bbPress database error: [Table ‘webdeadm_main.bb_users’ doesn’t exist]
SELECT * FROM bb_users WHERE user_login = ‘admin’
Was your bbpress setup before you installed WordPress?
Or did WordPress exist before bbPress? If you had bbPress first, the userbase is actually inside bbPress and not WordPress. It needs to be moved to WordPress (or some different settings in WordPress to use the user db in bbPress). I call that “reverse integration”.
But I’m missing a detail here – did you have working integration with WordPress+bbPress before you upgraded both to latest?
This might be an issue with the two parts of the “secret key” not being setup/synced properly between the two.
I think this is a similar problem posted here (that was never answered)
https://bbpress.org/forums/topic/bbpress-09-released#post-14973
Hey there,
my problem/question might be funny, but I just don’t get it. Just upgraded bbpress to 0.9.1 and set it up to be integrated with wordpress 2.5 (they both share the same DB).
in the bbpress config, i have the WP_ prefix set and everything seems to sync well.
But now all posts in the bbpress forums done by users that registered at the bbpress forums are signed as “Anonymous” and all these users are neither listed in the bbpress nor in the worspress admin.
To test, i removed the WP_prefix from the bbpress config, then these users are back, but for sure this is not the idea since i’d like to integrate both things.
Am I getting this all wrong, or is there any way to “import” the bbpress users into WP or something (without manually editing the database)?
Thanks!
Christophe
Yep, site is down…. not encouraging.
Wow, as I read your description of the problem initially I thought to myself, “sounds like a caching issue”.
A good note for the future. I assume you are loading WordPress inside bbPress then?
If bbPress and WordPress are in the same database then hopefully all you should have to do is add this line to your bb-config.php after the database definitions:
$wp_table_prefix = 'wp_';