Info
- 4 posts
- 2 voices
- Started 2 years ago by ipunkbali
- Latest reply from chrishajer
- This topic is resolved
Inserting path/to/wp-blog-header.php
-
- Posted 2 years ago #
i Read somewhere
"In order to do it, you need to put require_once('path/to/wp-blog-header.php'); in bbPress’ bb-config.php (wp-blog-header is in the same directory as WordPress’ wp-config.php file)."
Where do I exactly insert this code in wp-config.php file?: require_once('path/to/wp-blog-header.php'); ??
This is what i see in my wp-config.php file. Thanks
<?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', 'metroadv' );/** MySQL database username */
define( 'BBDB_USER', 'metroadv' );/** MySQL database password */
define( 'BBDB_PASSWORD', 'xxxxxx' );/** 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! -
- Posted 2 years ago #
It goes in bb-config.php, not wp-config.php, but I'd put it right at the top, after the opening
<?php:<?php require_once('path/to/wp-blog-header.php'); /**The
path/to/wp-blog-header.phpit not to be typed literally. It will be a filesystem path, something that is dependent on where WordPress is installed on your server. Be sure you change the path to the correct value for your installation. -
- Posted 2 years ago #
Ok, I have inserted it. nothing change tho, the forum theme still look different with the main blog. :(
-
- Posted 2 years ago #
Adding that to bb-config.php just allows you to use WordPress functions in bbPress. What did you want to happen?
-
You must log in to post.