bbPress: to integrate and use the features of WordPress
Monday, September 28, 2009 bbPress is a simple but complete Forum written in PHP and MySQL that provides excellent integration with Wordpress.
The integration with Wordpress is built on several levels, so that we would analyze them later. Let's begin with a simple snippet to be included in the configuration file for bbPress: bb-config.php
- / / Load the engine WordPress
- / / The double call to dirname () is obviously
- / / A "../" and depends on where it is positioned bbPress
- / / Than the root of WordPress
- dirname ( dirname ( __FILE__ ) ) . '/wp-blog-header.php' ) ; require_once (dirname (dirname (__FILE__)). '/ wp-blog-header.php');
This code allows to use the kernel inside the WordPress bbPress. In practice, therefore, you can insert functions as get_bloginfo() (or any other function as get_header() in the pages are part of the theme of the Forum. In this way I will be simple, for example, standardizing the layout, allowing the issue of access to page bbPress Wordpress.














I did not know, I want to replace phbb and Wordpress, good article, thanks.
[...] We have seen how to integrate bbPress into WordPress kernel, to use some function such as Wordpress or share issue. Now we will see the contraio, ie how to show the information on the Home Page of the Forum bbPress Wordpress. To do this there are a few plugins (some working and others not). Here we see instead how to write one - really - simple function that, in case, can be improved and perfected for all cases. PLAIN TEXT PHP: [...]