Search Results for '"wordpress'
-
Search Results
-
See the release announcement.
Topic: WordPress Integration
I am trying to make my wordpress blog integrate with bbpress but I think their might be a problem. I have two wordpress blogs in my webserver so maybe bbpress dont know with table to look.
This is if I log in first in bbpress without login in the blog
bbPress database error: [Table ‘libreexp_bbpress.wp_users’ doesn’t exist]
SELECT * FROM wp_users WHERE user_login = ‘admin’ AND SUBSTRING_INDEX( user_pass, ‘—‘, 1 ) = ‘fb756366af4998835a845e97addc3a3b’
bbPress database error: [Table ‘libreexp_bbpress.wp_users’ doesn’t exist]
SELECT * FROM wp_users WHERE user_login = ‘admin’
Log in Failed
This is if I log in to the blog first and then go to the bbpress
bbPress database error: [Table ‘libreexp_bbpress.wp_users’ doesn’t exist]
SELECT * FROM wp_users WHERE user_login = ‘admin’ AND MD5( user_pass ) = ‘d465d8c05bbf7c921e1fad84d4358e44’
bbPress database error: [Table ‘libreexp_bbpress.wp_users’ doesn’t exist]
SELECT * FROM wp_users WHERE user_login = ‘admin’ AND MD5( user_pass ) = ‘d465d8c05bbf7c921e1fad84d4358e44’
This is my conf file
// The rest is only useful if you are integrating bbPress with WordPress.
// If you’re not, just leave it as it is.
$bb->wp_table_prefix = ‘wp_’; // WordPress table prefix. Example: ‘wp_’;
$bb->wp_home = ‘http://macuserboricua.com’; // WordPress – Options->General: Blog address (URL) // Example: ‘http://example.com’
$bb->wp_siteurl = ‘http://macuserboricua.com’; // WordPress – Options->General: WordPress address (URL) // Example: ‘http://example.com’
Help please I would love to mac this two work together
I installed this cool forum but doesn’t look like it’s actually part of wordpress and I am stuck on a few thing, I hope you can help.
Where it says “$bb->wp_table_prefix” – where do I find the prefix?
$bb->wp_home & $bb->wp_siteurl – that is just my site url only, nothing more – http://www.blah.com
Once I do the above how to I make the forum part of wordpress, will it automtically look like this forum?
I have setup a WordPress blog and a bbPress forum, installed setCookie plugin to WordPress and added $bb->usercookie, $bb->passcookies, $bb->cookiedomain and $bb->cookiepath preferences correctly (I assume) to config.php of the bbPress intallation.
Logging in and out works great, I can login from either WordPress or bbPress and it would login to both sites. But once I login, I cannot do any administrative changes (delete/modify posts) or even go to /bb-admin. Trying to delete a post will give me an error saying I don’t have enough priviliges, and going to bb-admin will just redirect me to homepage. (And my user level is key-master.)
But once I comment out the cookie info from the configuration file, it works as it’s supposed to.
Any ideas how I can fix this?
I don’t know if this is a bug or if it is working as intended, but I figured I’d document it.
Explanation of bbpress registration/login
When a user registers in bbpress the user_login field in the database is case sensitive. If you register with the name Tom, Tom is put in the database. When a user logs in however, it is not case sensitive. So Tom can log in as tom, TOM, tOM, ToM… you get the point. Now this doesn’t seem like it would pose any problems. But…
Explanation of WPMU registration/login
WordPress MU and I’d guess WordPress do things differently. You may run into problems with an integrated site because of this ‘bug’. When a user registers through WPMU the user_login field in the database is converted to all lowercase. If you register with the name Joe, joe is put in the database. This is different from how bbpress does things. So if Bob registers through bbpress with a capital in his login the user_login is set to Bob, but in WPMU if Bob registers with a capital in his login the user_login is set to bob. Just like bbpress, WPMU’s login is not case sensitive. So Joe can login as joe, JOE, jOE, JoE.
The problem occurs if a user registers with a capital letter in bbpress and then tries to login through WPMU. WPMU converts the input in the login field to lower case BEFORE it queries the database. So WPMU checks for user_login with all lowercase letters, but there may be capitals, so the login can fail.
Here’s a step by step explanation
1) Fred registers in bbpress with the name Fred
2) user_login is set as Fred
3) Fred attempts to login to through WPMU using Fred (capitals)
4) WPMU converts Fred to fred BEFORE the database is queried.
5) According to WPMU fred (lowercase) does not exist.
6) Login fails

To fix this I set bbpress to match WPMU’s functionality. To do so I edited the bb_new_user function in the pluggable.php file. I simply added the following line before the database query.
$user_login = strtolower($user_login);
Now when a user registers through bbpress his user_login is set to all lowercase letters.
What I’d like to do is make a plugin that replaces the bb_new_user function with a new one that makes this change so I don’t have to edit a core file, but I’m not that savvy yet.
While this really isn’t a bbpress bug it would be nice if bbpress and WPMU did things the the same so that integration was easier.