Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Using login_form from bbPress on a WordPress site

@kevinjohngallagher

Member

Morning lads,

Sun is shining here, hope you’re all having a great day.

@mr_pelle

I think we’re going in circles a little here; and its a position we’ve all been in and can feel your pain a little.

I see where I might have confused you yesterday.

Including the WordPress loader in the bbPress config file, so that bbPress has access to WordPress functions, is where most (if not all) of the deep integration questions/work/answers have been derived from. It’s a one way system, calling wordpress functions in bbpress. It’s not a two way system (where wordpress can call bbpress functions, and vice versa).

Hardcoding is not a good choice IMHO, because it means you have to update many pages everytime you change your mind just on a single line of code

Not really. You’d have to edit it once in the header in wrodpress and once in the header in bbpress. Being absolutely frank with you, that is the minimum you have to do everytime you make a change to your themes anyway because bbpress and wordpress don’t load the same theme files.

The way to think of bbPress and WordPress is of two separate systems that share login cookies and you can fake each’s themes make look like each other.

It’s a tough nut to get round, espeically with them being built and maintained by the same company (who are usually awesome at this sort of thing), but really, and it pains me to say this, they don’t integrate. You/me/everyone read the front page and assume it’s not [trying not to say the word ‘lie’ here]; and we expect it to be one thing and it’s not. I don’t say that to casue annoyance, i’m just tyring to manage expectations a little.

bbPress and WordPress are two separate systems which can be made to share login cookies.

Wasn’t bbPress born for this (and more)?

Nope.

bbPress was born for the sole purpose of running the wordPress support forums.

Cookie integration was a nice idea added sometime around 0.8 (as i recall), was awesome for 5 weeks with 0.9 before a wordpress update broke it. Automattic got round to fixing it some 14 months later.

bbPress playing nice with wordpress is a nice hook on the front page, it is not now, nor shall be, it’s purpose. (hence Matt telling people to not use the software, and that he’s scrapping it to become a wordPress plugin instead).

Not to mention that the code you suggested does not handle login errors…

Yeah it does. Login errors are always handled on the login page. (wp-login.php and bb-login.php). All we’ve built is a form that points to those pages.

If you login successfully you’ll be redirected back to your page, if not you’ll hit the original/default login page with the error.

if you’re looking to recreate the wp-login/bb-login page on every/all pages with all the functionality that entails, then you’ve a much bigger job on your hands, and if i’m honest, i’d head to the wordpress forums for some help there (in my experience wordpress is fussy about wp-login being used).

Skip to toolbar