Info
- 92 posts
- 51 voices
- Started 3 years ago by Sam Bauers
- Latest reply from msmeritt
- This topic is not a support question
Basic integration screencast
-
- Posted 3 years ago #
I've created a screencast which covers how to setup the most basic form of integration with WordPress.
bbPress and WordPress basic integration
- Shared cookies (single sign-on)
- Shared user tables in a shared database
- bbPress installed in a sub-directory of WordPress
-
- Posted 3 years ago #
DLing it now, very cool of you to do this....
-
- Posted 3 years ago #
>> bbPress installed in a sub-directory of WordPress
That's almost cheating, it's too easy ;-)
You should do it off a different directory from the webroot.
But good idea in general, someone did this awhile back with 0.8 (and then stuffed a bunch of ads in it). -
- Posted 3 years ago #
Well, the best little part about installing bbPress in a sub directory, is that in WordPress if you're using the pretty permalinks and make a "Forums" page, the slug will be "forums" and when clicked it will just route the users right to the forums instead of to the WP page. :)
-
- Posted 3 years ago #
Not unless you hack things to remove the /forum/ and /topic/ paths which is not recommended.
-
- Posted 3 years ago #
I must be missing something, since I already have that working, and I have them in their own directories off the root.
domain.net points to my blog (with posts as yyyy/mm/dd/slug) and domain.net/forums goes right to the forums, no problems.
-
- Posted 3 years ago #
UPDATE: Added embedded version in original post.
-
- Posted 3 years ago #
I followed all the steps and did 'Complete the Installation' and it said everything was correct but then said the forum failed to be created. When I try and go to the forum it will load for a little while and then say Firefox can tell that this process won't end. I tried taking everything off my server and retrying it and I'm following the instructions again and now I can't get past Step 1. When I try and click to go to Step 2, I get the same page from before saying Firefox can tell that this process won't end, or something to that effect. Any idea of what the issue could be?
I'm using WordPress 2.7 and the newest Alpha build of bbPress.
-
- Posted 3 years ago #
Ok, I went into my phpAdmin (GoDaddy) and deleted all the tables involving bbPress, which allowed me to redo the installation. But now, it won't connect the tables. When I go through Step 2 and fill in all the information and then go on to Step 3, it tells me I skipped Step 2.
-
- Posted 3 years ago #
Integration doesn't seem to be working for me. I followed the screencast, but for some reason when I sign into my WP it signs me OUT of my bbPress. And vice-versa. And I can't use my Key Master account to sign-in to WP admin.
-
- Posted 3 years ago #
@biscut
Delete ALL tables in the database that start with your bb_ prefix, and try again.@bryan
I can assure you that following Sam's video PERFECTLY yields perfect results. I've done it at least 10 times. Can you rewatch the video and take notes on what in your particular case may be different? Like directory location, server settings, unique WordPress plugins or setup, anything like that?I joined your forum, but then realized that your WordPress login page isn't the traditional wp-login.php. I get redirected when I try to access it. Also, same goes for your admin area. It looks like you've got WP logins pretty well hidden from view. Care to let me in?
-
- Posted 3 years ago #
@bryan868 - the other thing to do is re-replace all your AUTH/SECURE etc keys in BBpress with the ones from WP. ALL of them. Every last one. Then purge your cookies and log back in.
@johnjamesjacoby - it's just in a subfolder :) http://www.amfproductions.com/a/wp-login.php
-
- Posted 3 years ago #
Yeah, would that sub-folder have anything to do with it?
-
- Posted 3 years ago #
@bryan
It appears to me like you didn't integrate your user registrations or user accounts. I can login to the forums, but cannot login to WordPress. Can you check out your database and make sure you only have wp_user and wp_usermeta user tables, and do not have any that start with bb_?
-
- Posted 3 years ago #
Nah, I have it in a subfolder.
If johnjamesjacoby is right and you didn't integrate your user tables but you ARE trying to share cookies, then you would have exactly this problem.
-
- Posted 3 years ago #
My bb_users and wp_users are in two different databases. I filled out the advanced settings in bbPress for that however, so I'm not sure why it wouldn't be working.
Just checked, both tables still exist in their respective databases.
-
- Posted 3 years ago #
OK, I can sign-in to BB with my WP admin account, but now none of my BB accounts work.
-
- Posted 3 years ago #
@bryan
Honestly, at this stage I would recommend deleting the bbPress files and database tables, and starting over. It's so much easier to install correctly the first time than it is to track down installation errors and try to patch them. This is of course if there isn't a whole lot of data to lose.
-
- Posted 3 years ago #
Yeah, there's years of posts I would lose and forum users.
Is this integration NOT meant to be done with a existing install of bbPress? Is it the intended behavior for it to use the WP user tables and ignore the BB user tables?
-
- Posted 3 years ago #
Exactly. Theres no real way to merge the two user tables together automatically or to have them both exist simultaniously and still allow a unified login.
-
- Posted 3 years ago #
Ok so, I followed this tutorial exactly but, still received an error when installing my bbpress. Here is a screenie of what the error looks like. http://www.premdesigns.com/error.jpg It seems to be the exact same error as biscuit had. I've tried to install by following the video each time. Each time I start with a new database and I seem to get the same error every time. Did anyone have a fix to this problem?
-
- Posted 3 years ago #
@johnjamesjacoby
Well that explains it all!
-
- Posted 3 years ago #
Someone call me when the integration works both ways! Heh
-
- Posted 3 years ago #
i'm new to wp, but so close to getting this login/out nailed with mu 2.6.5 and bb 1.0.4
everything integrates fine, all combinations apart from logging in to mu and trying to logout of bb doesn't work and vice versa (which also keeps the user logged into bb)
i've followed the guides to a tee, with 7 keys in both configs (bb keys preceded with bb_)
unique to wp_config is standard settings for define cookie_domain, cookiepath, sitecookiepath, cookiehash, secret_key and secret_salt
have tried some of these also in bb_config but doesn't seem to make a great deal of differenceany help would be hugely appreciated
-
- Posted 3 years ago #
I started out with my bbpress database being different from the wordpress database, but sharing the same wp_users.
But I seem to be having problems where new users on WordPress have no role in BBpress... and I get an error when trying to change their role: function.array-key-exists (same error as here.)
Is there an easy way to merge the bbpress database with wordpress since they use the same user list anyway? That way I can have the same setup you suggest in this video?
-
- Posted 3 years ago #
Hey man.. That s a cool job..
-
- Posted 3 years ago #
I just watched the basic integration screencast and tried integration again. I ran into some of the same problems mentioned above so I did a little testing.
1. Sam, thanks for the screencast.
2. Using a subdirectory of forums, and then making a WordPress Page called "Forums" with a slug of "forums" works just fine. The page will show up in your WordPress page menu like any other Page, but the real 'forums' subdirectory you installed bbPress into is what is displayed to visitors, NOT the content of the WordPress Page called "Forums." I used to install a redirect plugin at WordPress to redirect the "Forums" Page to the http://example.com/forums/ real subdirectory, but I guess this works just fine like this. Good to know.
3. When using PHP4 (4.4.9) I encountered the "Forum could not be created!" error mentioned above. I thought it was possibly the MySQL version (which was 4.0.27 I believe) but it turned out that by using PHP5 (5.2.6) it installed fine, into the same database. I added this to my .htaccess file in the site root (for WordPress and bbPress):
AddType x-mapp-php5 .phpThat forced .php files to be processed as PHP5. I did that before installing WordPress. I confirmed with phpinfo that PHP5 was being used for both the blog and the forum. The 2nd time through (actually, the 3rd time, but that's a different story), using PHP5, the forum was created properly.
After that, following the screencast pretty closely resulted in an installation where I can log in as Admin (key master) at either bbPress or WordPress, and I am logged in on the other side, as expected. Logging out of one logs me out of both. It's what I expect user integration to be.
Waiting for the next screencast, Sam. Thanks.
p.s. Did I miss it, or is the NONCE key for bbPress never set in the video? I have one in wp-config.php, since the keys were generated by the WordPress.org API, but did I miss setting that in bbPress? Should I just make it the same as it is in bbPress? Will not having it prevent me from administering the forum or something? I didn't test any functionality of the forum, just the logins.
-
- Posted 3 years ago #
Followed the tutorial and thought everything was working, but I see now that when new users register on WP, they are added as users in bbP - but they have no role defined. All my roles are set in WordPress Integration. Here's the error I get when I click on edit for the User - under USER TYPE
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/account/public_html/forums/bb-includes/functions.bb-template.php on line 2009
under ALLOW THIS USER TO:
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/account/public_html/forums/bb-includes/functions.bb-template.php on line 2036Great tutorial, btw!
-
- Posted 3 years ago #
very helpful screencast. thanks!
i'm having the same problem as maxwellfir with user roles not being assigned correctly and the error when trying to assign them.
for existing users (from wordpress) i get the error mentioned above when trying to edit that user's role in bbpress.
for new users (signed up via bbpress) their role in wordpress is set to "none" and therefore can't login to wordpress.
not sure if the second issue has anything to do with having registration disabled in wordpress.
thanks for any additional help with this.
-
- Posted 3 years ago #
@maxwellfir and asymmetrik
Your problem is fixed in trunk now.