Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Any idea to integrate wp and bb login forms?


fel64
Member

@fel64

I hope you’re keeping wp-login.php up to date! If you’re not comfortable writing a plugin I’d be worried about hacking core files.

wp user IDs are the same as bb user IDs.

It is something like that.

if( current_user_can('administrate') ) {
$redirect_to = "/wp-admin";
} else {
$redirect_to = $bb_profile_link;
}

That would be all the code you need (although you have to generate $bb_profile_link. Not hard). Tell me you can’t read and understand that. And this explains all about hooks. We all make a start somewhere. I learnt PHP through WordPress just back in December.

Skip to toolbar