Search Results for 'code'
-
Search Results
-
I recently upgraded my old 0.8.3.1 bbPress to version 0.9.0.2. For the most part, the upgrade went great!
However, during the upgrade, all forum slugs were “recalculated”, so if I had manually edited my forum slugs, they were overwritten.
By way of example, say I ran this forum and I created a forum named “Super Troubleshooting”. If I had activated pretty permalinks, the URL for this forum would be: http://bbpress.org/forums/forum/super-troubleshooting.
Then, say I manually went in and changed the “forum slug” to be “superdupertroubleshooting” (for SEO reasons). So now the URL for that forum would be: http://bbpress.org/forums/forum/superdupertroubleshooting.
When I upgraded from 0.8.3.1 to 0.9.0.1, the upgrade function “recalculated” the forum slug using the forum title. In our example, this would change the URL from http://bbpress.org/forums/forum/superdupertroubleshooting to http://bbpress.org/forums/forum/super-troubleshooting.
I looked in the code, and this is all controlled by function bb_upgrade_process_all_slugs() in /bb-admin/upgrade-functions.php. Reading the code, it seems like the code also “recalculates” slugs for topics too!
“Recalculating” the slugs for all forums and topics seems like an odd design decision to me, because it changes URLs so the webmaster loses Google juice. I was going to create a ticket in Trac, but maybe I’m missing something. Is there a good reason to “recalculate” slugs when upgrading a bbPress installation?
Topic: Helping bbPress.org
Hi ,
I just installed bbpress 1.0-alpha-2 with wordpress 2.6.3, but not intergete with wordpress. the installation is very smooth. but when I access my forum, got Http 404 error(page not found). and my server supports permalink . following is my bb-config.php, please help to take a look.thanks a lot.
<?php
// ** MySQL settings ** //
define(‘BBDB_NAME’, ‘******’); // The name of the database
define(‘BBDB_USER’, ‘******’); // Your MySQL username
define(‘BBDB_PASSWORD’, ‘******’); // …and password
define(‘BBDB_HOST’, ‘localhost’); // 99% chance you won’t need to change these last few
define(‘BBDB_CHARSET’, ‘utf8’); // If you are *upgrading*, and your old bb-config.php does
define(‘BBDB_COLLATE’, ”); // not have these two contstants in them, DO NOT define them
// If you are installing for the first time, leave them here
// Change each KEY to a different unique phrase. You won’t have to remember the phrases later,
// so make them long and complicated. You can visit https://www.grc.com/passwords.htm
// to get phrases generated for you, or just make something up. Each key should have a different phrase.
// If you are integrating logins with WordPress, you will need to match each key to
// the value of their equivalent keys in the WordPress file wp-config.php
define(‘BB_AUTH_KEY’, ‘put your unique phrase here’); // Change this to a unique phrase.
define(‘BB_SECURE_AUTH_KEY’, ‘put your unique phrase here’); // Change this to a unique phrase.
define(‘BB_LOGGED_IN_KEY’, ‘put your unique phrase here’); // Change this to a unique phrase.
// If you are running multiple bbPress installations in a single database,
// you will probably want to change this.
$bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!
// Change this to localize bbPress. A corresponding MO file for the
// chosen language must be installed to bb-includes/languages.
// For example, install de.mo to bb-includes/languages and set BB_LANG to ‘de’
// to enable German language support.
define(‘BB_LANG’, ”);
?>