Skip to:
Content
Pages
Categories
Search
Top
Bottom

WordPress + bbPress Cookies


  • driz
    Member

    @driz

    I have integrated WordPress 3.0 and bbPress 1.1 user tables and done all the steps and everything works well apart from the cookies :/

    Here is the code I have for both my config files. Can’t see any reason why they shouldn’t be working…

    BBPRESS CONFIG

    <?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’, ‘xxx’ );

    /** MySQL database username */

    define( ‘BBDB_USER’, ‘xxx’ );

    /** MySQL database password */

    define( ‘BBDB_PASSWORD’, ‘xxx’ );

    /** 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’, ‘di*3e[%bIf}JWXFwxI=Qq|{c7J1%RA;aR5yQ,2-vsxhT}p<Me:wNq$*+1=@Ycj’ );

    define( ‘BB_SECURE_AUTH_KEY’, ‘b^/nwHK+FR&8;gP&Z+q!,,.5|f;[rLv2NIV}eu-PxtqX|S)6#|rIB+9|>S:A-Oid’ );

    define( ‘BB_LOGGED_IN_KEY’, ‘_>w2my8aud-$ Jv=%-wo [Fh+ /AQs^2:[^jY?}_oUNZ3dB>p<xol!]Z rq1;uIs’ );

    define( ‘BB_NONCE_KEY’, ‘MImWoLh!X(>E6IkvRY$}76Xx(IV$4ijql<R/Zd0QR-L%-h2!a-DHR{V hu@1V*O]’ );

    define(‘AUTH_KEY’, ‘di*3e[%bIf}JWXFwxI=Qq|{c7J1%RA;aR5yQ,2-vsxhT}p<Me:wNq$*+1=@Ycj’);

    define(‘SECURE_AUTH_KEY’, ‘b^/nwHK+FR&8;gP&Z+q!,,.5|f;[rLv2NIV}eu-PxtqX|S)6#|rIB+9|>S:A-Oid’);

    define(‘LOGGED_IN_KEY’, ‘_>w2my8aud-$ Jv=%-wo [Fh+ /AQs^2:[^jY?}_oUNZ3dB>p<xol!]Z rq1;uIs’);

    define(‘NONCE_KEY’, ‘MImWoLh!X(>E6IkvRY$}76Xx(IV$4ijql<R/Zd0QR-L%-h2!a-DHR{V hu@1V*O]’);

    define(‘AUTH_SALT’, ‘E[7bB=}$7&|c1t:^X=0(s9}-Cz^&9C%9z@O(x2@bJ^f[>%%T$9wuATh(?A9h#s’);

    define(‘SECURE_AUTH_SALT’, ‘,dxYkzRyNG+pc@- UkhDBbx qT[4N;+=_|/R~||W672Xh6%{T!x|,kdh!G

    -Pijs');
    define('LOGGED_IN_SALT', 'V|UcSSwm{H}joP<code><@m&2-%I Nvhw3|gM-{$</code>*uhaX4xa{5*J*FUK1wGaI{u#|8)=');
    define('NONCE_SALT', ')$rgk@ke2;]{(hJ~Od%N^8F(-R[o(rCg$!hvDYV(Gh*+?AE/Ruz8M[>HDc};G]ZU');

    /**#@-*/

    /**
    * 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 = 'pvbb_';

    /**
    * 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', '' );

    define( 'COOKIEHASH', 'abe2eb1549111222254c933716b86d46' );
    define( 'COOKIE_DOMAIN', 'www.paperviewmagazine.com' );
    define( 'SITECOOKIEPATH', '/' );
    define( 'COOKIEPATH', '/' );

    ?>

    WORDPRESS CONFIG

    <?php
    /**
    * The base configurations of the WordPress.
    *
    * This file has the following configurations: MySQL settings, Table Prefix,
    * Secret Keys, WordPress Language, and ABSPATH. You can find more information by
    * visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
    * wp-config.php} Codex page. You can get the MySQL settings from your web host.
    *
    * This file is used by the wp-config.php creation script during the
    * installation. You don't have to use the web site, you can just copy this file
    * to "wp-config.php" and fill in the values.
    *
    * @package WordPress
    */

    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'xxx');

    /** MySQL database username */
    define('DB_USER', 'xxx');

    /** MySQL database password */
    define('DB_PASSWORD', 'xxx');

    /** MySQL hostname */
    define('DB_HOST', 'localhost');

    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8');

    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');

    define('WP_ALLOW_MULTISITE', true);

    /**#@+
    * Authentication Unique Keys and Salts.
    *
    * Change these to different unique phrases!
    * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
    * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
    *
    * @since 2.6.0
    */
    define('AUTH_KEY', 'di*3e[%bIf}JWXFwxI=Qq|{c7J1<code>%RA;aR5yQ,2-vsxhT}p<Me:w</code>Nq$*+1=@Ycj');
    define('SECURE_AUTH_KEY', 'b^/nwHK+FR&8;gP&Z+q!,,.5|f;[rLv2NIV}eu-PxtqX|S)6#|rIB+9|>S:A-Oid');
    define('LOGGED_IN_KEY', '_>w2my8aud-$ Jv=%-wo [Fh+ /AQs^2:[^jY?}_oUNZ3dB>p<xol!]Z rq1;uIs');
    define('NONCE_KEY', 'MImWoLh!X(>E6IkvRY$}76Xx(IV$4ijql<R/Zd0QR-L%-h2!a-DHR{V hu@1V*O]');
    define('AUTH_SALT', 'E[7bB=}$7&|c1t<code>:^X=0(s9}-Cz^&9C%9z@O(x2@</code>bJ^f[>%%T$9wuATh(?A9h#s');
    define('SECURE_AUTH_SALT', ',dxYkzRyNG+pc@- UkhDBbx qT[4N;+=_|/R~||W672Xh6%{T!x|,kdh!G

    -Pijs’);

    define(‘LOGGED_IN_SALT’, ‘V|UcSSwm{H}joP<@m&2-%I Nvhw3|gM-{$*uhaX4xa{5*J*FUK1wGaI{u#|8)=’);

    define(‘NONCE_SALT’, ‘)$rgk@ke2;]{(hJ~Od%N^8F(-R[o(rCg$!hvDYV(Gh*+?AE/Ruz8M[>HDc};G]ZU’);

    define( ‘BB_AUTH_KEY’, ‘di*3e[%bIf}JWXFwxI=Qq|{c7J1%RA;aR5yQ,2-vsxhT}p<Me:wNq$*+1=@Ycj’ );

    define( ‘BB_SECURE_AUTH_KEY’, ‘b^/nwHK+FR&8;gP&Z+q!,,.5|f;[rLv2NIV}eu-PxtqX|S)6#|rIB+9|>S:A-Oid’ );

    define( ‘BB_LOGGED_IN_KEY’, ‘_>w2my8aud-$ Jv=%-wo [Fh+ /AQs^2:[^jY?}_oUNZ3dB>p<xol!]Z rq1;uIs’ );

    define( ‘BB_NONCE_KEY’, ‘MImWoLh!X(>E6IkvRY$}76Xx(IV$4ijql<R/Zd0QR-L%-h2!a-DHR{V hu@1V*O]’ );

    define( ‘COOKIEHASH’, ‘abe2eb1549111222254c933716b86d46’ );

    define( ‘COOKIE_DOMAIN’, ‘www.paperviewmagazine.com’ );

    define( ‘SITECOOKIEPATH’, ‘/’ );

    define( ‘COOKIEPATH’, ‘/’ );

    /**#@-*/

    /**

    * WordPress Database Table prefix.

    *

    * You can have multiple installations in one database if you give each a unique

    * prefix. Only numbers, letters, and underscores please!

    */

    $table_prefix = ‘pvwp_’;

    /**

    * WordPress Localized Language, defaults to English.

    *

    * Change this to localize WordPress. A corresponding MO file for the chosen

    * language must be installed to wp-content/languages. For example, install

    * de.mo to wp-content/languages and set WPLANG to ‘de’ to enable German

    * language support.

    */

    define (‘WPLANG’, ”);

    /**

    * For developers: WordPress debugging mode.

    *

    * Change this to true to enable the display of notices during development.

    * It is strongly recommended that plugin and theme developers use WP_DEBUG

    * in their development environments.

    */

    define(‘WP_DEBUG’, false);

    define( ‘MULTISITE’, true );

    define( ‘VHOST’, ‘no’ );

    $base = ‘/’;

    define( ‘DOMAIN_CURRENT_SITE’, ‘www.paperviewmagazine.com’ );

    define( ‘PATH_CURRENT_SITE’, ‘/’ );

    define( ‘SITE_ID_CURRENT_SITE’, 1 );

    define( ‘BLOG_ID_CURRENT_SITE’, 1 );

    /* That’s all, stop editing! Happy blogging. */

    /** Absolute path to the WordPress directory. */

    if ( !defined(‘ABSPATH’) )

    define(‘ABSPATH’, dirname(__FILE__) . ‘/’);

    /** Sets up WordPress vars and included files. */

    require_once(ABSPATH . ‘wp-settings.php’);

    ?>`

Viewing 5 replies - 1 through 5 (of 5 total)

  • gerikg
    Member

    @gerikg

    in you bb-config & wp-config file you have double the keys? Just keep the ones that start with BB_ for bb-config and without the BB_ in wp-config. Try that first. Clear you cache. If that still doesn’t work try taking out the line define( ‘COOKIEHASH’, ‘abe2eb1549111222254c933716b86d46’ ); from bb-config only.


    driz
    Member

    @driz

    Tried those. Still not working :( Really annoying. Any ideas? Thanks


    gerikg
    Member

    @gerikg

    you can email me the files and I can look at them. gerikg # gmail.com


    driz
    Member

    @driz

    Sent them.

    Quick Q: Why do I have to have the SALTS in both the DB and Config files? Also would the COOKIEPATH be causing the problems because I have the forums on a subdomain?

    Thanks


    driz
    Member

    @driz

    Also noticed that the KEYS are not the in the database just the SALTS only for both WordPress and bbPress. When installing bbPress it asks for both so what happens to the data you give for the KEYS? As it doesn’t save it in the DB just the SALTS. And why do you this stuff in the DB and the config files?

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar