Skip to:
Content
Pages
Categories
Search
Top
Bottom

Urgent !! BuddyPress on a Sub Directory Installed WP 3.0.4


  • studio8c
    Participant

    @studio8c

    I did a complete new install Multisite install.+ BP.

    ## situation ##

    domain.com/ * with out BP functions.+ user login

    domain.com/members-area/ * BP communty must be only active on here now using the default. BP theme for testing. (this will be a member area)

    • Only activated BP in the site admin of the “/members-area/” site.
    • Moved the 6 BP template in the /bp-default/ map and in /blogs.dir/2/

    ## Problem ##

    • when is use the links in the navigation bar ‘activity’ and ‘members’ ect.
    ( it shows domain/members-area/)

    i’m getting a “Page Not Found”

    * when i go to the top drop down menu
    he brings me here on the main site and not in the BP site domain.com/members-area/

    domain.com/members/admin/activity/

    So he redirects me back to index.php on the root.

    ## my vsion ##

    the BP install is rooting / looking onlly ad the root of the multisite install.

    ## htacces ##

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ – [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
    RewriteRule . index.php [L]

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

    /** MySQL database username */
    define( ‘BBDB_USER’, ‘xxxxx’ );

    /** MySQL database password */
    define( ‘BBDB_PASSWORD’, ‘xxxx’ );

    /** 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 = ‘wp_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’, ” );

    $bb->custom_user_table = ‘wp_users’;
    $bb->custom_user_meta_table = ‘wp_usermeta’;

    $bb->uri = ‘http://www.twine-networks.com/wp-content/plugins/buddypress/bp-forums/bbpress/&#8217;;
    $bb->name = ‘ Forums’;
    $bb->wordpress_mu_primary_blog_id = 1;

    define(‘BB_AUTH_SALT’, ‘put your unique phrase here’);
    define(‘BB_LOGGED_IN_SALT’, ‘put your unique phrase here’);
    define(‘BB_SECURE_AUTH_SALT’, ‘put your unique phrase here’);

    define(‘WP_AUTH_COOKIE_VERSION’, 2);

    ?>

    ## wp-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’, ‘xxxx’);

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

    /**#@+
    * 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’, ‘put your unique phrase here’);
    define(‘SECURE_AUTH_KEY’, ‘xxxxxxxxxxxxxx’);
    define(‘LOGGED_IN_KEY’, ‘xxxxxxxxxxxxxxxx’);
    define(‘NONCE_KEY’, ‘xxxxxxxxxxxxxxxx’);
    define(‘AUTH_SALT’, ‘xxxxxxxxxxxxxxx’);
    define(‘SECURE_AUTH_SALT’, ‘xxxxxxxxxxxx’);
    define(‘LOGGED_IN_SALT’, ‘xxxxxxxxxxxxxx’);
    define(‘NONCE_SALT’, ‘xxxxxxxxxxxxxxxxxxxx’);

    /**#@-*/

    /**
    * 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 = ‘wp_’;

    /**
    * 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( ‘SUBDOMAIN_INSTALL’, false );
    $base = ‘/’;
    define( ‘DOMAIN_CURRENT_SITE’, ‘www.domain.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’);

    Thanks

    Dennis

Viewing 3 replies - 1 through 3 (of 3 total)
  • Set which blog ID BuddyPress will run on:
    define ( ‘BP_ROOT_BLOG’, 2 );

    For site ID=2, for example. Put in your wp-confit

    Minor note for all: please never state ‘urgent’ in a thread title, thread titles on tech support forums are meant to be descriptive of the nature of the issue only


    studio8c
    Participant

    @studio8c

    Thanks paul , oke hnla thanks for notice it.

    Topic closed

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Urgent !! BuddyPress on a Sub Directory Installed WP 3.0.4’ is closed to new replies.
Skip to toolbar