Search Results for 'bbpress'
-
Search Results
-
Topic: bbPress 1.0-alpha-3 released
See the details here:
Those who are more interested in “deep” integration should see this post:
http://bbpress.org/forums/topic/first-pass-at-a-fix-for-deep-integration-in-trunk
A first attempt at getting WordPress 2.7 and bbPress 1.0 to play nice again is now in trunk [1862].
I’m specifically talking about “deep” integration, i.e. when you include WordPress inside bbPress to gain access to WordPress’ functions.
This will need a lot of testing, so please post any issues you have on the relevant Trac ticket, #972 (which will stay open until some more testing has occurred).
I recommend using the following code at the top of your bbPress bb-config.php file to include WordPress inside bbPress:
if ( !defined( 'ABSPATH' ) ) {
include_once( '/Full/Path/To/wp-load.php' );
}Note that this includes “wp-load.php” not “wp-config.php” or “wp-blog-header.php”. This avoids running WordPress’ template loader which presumably isn’t needed inside bbPress. Some implementations may want it though, so if you find you need it then give it a go and let us know how that goes.
Also note that all filters and actions set in WordPress whether default or added by plugins or themes are cleared out completely. That means that plugins and themes installed in WordPress cannot add filters or actions to bbPress at all. This may have some implications I’m not aware of yet.
Go nuts!
Topic: bbPress Admin
Now that WordPress 2.7 has revamped the admin panel, is bbPress going to follow suit with a matching one? I came along after it had been made to match 2.6, so I never got to see what it used to look like.
I just installed bbPress on a Windows XP system without incident.
Went in very easily.
However, the PHP ‘mail()’ function on Windows uses an MTA.
That is, it communicates directly with an SMTP server rather than using any intervening software.
This means that the ‘From:’ header format must be very simple:
‘From: user@domain’
instead of:
‘From: “Name of bbPress system” <user@domain>’
Otherwise, the SMTP server returns an error and does not send a message.
An easy change can be made to bb-includes/pluggable.php::bb_Mail().
Change:
$headers[] = ‘From: “‘ . bb_get_option(‘name’) . ‘” <‘ . $from . ‘>’;
to:
$headers[] = ‘From: ‘. $from;
The change will work with all systems or it can be placed under a
Windows-specific switch.
I wanted a little plugin to allow Force Login on bbPress forum when you have integration with buddypress. I altered mdawaffe’s plugin and thought I would share it with the community if you want privacy on forum and still work with buddypress.
<?php
/*
Plugin Name: Force Login
Description: No one can see your forums unless they are logged in.
Plugin URI: http://bbpress.org/forums/topic/117
Author: Michael D Adams *voodoo code from Trent Adams and Sam Bauers*
Author URI: http://blogwaffe.com/
Version: 0.8
*/
function force_login_init() {
if ( !bb_is_user_logged_in()
&& 0 !== strpos($_SERVER['REQUEST_URI'], bb_get_option( 'path' ) . 'bb-login.php')
&& 0 !== strpos($_SERVER['REQUEST_URI'], bb_get_option( 'path' ) . 'bb-reset-password.php')
&& 0 !== strpos($_SERVER['REQUEST_URI'], bb_get_option( 'path' ) . 'register.php')
&& 0 !== strpos($_SERVER['REQUEST_URI'], bb_get_option( 'path' ) . 'xmlrpc.php')
) {
nocache_headers();
header("HTTP/1.1 302 Moved Temporarily");
bb_safe_redirect( bb_get_uri( 'bb-login.php', null, BB_URI_CONTEXT_HEADER + BB_URI_CONTEXT_BB_USER_FORMS ) );
header("Status: 302 Moved Temporarily");
exit();
}
}
add_action( 'bb_init', 'force_login_init' );
?>Cheers,
Trent