[bbDev] bb-config.php
Joost Korff de Gidts
joost at korff-design.com
Fri Dec 30 21:28:23 GMT 2005
This is my BBPRESS adres:
http://www.korff-design.com/huis/bbpress/
and this for WP:
http://www.korff-design.com/huis/wp/
When i login whif "http://www.korff-design.com/huis/wp/wp-login.php".
After this i go to "http://www.korff-design.com/huis/bbpress/".
There was i not logged in!!!! How come's?
Many thx so far.
Joost
**********
<?php
// ** MySQL settings ** //
define('BBDB_NAME', 'blog51'); // The name of the database
define('BBDB_USER', '2116'); // Your MySQL username
define('BBDB_PASSWORD', 'joost77'); // ...and password
define('BBDB_HOST', 'localhost'); // 99% chance you won't need to
change this value
// Change the prefix if you want to have multiple forums in a single
database.
$bb_table_prefix = 'bb_';
$bb->domain = 'http://www.korff-design.com'; // There should be no
trailing slash here.
$bb->path = '/huis/bbpress/'; // There should be both a leading and
trailing slash here. '/' is fine.
$bb->name = 'Theo van Doesburgstraat - forum';
$bb->admin_email = 'joost at korff-design.com';
$bb->mod_rewrite = false;
$bb->page_topics = 30;
// Number of minutes after posting a user can edit their post
$bb->edit_lock = 20;
$bb->gmt_offset = 0;
if(file_exists("../wp/wp-settings.php"))
{
// loads the functions and wp config
require_once "../wp/wp-config.php";
require_once "../wp/wp-settings.php";
// use the WP user table for your bbpress user list
define('CUSTOM_USER_TABLE', 'wp_users');
// your $bb->domain must match your wp domain exactly or the hash
won't work and users will not authenticate.
$myhash = md5($bb->www.korff-design.com);
$bb->usercookie = 'wordpressuser_' . $myhash;
$bb->passcookie = 'wordpresspass_' . $myhash;
// Use the same cookie as WP
$bb->cookiepath = '/';
}
/**************************
* End WP integration
**************************/
define('BBPATH', dirname(__FILE__) . '/' );
require_once( BBPATH . 'bb-settings.php' );
?>
**********
More information about the bbDev
mailing list