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

PHP:
  1. / / Load the engine WordPress
  2. / / The double call to dirname () is obviously
  3. / / A "../" and depends on where it is positioned bbPress
  4. / / Than the root of WordPress
  5. dirname ( dirname ( __FILE__ ) ) . '/wp-blog-header.php' ) ; require_once (dirname (dirname (__FILE__)). '/ wp-blog-header.php');
  6. 'WP_BB' , true ) ; define ( 'WP_BB', true);

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.

Related Post

Was this article helpful?: Per nientePocoAbbastanzaMoltoMoltissimo
Loading ... Loading ...

2 comments to "bbPress: to integrate and use the features of Wordpress"

  1. getAvatar 1.0
    06 ott, 2009 Giulidda, guadadnare internet for beginners.:

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

  2. getAvatar 1.0
    04 dic, 2009 Undolog.com »Wordpress: view the latest topics of bbPress:

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

Leave a comment

TAG XHTML PERMISSIONS: <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 [as][/as]           // Actionscript [css][/css]         // CSS Style Sheet [html][/html]       // HTML [js][/js]           // Javascript [objc][/objc]       // Objective-C [php][/php]         // PHP [sql][/sql]         // SQL