Info
- 15 posts
- 7 voices
- Started 2 years ago by kikko088
- Latest reply from laneuio
- This topic is not resolved
wordpress integration
-
- Posted 2 years ago #
hi at all, i want to integrate bbpress and wordpress, i put "require_once(dirname(__FILE__) . '/../wp-load.php');" in my bb-config.php but the retrn is a blank page, bbpress is in a folder inside wp folder.
where is the problem?
thank at allkikko088
-
- Posted 2 years ago #
wp-load.php is just a file that contains WordPress code and doesn't echo anything.
-
- Posted 2 years ago #
If it's returning a blank page, I think that means you're getting a Internal Server Error code 500. If you take that line out, can you use bbPress?
-
- Posted 2 years ago #
Sometimes it's a plugin in bbpress or wordpress that causes that. usually a cache program
-
- Posted 2 years ago #
Plugins can cause that, timeout issue, memory limit but I would suggest that try this code for deep integration
/* Deep integration */ if ( !defined('ABSPATH') & !defined('XMLRPC_REQUEST')) { define('WP_USE_THEMES', false); include_once(dirname(__FILE__) . '/../wp-blog-header.php' ); header("HTTP/1.1 200 OK"); header("Status: 200 All rosy"); }and remove your line of code which includes
wp-load.php -
- Posted 2 years ago #
nothing, I try to add also this line but nothing...:( clean install of bbpress and 0 plugin wp.
my bb-config.php<?php
/**
* The base configurations of bbPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys and bbPress Language. You can get the MySQL settings from your
* web host.
*
* This file is used by the installer during installation.
*
* @package bbPress
*/// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for bbPress */
define( 'BBDB_NAME', 'mio' );/** MySQL database username */
define( 'BBDB_USER', 'root' );/** MySQL database password */
define( 'BBDB_PASSWORD', 'root' );/** MySQL hostname */
define( 'BBDB_HOST', 'localhost' );/** Database Charset to use in creating database tables. */
define( 'BBDB_CHARSET', 'utf8' );/** The Database Collate type. Don't change this if in doubt. */
define( 'BBDB_COLLATE', '' );/**#@+
* Authentication Unique Keys.
*
* Change these to different unique phrases!
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/bbpress/ WordPress.org secret-key service}
*
* @since 1.0
*/
define( 'BB_AUTH_KEY', 'put your unique phrase here' );
define( 'BB_SECURE_AUTH_KEY', 'put your unique phrase here' );
define( 'BB_LOGGED_IN_KEY', 'put your unique phrase here' );
define( 'BB_NONCE_KEY', 'put your unique phrase here' );
/**#@-*//**
* bbPress Database Table prefix.
*
* You can have multiple installations in one database if you give each a unique
* prefix. Only numbers, letters, and underscores please!
*/
$bb_table_prefix = 'bb_';/**
* bbPress Localized Language, defaults to English.
*
* Change this to localize bbPress. A corresponding MO file for the chosen
* language must be installed to a directory called "my-languages" in the root
* directory of bbPress. For example, install de.mo to "my-languages" and set
* BB_LANG to 'de' to enable German language support.
*/
define( 'BB_LANG', '' );require_once(dirname(__FILE__) . '/../wp-load.php');
OR
(
/* Deep integration */
if ( !defined('ABSPATH') & !defined('XMLRPC_REQUEST')) {
define('WP_USE_THEMES', false);
include_once(dirname(__FILE__) . '/../wp-blog-header.php' );
header("HTTP/1.1 200 OK");
header("Status: 200 All rosy");
}
)?>
I I'm not expert on php, I add correctly the line?
-
- Posted 2 years ago #
Add the code just after this :
<?php /** * The base configurations of bbPress. * * This file has the following configurations: MySQL settings, Table Prefix, * Secret Keys and bbPress Language. You can get the MySQL settings from your * web host. * * This file is used by the installer during installation. * * @package bbPress */ -
- Posted 2 years ago #
@Ashfame wp-blog-header.php versus wp-load.php. http://bbpress.org/forums/topic/topic-tags
-
- Posted 2 years ago #
:( nothing...always blank page...uff....i find also this line
require_once( dirname( dirname( __FILE__ ) ) . '../wp-blog-header.php' );
define('WP_BB', true);but nothing...blank page...grrr
kikko088
-
- Posted 2 years ago #
@gerikg
wp-blog-header.phploadswp-load.php&template-loader.php
I think if we are not going to use WordPress themes in bbPress then we can use wp-load.php but I think wp-blog-header.php won't hurt.
Your link looks interesting, I will have to see. -
- Posted 2 years ago #
it workkkkkk!!:D the problema was wordpress 3.0! with wp 2.9 is all ok!
-
- Posted 2 years ago #
I'm having a similar problem when I try calling
require_once(dirname(__FILE__) . '/../wp-load.php');so I can bring my theme into bbpress.This is a WP 3.0 multiuser site on subdomains. The funny thing is I've had this working on test sites using WP 3 single user and WP 3 multiuser on subdirectories.
Is there something about it being on subdomains that might cause this? Might differences in the WP .htaccess file cause it?
-
- Posted 2 years ago #
@Terranb
Try this tutorial of mine - http://wpwebhost.com/make-bbpress-theme-match-with-wordpress-by-deep-integration/ -
- Posted 2 years ago #
I'm kind of embarrassed so I would be inclined to delete the above post, but in the interest of informing the community I'll leave it intact.
After updating my wordpress install it's now working. So it would seem that bbpress plays nicely with the most current WP 3 iteration
-
- Posted 5 months ago #
disposable tattoo tips tattoo starter, tattoo equipment kits.
-
You must log in to post.