bbPress: integrate and use the features of WordPress

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.

4 comments to "bbPress: integrate and use the features of WordPress"

  1. October 6, 2009 Giulidda, guadadnare internet for beginners. :

    I did not know, I want to replace phbb and WordPress, good article, thanks.

  2. December 4, 2009 Undolog.com »Wordpress: view the latest topics in bbPress :

    [...] 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: [...]

  3. May 8, 2010 giulius84 :

    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.php I go into page templates bb-press, where I use the get_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

  4. May 9, 2010 Giovambattista Fazioli :

    @ 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

Leave a comment

XHTML TAG PERMIT: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> INSERTION CODE:
 <pre></pre> // blocco generico <code></code> // blocco generico [cc_actionscript][/cc_actionscript] // Actionscript [cc_actionscript3][/cc_actionscript3] // Actionscript 3 [cc_css][/cc_css] // CSS Style Sheet [cc_html][/cc_html] // HTML [cc_js][/cc_js] // Javascript [cc_objc][/cc_objc] // Objective-C [cc_php][/cc_objc] // PHP [cc_sql][/cc_sql] // SQL 


Stop SOPA