Skip to:
Content
Pages
Categories
Search
Top
Bottom

No table prefix?

Published on January 23rd, 2009 by

Im installing bbpress, the newest alpha, and integrating it with wordpress 2.7

After installation (goes smoothly) i go to the main page, and it says

You must specify a table prefix in your bb-config.php file.

When i go into my config file, i see the prefix defined as bb_….

What am i doing wrong?

Thanks!

Option Screen turns White

Published on January 23rd, 2009 by

When I ‘m in the WordPress Integration tab and set the User Role Map and click on “Save User Role Map” the site loads for a while and then turns white (browser says done).

Is that normal or could that mean an error occurred?

Maybe because I have too much users? (About 11,100)

(I’m using 1.0a6)

Linking Posts to Topics

Published on January 22nd, 2009 by Ipstenu (Mika Epstein)

This isn’t a plugin, it’s a ‘hack’ but I can’t think of where else to put this.

I have blog posts (duh) and I have forum topics that, sometimes, relate. I wanted to have a way to relate the blog posts to say ‘Comment here’ and ‘Forum chat here.’

The solution is stupid easy. I made a custom field in my blog (forum_topic) and then added this to the link with my comments link:

<?php $forum= get_post_meta($post->ID, 'forum_topic', true); if ($forum) : ?><a href="<?php echo $forum; ?>">Forum Topic</a>

And now if there’s a related forum topic, I make the custom field, add the link in that field for the post, and it shows up. No topic? No link!

Now if I can do that in reverse, that would be cool… related blog posts to this forum topic.

Make tags an option not a requirement

Published on January 22nd, 2009 by xanthe

This feature is great, if you like that sort of thing, but for a busy forum it really adds to the sense of clutter and schyzophrenic confusion for my users. They complain about it incessantly.

I searched the forums for ‘how to disable tags’ and found one thread where not enough information was provided to allow me to remove them entirely.

I was just wondering why on earth this isn’t a toggleable feature a not just ‘always on’?

At the very least, would you consider implementing a switch for the tag function in the admin panel or maybe provide adequete documentation for admins to remove it from their install/s?

Many thanks!

– Xanthe

Latest discussion: Display three per forum?

Published on January 22nd, 2009 by nomad1

Is it possible to order the most recent discussions on the front page per forum?

I am planning to make the forum multilingual, so I would like to display the three most recent topics, ordered by language (one forum per language). I suppose this must be possible somehow? Thanks!

Migrate users from bbPress to WordPress….

Published on January 22nd, 2009 by Tom Lynch

I have recently migrated my entire phpBB over to bbPress and now want to move the bbPress users into wordpress mu so I can use wordpress integration the problem was that there is no easy way to migrate and check the users aren’t doubling up…

I wrote a simple php script to do just that and it allowed me to list out the users where manual attention is required, it can be run just from the command line like this…. ‘php -f file.php’ and will move the users over perfectly (at least for me)…

Note there has been no testing of this code it worked for me and may cause you issues, back up your database first!

Comments on the code appreciated for future improvement.

‘<?php

echo “n”;

echo “+


+n”;

echo “| bbPress to WordPress User Migration |n”;

echo “+


+n”;

echo “| Created by: |n”;

echo “| Tom Lynch |n”;

echo “+


+n”;

echo “n”;

echo “Messages:n”;

echo “n”;

echo “Username Messagen”;

echo ”



n”;

function printSpaces($username) {

$spaces = 25 – strlen($username);

echo $username;

for ($i = 0; $i < $spaces+1; $i++) {

echo ” “;

}

}

// Enter your database host, username and password here…

mysql_connect(‘localhost’, ‘username’, ‘password’);

// Enter your database name here (both tables must be in same database – sorry)

mysql_select_db(‘database’);

$migrated = 0;

$errors = 0;

$query = mysql_query(“SELECT user_login, user_pass, user_nicename, user_email, user_url, user_registered, user_status, display_name FROM bb_users WHERE user_pass LIKE ‘$P$B%’;”);

while ($data = mysql_fetch_assoc($query)) {

$query2 = mysql_query(“SELECT user_login, user_email FROM wp_users WHERE user_login = ‘”.$data.”‘ || user_email = ‘”.$data.”‘;”);

if (mysql_num_rows($query2) > 0) {

$data2 = mysql_fetch_assoc($query2);

if ($data == $data2 && $data == $data2) {

// Suppressing already migrated users error

//echo printSpaces($data) . ” has already been migrated by the looks of it!n”;

} else if ($data == $data2) {

echo printSpaces($data) . ” could not be migrated, that user name is already taken! (“.$data.”)n”;

$errors++;

} else if ($data == $data2) {

echo printSpaces($data) . ” could not be migrated, that email address is already taken! (“.$data.”)n”;

$errors++;

}

} else {

mysql_query(“INSERT INTO wp_users (user_login, user_pass, user_nicename, user_email, user_url, user_registered, user_status, display_name) VALUES (‘” . $data . “‘, ‘” . $data . “‘, ‘” . $data . “‘, ‘” . $data . “‘, ‘” . $data . “‘, ‘” . $data . “‘, ‘” . $data . “‘, ‘” . $data . “‘);”);

// Suppressing user migrated message

//echo $data . ” was migratedn”;

$migrated++;

}

}

$alreadyDone = ((mysql_num_rows($query) – $errors) – $migrated);

echo “n”;

echo “Stats:n”;

echo “n”;

echo “Users Migrated: ” . $migrated . “n”;

echo “Already Migrated: ” . $alreadyDone . “n”;

echo “Not Migrated: ” . $errors . “n”;

echo “=======================================n”;

echo “Total: ” . mysql_num_rows($query) . “n”;

echo “n”;

?>’

Client-side Performance

Published on January 21st, 2009 by

One of bbPress’s focus is to be fast, but like a lot of framework, it seems to ignore the basics rules of good client-side performance. For instance, if you are logged-in and if you are on topic’s page, there are 7 external JS requests, all of them placed in the head. Page rendering is blocked until those JS files are fully loaded. Ideally, we should minimize the number of requests (concatenating all the JS files into 1) and put them at the bottom of the page before body.

bbPress is also using two JS frameworks that has overlapping functionalities (Prototype and jQuery), ideally we should choose one and stick with it (preferably jQuery, imho). There are also some code that duplicate functionality that already exists in the JS framework, for instance: add-load-event.js.

I realize this might be easier said than done, but I would like to know if this is at least being considered in the roadmap. If not, is there any suggestion before I hack the core? (I don’t think a plugin can do this?)

Thanks,

William

Deleting Users results in Malformed SQL Syntax

Published on January 21st, 2009 by Andrew

I am upgrading an old .83 bbpress installation to Alpha 1.0r6.

I have about 6k posts in the .83 database.

After upgrading the database I’ve noticed the following problems. Several of the posts in the database were made by users no longer in the database. If a topic containing posts by these now ‘anonymous’ users is displayed, I get the following error at the top of the screen.

DB Error in wp_users::append_meta: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '32) /* WP_Users::append_meta */' at line 1

SELECT user_id, meta_key, meta_value FROM wp_usermeta WHERE user_id IN (1,,32) /* WP_Users::append_meta */

If I delete the anonymous posts in the thread, the problem goes away. Using PHPAdmin I checked the user ID’s assigned to the posts and there are no users with those user ID’s in wp_users. (I have an integrated installation).

I thought the problem was a result of an upgrade, so I created a new user, made some posts, and then deleted that user. The problem still exists. I have not tried this on a clean install and it would be useful if someone could try that.

I am running the default Kak. Blue theme.

I believe I tracked the problem request to a backpress file.

bb-includes/backpress/class.wp-users.php:

if ( $metas = $this->db->get_results("SELECT $meta_field, meta_key, meta_value FROM {$this->db->$meta_table} WHERE $meta_field IN ($ids) /* WP_Users::append_meta */") ) {

I am not a SQL sleuth but I believe the $ids field is being populated with nulls associated with deleted users.

Redirect Login target parent

Published on January 21st, 2009 by

Hi I am integrated with wordpress and am using the bb_press login to handle the users login and registration. The login is housed under the wordpress roof, meaning I want to blogs look but with the bbpress login. So I placed an iframe between header and footer for when they click login.

Well, My problem is that from this iframe I don’t know how to get bb-login.php to target the parent when its done and not stay within the iframe. And yes, I need the iframe, how else could I use the bbpress login while still making the users feel they are within the confines of the blog?

Help please! Did I post in the right forum. If not help me know where to post so I get help quick!

Thanks a million in advance!

How to make the starting post to be viewable on every page?

Published on January 21st, 2009 by vertus

How to make the starting post to be viewable on every page?

Skip to toolbar