The simplest and most straight forward solution is to work out what you want to do, and code that directly.
In this case:
<?php
if ( is_user_logged_in() || bb_is_user_logged_in() ) {
// Logged in user
// Hardcode your form here
} else {
// Not logged in
// Hardcode your form here
}
?>
You cannot call bb_is_user_logged_in() without prior inclusion of bb-load.php, though…
Well thats the bit thats up to you, you can have anything you want in there, just add the HTML you need. For most people though you can just copy the HTML output of the form you currently have. For me, that’s this:
<form class=”login” method=”post” action=”/forums/bb-login.php”>
<label>Username: <input name=”user_login” type=”text” id=”user_login” size=”13″ maxlength=”40″ value=”” tabindex=”1″ />
</label>
<label>Password: <input name=”password” type=”password” id=”password” size=”13″ maxlength=”40″ tabindex=”2″ />
</label>
<input name=”re” type=”hidden” value=”” />
<input type=”hidden” name=”_wp_http_referer” value=”/forums/” /> <input type=”submit” name=”Submit” id=”submit” value=”Log in »” tabindex=”4″ />
<input name=”remember” type=”hidden” id=”remember” value=”1″ tabindex=”3″ checked />
</form>
I have a WordPress blog integrated with BBpress.
and I”m having trouble Akismet.
I activated the Akismet plugin after I
installed BBpress then several days later I noticed no one was posting. I
thought this was strange because in those few days I had about 100 people
register.
I selected the check box next to “Create a page that shows spam
statistics” on the Akismet page. The page showed there was 26 post in the spam section.
I selected spam in the drop down box but the messages do not show up even
after I click on filter. I don’t know of any other way to get to the
messages to see if they are all spam.
I deactivated Askismet and a post showed up within 30 minutes. Any ideas? I would like to have a
spam filter.
@ kevinjohngallagher … I’m not a techi person.. can you please tell me what code of bbpress will use in “Hardcode your form here” and”Hardcode your form here” to show the bbpress login form into wordpress…
Hey guys,
You’re really trying to do something here that was never intended.
bbPress was coded to create the same (or a readable) cookie from wordpress.
Deep Integration, the allowing of wordpress functions to be called in bbPress, is totally unsupported and unintentional. If you can hack it to make it work then cool, but really, you’re on your own for the most part.
Calling bbpress functions in wordpress is always always always going to cause issues in the long run. it wasn’t built for it in any way shape or form. It’s a square peg in a round hole scenario, and if you can push something through then awesome, but sometimes it’s just not worth it.
The simplest and most straight forward solution is to work out what you want to do, and code that directly.
In this case:
<?php
if ( is_user_logged_in() || bb_is_user_logged_in() ) {
// Logged in user
// Hardcode your form here
} else {
// Not logged in
// Hardcode your form here
}
?>
Remember, hardcoding is your friend, because YOU control it
@ mr_pelle & Gautam … I’ve tried it.. but nothing happened… I’m also searching the same solution..but not found any answer yet.. can you people please solve this topic…
We really need it..
here is my topic…
https://bbpress.org/forums/topic/wordpress-registration-and-login-via-bbpress
Thanks,
pagal
This PHP redirect worked beautifully for my exact same situation, thanks.
You don’t need a plugin at all, since these are not posts with the links: they’re sponsored images in your template.
You need to find this:
target="_blank"
And replace it with this:
onclick="window.open(this.href); return false;"
in whatever file you added the target=”_blank” to. Sounds like it’s in your sidebar. You will need to manually edit that file. If it’s not a static file and is being generated by WordPress or something, then you would need a WordPress plugin to add the links with the javascript onclick instead of deprecated target=”_blank”.
@Gautam: yeah sorry, I suggested that because I’m testing with no users db sharing, so I’ve to use bb_is_user_logged_in() instead of WP’s function.
You can use is_user_logged_in() WordPress function for that, like:
<?php
if ( is_user_logged_in() ) {
// Logged in HTML here
} else {
// Login form HTML here
}
?>
The solution suggested by Pelle would work, but would add a lot of load on your blog.
Before calling the bbPress function just add:
<?php require_once ABSPATH .'/forum/bb-load.php'; ?>
I had the same problem. After I had transfered all my bbPress users over to wp_users, I just logged back into the bbPress adminpanel, went to WordPress integration settings and just clicked saved again.
Then all the user roles was correct and updated when I refreshed the WordPress adminpanel.
I am using bbPress 1.0.2 and WordPress 2.9.2.
I originally did hardcode the menu items however the dropdown menu did not seem to work when hardcoded so I went back to including the header.
I will give hardcoding another try.
Thanks,
David
would be far better to start a new thread.
im wondering how to recover the admin password, i lost it and im stuck,
thanks guys, sorry for the off topic post, seems like you guys know how to get around bbpress
What version of bbPress are you using ?
What version of WordPress are you using?
Are you using “deep integration”?
That said, I’d hardcode them if I were you. Given that you know you’re going to be on your forum page, and therefore dont need to having anything dynamic or highlighted, you can just hardcode it to work.
Not an ideal solution, but its one that you can control completely 
Good Luck
Not going to happen for WordPress 3.0. I wouldn’t plan on it any time soon.
I want BBPress to be a standalone program. But I want it to be possible to include it as a page in WordPress.
Anonymous UserInactive
I would love to see bbPress as a WordPress plugin.
You are totally incorrect.
There is nothing in the GPL license which prohibits you from selling GPL licensed themes.
WordPress.org even has a page dedicated to promoting the sale of various GPL themes … https://wordpress.org/extend/themes/commercial/
The error
Warning: require_once(includes/admin.php) [function.require-once]: failed to open stream: Not a directory in /homepages/0/d188981313/htdocs/.org/wordpress/forum/my-plugins/after-the-deadline/after-the-deadline.php on line 68
Fatal error: require_once() [function.require]: Failed opening required 'includes/admin.php' (include_path='.:/usr/lib/php5') in /homepages/0/d188981313/htdocs/.org/wordpress/forum/my-plugins/after-the-deadline/after-the-deadline.php on line 68
I know I don’t have an “includes” folder
/**
* Require Admin/Public/AJAX File
*/
if ( defined( 'DOING_AJAX' ) && DOING_AJAX == true && in_array( 'ignorealways', (array) $atd_plugopts['enableuser'] ) ) /* Load Ignore Phrase file as we are doing AJAX */
require_once( 'includes/ajax-ignore.php' );
elseif ( bb_is_admin() ) /* Load admin.php file if it is the admin area */
require_once( 'includes/admin.php' );
else /* Else load public.php file as it is the public area */
require_once( 'includes/public.php' );
I think in the long run, that rather than porting bbPress to a WordPress plugin as a “straight port”, there will be a halfway house of using WP3.0’s custom post types and taxonomies. I’m guessing at this, but haven seen some attempts at this on the beta already, it seems to make alot of sense.
EDIT: found justin tadock’s example @ http://justintadlock.com/blog/wp-content/uploads/2010/04/forum-post-type.png
(sorry for the number of spelling mistakes, i simply can’t read these hideously small text they’ve forced on us by using font-size in pxels)
Your code is very decent so keep writing 
You have the status right.
WordPress finally has an admin menu generator? Good to hear.
Sadly I’ve lost touch with the WP codebase since 2.5 or so, I was getting really turned off by the bloat.
The problem is every website has different needs.
Some have only 10 visitors a day but the site operator wants every feature including the kitchen sink. They don’t care if it takes several seconds for their page to render as long a they have every fancy feature available and they can just use wp-super-cache to deal with the load.
But other sites have thousands of visitors a day and when a page takes too much cpu time or mysql time to render, then you multiply that by hundreds of simultaneous connections. Then you fail and your host kicks you off or you have to buy a bigger server.
WordPress started lean and mean, 1.5 was good, 2.0-2.1 was a great product. Then they started throwing in the kitchen sink. Then with every next release started breaking compatibility with every release, changing cookies, changing admin structure. 3.0 is a scary creature indeed.
There is no doubt in my mind that a bbPress plugin under WordPress is going to require 1 megabyte of code executing per instance with plugins in a realistic environment. The site operator with 10 visitors per day won’t care because they have every feature the could want in one package. The operator with an active, growing user based is going to have to constantly upgrade their server to handle the problem.
Active forums don’t deal well with caching, unlike blogs.
Blogs are write once, read many times.
Forums are write many times, read many times.
Different environment, different needs.
But performance should always be designed into software.