[bbDev] bb-config.php

Nigel Johnson deviant at dr-deviant.net
Sat Dec 31 11:44:11 GMT 2005


This line is wrong in the config...

$myhash = md5($bb->www.korff-design.com);

Should be...

$myhash = md5($bb->domain);

I think domain might be misleading. Because it is the hash used for 
encrypting passwords, all passwords for multiple instances of wordpress on a 
'domain' would be the same... but then they are in different databases, it 
*may* need to be one of the addresses in the wordpress Options>General page. 
not sure which. - have a play if it doesn't work, report back what you find 
:)

Cheers
N.

----- Original Message ----- 
From: "Joost Korff de Gidts" <joost at korff-design.com>
To: "bbPress Development" <bbdev at lists.bbpress.org>
Sent: Friday, December 30, 2005 9:28 PM
Subject: [bbDev] bb-config.php


> 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' );
>
>
> ?>
>
>
> **********
>
>
> _______________________________________________
> bbDev mailing list
> bbDev at lists.bbpress.org
> http://lists.bbpress.org/mailman/listinfo/bbdev 



More information about the bbDev mailing list