OK, so you can’t use the WordPress user management functions. With MySQL 4.1.* you can use subqueries. Are you comfortable making a database backup, and then are you comfortable with a tool like phpMyAdmin? I ask because I will explain how I would do it to take care of the problem one time. I wouldn’t necessarily call it the best way or the only way, just the way I would do it with things I would check beforehand.
Might as well make a backup of the bbPress database now.
Hopefully, you’ve added the Human Test plugin to prevent spam registrations.
https://bbpress.org/plugins/topic/human-test/
I don’t know of a way to mass moderate users in bbPress. If you’re integrated with WordPress, I believe there is a mass edit for users available there.
If you’re not integrated, I think you need to use some SQL with the database directly. If you need that, please post the MySQL version you are using (since subqueries were added in MySQL 4.1, and the solution would be different if you’re using MySQL prior to 4.1)
I’ve been playing with the SQL to do this, but my MySQL version is 4.0.27, which does not support subqueries.
Hey Ipstenu,
The plugin you suggested seems to work after a wp-bbpress integration! thanks a lot
In my case, I’m forcing registration and login through wp. I tried registration through bbpress before, and I think you run into a lot of problems.
The sanitize_user() function is the same in bbPress as it is in WordPress. Even the filter names are the same. Still, WordPress plugins don’t generally work in bbPress without some modification.
If it is the same function, in my opinion this feature should be in the core of both, wb and bbpress. It has no sense to allow double registrations like “John” and “john”, don’t you think so?
wordpressfan, have you added the line above inside the <?php … ?> tag ? If you have added it at the beginning or the end of the file, then it’s normal if you get header related warnings .
@wordpressfan
I got the same error Warning: cannot yet handle MBCS in html_entity_decode()! in …/bb-includes/wp-functions.php on line 113
I switch from php4 to php5 and it works fine now. I’m hosted on MT GS.
my Wodpress version 2.7
my bbPress version 1.0 Alpha 5
Integrated wordpress. Use wordpress user table.
Example:
User Name : admin then login bbPress.
User Name : hasan then login bbPress.
but
User Name : 123456 then cant login bbpress.
Help me..!
The sanitize_user() function is the same in bbPress as it is in WordPress. Even the filter names are the same. Still, WordPress plugins don’t generally work in bbPress without some modification.
@johnjamesjacoby, I get the exact same problem. I cannot get a role assigned to my users at all! And it’s really frustrating. I create a user in BBPress and no role assigned in WordPress. User created in WordPress and no role assigned in BBPress. I have the exact same problem as you.
I am comparing the two right now to see if I deleted something important. Do you know which php file I should be looking in? I did not integrate the forum with WordPress and am using the latest version of bbPress (I just installed it a few days ago). The only plugins I am using is the Akismet plugin. I guess I must have deleted something although I’m not sure what!
Also, when I register a new user through WordPress as per normal, that user is still not assigned a role in bbPress. Not when they login, not when they hit the forum for the first time. Not ever.
My Steps:
- I used a Chrome browser window to register a new user through WordPress
- Logged in via WordPress
- Hit the forum
- User could not post, looks like has no role
- Logged out via WordPress
- Used FireFox to login as admin to check new user role
- No Role Assigned
- Used Chrome to login through bbPress
- Hit the forum
- User could not post, looks like has no role
- Used Firefox admin to edit Test user
- Received typical error message (noted below)
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /forums/bb-includes/functions.bb-template.php on line 2009
Basically it looks like the exact same error message as before, with the same circumstances.
Round two using alpha 5 trunk from the SVN went exactly the same way, only this time when I logged in via bbPress, the above Warning went away, but that user is still marked as Inactive by default when they should be a Member according to the role map.
When registering through bbPress, the new user still is not assigned a Role on the WordPress side either.
Sam, can you explain to me what was supposed to be different in alpha5? Maybe I misunderstood…
I’m looking at trying this with http://www.theblog.ca/wordpress-case-insensitive-login but … yeah, can we sanitize for bbpress too?
Wow. I wish I had known that a few hours ago.
.htaccess probably just needs to be 0644 permissions (-rw-r–r–). Did you set up permalinks with rewrite rules as described here? bbPress does not write the .htaccess file in the same way that WordPress does (i.e. when you change WordPress permalink settings, it changes or creates the .htaccess file for you, with the proper rules.)
https://bbpress.org/documentation/faq/#pretty-permalinks
Update: it looks like you are installing again? This page gives a 404:
http://www.greenfitnessworld.com/bbpress/
This page shows that installation is not complete:
http://www.greenfitnessworld.com/forum/
Once your installation is complete, you’re going to want to go here to create the rules which you will paste into .htaccess: http://www.greenfitnessworld.com/forum/bb-admin/rewrite-rules.php
@Ipstenu, that’s true. But integration working or not doesn’t have any bearing on whether or not the date in the RSS feed is incorrectly formatted, does it?
WordPress themes are more closely related to bbPress themes. phpBB themes use a completely different system.
chrishajer is right. Anyway, if you want to restrict registrations on both WordPress and bbPress you need to disable new registrations on each on them since at the moment their is no option to do both at once.
You’re on bbPress stable, which isn’t capable of sharing cookies with WordPress 2.7. If you want, you can install the alpha version of bbPress, but it’s not really a good idea on a production site…
Hi,
I’ve read a bunch on the boards and tried to follow all the steps I could find, but nothing seems to have any effect. WordPress is installed in the root of http://www.tiltmonster.com. bbPress is installed in http://www.tiltmonster.com/forums.
The databases are currently integrated, so that much is good. But if you login at the forums, you are not logged in at the main site, and vice versa. I added these lines to bb-config.php:
$bb->wp_table_prefix = ‘wp_’;
$bb->wp_home = ‘www.tiltmonster.com’;
$bb->wp_siteurl = ‘www.tiltmonster.com’;
$bb->usercookie = ‘wordpressuser_1726d05b40cf2f851e025f1a862c21fa’;
$bb->passcookie = ‘wordpresspass_1726d05b40cf2f851e025f1a862c21fa’;
$bb->cookiedomain = ‘www.tiltmonster.com’;
$bb->cookiepath = ‘/’;
When I check the cookies after logging in from the forums, the value for the MD5 hash is different than above. Also, the domain shows as .www.tiltmonster.com, with that period before the www.
One thing of note: there was no secret key listed in my wp-config.php file, so I generated one and inserted it, then copied that value to bb-config.php. Could that be where I went wrong?
Thank you.
thanks sam. i’m able now to change user roles in bbpress which is great.
had to manually change user roles in wordpress from “none” to actual roles but everything else seems to be going smoothly.
changing a user’s role in bbpress doesn’t seem to effect the wordpress roles nor vise versa, (though i’m not sure this is expected yet).
also had to define the BB_NONCE_KEY to make logout work correctly (logged in via bbpress, logout via wordpress) and once it was defined it worked as expected.
either way, this is a great start. thanks again.
Would it be easier to convert a WordPress theme into a bbPress theme?
If you guys where in my shoes… which one would you pick for a windows technical support forum?
You need to use the Alpha build if you’re trying to integrate between WP 2.7 and BB.
I’m already familiar with writing plugins for WordPress but now I’m interested in writing a few plugins for bbPress. I’m trying to find a list of hooks/actions so I can get a better feel for what I have control over without altering the core files. Does such a thing exist? If not which php files should I be going through to find hooks/actions or are they all in different files?
Cheers
ok, this problem is now back, after I updated to wp 2.7 and bbpress 0.9.0.3.
now my feed doesn’t validate because of the date:
Sorry
This feed does not validate.
*
line 18, column 39: pubDate must be an RFC-822 date-time: Fr, 02 Jan 2009 10:57:20 +0000 (35 occurrences) [help]
<pubDate>Fr, 02 Jan 2009 10:57:20 +0000</pubDate></blockqoute>
and the rss widget doesn’t update again with new forum postings.
I’m already familiar with writing plugins for WordPress but now I’m interested in writing a few plugins for bbPress. I’m trying to find a list of hooks/actions so I can get a better feel for what I have control over without altering the core files. Does such a thing exist? If not which php files should I be going through to find hooks/actions or are they all in different files?
Cheers