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 analyze later. To start here is a simple snippet to be included in the configuration file to bbPress: bb-config.php .
1 2 3 4 5 6 | / / Load the Wordpress engine / / The double call to dirname () is, of course / / A "../" and depends on where it is positioned bbPress / / Than the root Wordpress dirname ( dirname ( __FILE__ ) ) . '/wp-blog-header.php' ) ; require_once ( dirname ( dirname (__FILE__)) '. / wp-blog-header.php'); 'WP_BB' , true ) ; define ('WP_BB', true); |
This code allows the kernel to use WordPress inside bbPress environment. ) nelle pagine facenti parte del tema del Forum. In practice, therefore, you can put features like get_bloginfo() (or any other function as get_header() ) in the pages that are part of the theme of the Forum. This will make it easier, for example, standardizing the layout, allowing access to bbPress theme WordPress pagination.











I did not know, I want to replace phbb and WordPress, good article, thanks.
[...] We have seen how the kernel integrated bbPress with WordPress, for example, to use or share some function WordPress theme. Now we will see the contraio, namely how to display the information in bbPress forum home page of WordPress. To do this there are some plugins (some working and others not). Here we shall see how we write a - really - simple function that, in the case, can be improved and perfected in all cases. PLAIN TEXT PHP: [...]
e non visualizzo l'intestazione di WordPress su bb-press… In definitiva credo che utilizzare tale hack non risolva il problema suggerito nel titolo del post!! Once inserted into the file snipplet
bb-config.phpI go into page templates bb-press, where I use theget_header()and can not display the header of the WordPress bb-press ... Ultimately I think that using this hack does not solve the problem suggested in the title of the post!PS: I suggest the guide on the wiki WordPress Italy
@ Giulius84: you probably will not work because, as shown in the example code (see comments), depends on where you installed bbPress than WordPress. Moreover, this is not a hack, but the method suggested by bbPress developer, see: Integration with WordPress