Skip to:
Content
Pages
Categories
Search
Top
Bottom

Cannot upgrade from 0.9.2 when using non-default table prefix

Published on February 18th, 2010 by

I’m attempting to do an upgrade of bbPress from 0.9.2 and get the following error every time I attempt to access any bbPress pages:

ERROR: Could not establish a database connection

I did some experimenting and found that when I change the table prefix from the one I’ve been using back to the default of bb_, I’m prompted to perform a new installation. The problem with this is that I don’t want to lose the existing contents of the forum.

Any advice or suggestions would be most appreciated.

Import data from system 'XYZ' (phpBB 2, 3 / SMF / etc)

Published on February 18th, 2010 by

Where are we now?

Aside from the questions surrounding integration with WordPress, another of our big questions is “how do I import from _____” (insert a different forum product of your choosing)

Right now the approach is ad-hoc at best: We are handing a PHP script around hand-to-hand that is able to convert a phpBB v2.0.x forum over to bbPress v. 0.9, and if you want to convert a different forum (say, SMF) the accepted wisdom is to install phpBB, convert to that, then convert to bbPress 0.9 and then upgrade.

The official coding standards for WordPress state:

Avoid touching the database directly. If there is a defined function that can get the data you need, use it. Database abstraction (using functions instead of queries) helps keep your code forward-compatible and, in cases where results are cached in memory, it can be many times faster.

As it stands bbPress imports clearly violate that principle by using the script we are passing around.

Solving the problem

Importing data clearly is an example where a strategy pattern solves things in an elegant fashion.

The strategy pattern (also known as the policy pattern) is a particular software design pattern, whereby algorithms can be selected at runtime.

The strategy pattern is useful for situations where it is necessary to dynamically swap the algorithms used in an application. The strategy pattern is intended to provide a means to define a family of algorithms, encapsulate each one as an object, and make them interchangeable. The strategy pattern lets the algorithms vary independently from clients that use them.

More concretely, this means creating a bbPress Import plugin which provides an overall multi-step process, and delegates to an external sub-plugin to retrieve the external datasource specific steps. I would argue that this ought to be a plugin (and remain a plugin rather than being pulled into the core of bbPress) because once you’ve imported from a given external forum, you can deactivate and uninstall the “import” code as its no longer required.

Roadmap

  1. We need to create a basic import plugin. — This I have done, it’s experimental and I’d like some more eyes on the code before calling it “done”
  2. We need to create import strategies for external forums, starting with phpBB2 — This I have done, by extracting SQL from the script we all pass hand-to-hand. Again, it needs more eyes on the code as a QA step.
  3. We need to create import strategies for other external forums, specifically SMF and phpBB3 — this is where the strategy pattern comes into its own – each can be developed independently and combined later. Its also a great place for community input.

Looking further out

The import plugin relies on calling the internal bb_new_post, bb_new_topic, bb_new_forum and to a certain degree the bb_new_user methods. As we move toward bbPress being a plugin to WordPress, these will become the only way to import data, as the script we pass around will become evermore obsolete.

Secondly, WordPress itself has an import framework. I suspect that any “import plugin” we write now will become somewhat obsolete in that timeframe. That said, if we do things right, the import strategies we create might migrate over. What I dont know is the timeframe. Is the bbPress-as-a-plugin-to-Wordpress change close enough on the horizon that we should simply target the WordPress import framework directly?

Thoughts / comments?

How to install BuddyPress onto a clean BBPress installation

Published on February 18th, 2010 by

Hi

Been trying to install Buddypress onto a clean BBPress instalation – but it keeps giving me an error:


Warning: require_once(WP_PLUGIN_DIR/buddypress/bp-core.php) [function.require-once]: failed to open stream: No such file or directory in C:wampwwwbbpressmy-pluginsbuddypressbp-loader.php on line 19

Fatal error: require_once() [function.require]: Failed opening required ‘WP_PLUGIN_DIR/buddypress/bp-core.php’ (include_path=’.;C:php5pear’) in C:wampwwwbbpressmy-pluginsbuddypressbp-loader.php on line 19


Does anyone know if this installation is at all possible (clean BBPress + BuddyPress forum) ?

I would like to avoid using WordPress Mu – to keep things as lean (simple) as possible !

Thanks in advance for any advice on the subject !

Jens

btw. – I have for a couple of weeks been doing research on how to run the best and most sufficient frontend bases open posting site (or almost open) – and has ended with bbPress (has 12 different test systems running on wamp and easyphp – among them Word MU – Drupal version 6 and 7 and others. It’s close to chaos for sure)

I Want To Mail All Users A Password Reset Link

Published on February 18th, 2010 by David-

I would like to mail all my registered users a password reset link. How do I go about this? Or if there’s currently a plugin for this, kindly point me in the right direction.

Thanks,

Dave.

BBPress vs. BuddyPress or in addition to it? A "newbie" has questions…

Published on February 18th, 2010 by dbneeley

I spent quite a few years doing marketing and corporate communication, and so far at least I have some basic questions I simply can’t find on the relevant websites. (It’d be very nice if the sites contained some sort of “Why you might want BBPress” or “Why you might want BuddyPress” or even perhaps “Basic requirements”–not to mention “Why you might want to install both BuddyPress and BBPress”.)

I am a complete newcomer to adding forums to a WordPress site, but I am planning to take the leap with a new blog site I am about to launch. A few basic questions, please:

From the looks of BuddyPress, it also offers forums by itself…although this is unclear from their site. What is the advantage, of any, of having BBPress either instead of or in addition to BuddyPress? Also, so far at least I have not found on the BBPress site a requirements listing–will it now work with a straight WordPress install, or is it tied to WordPress MU at this point? (With the upcoming integration of WP and WPMU, at this juncture I simply don’t want to go through the hassle of installing MU.)

I would appreciate any comments, suggestions, or advice you can give. Thanks!

Help needed to transfer data from IPB 3.0 to bbpress

Published on February 18th, 2010 by adevigus

Hello

I’m running a forum on IPB 3.0 I have over 2000 users a d over 12000 posts .. I would like to convert my site to bbpress (especially looking for the WordPress integration)

anybody ready to help me ???

feedbacks are welcome

Alessandro devigus

Auto Generated Passwords Hit and Miss

Published on February 18th, 2010 by deadlyhifi

We get an average of 40 people a day registering on our forums and we use the “Approve User Registration” plugin to control spammers etc. Every morning I wake up to 2 or 3 emails from new users stating the auto generated password doesn’t work. I have no idea why this is happening. Could it be to do with the approve users plugin? I’m not in a position to switch that off at the moment though.

Any one else experienced this, know what I should look into?

Does deleting a forum post delete the related bb_meta as well?

Published on February 18th, 2010 by r-a-y

If a plugin writes some bb_post meta in the bb_meta table when a post is made, when deleting a forum post, is the bb_post meta supposed to be deleted as well?

Or is it the default behaviour to keep any bb_post meta even if the forum post is deleted?

Can't access admin panel after integration

Published on February 17th, 2010 by Cyndy Otty

Well this is an odd thing, I’m running a BuddyPress site at http://guide-dogs.org and I just finished integrating bbPress into it. On the surface things are spiffy, when logged in I can post and comment and all the other user type stuff.

However, if I, as the admin, log in via the main part of the website, when I try to visit the admin panel for bbPress, I just get redirected back to the forums. (I can SEE the “Admin” link and all, so it seems to recognize that I’m the “key master/administrator.”) Even more strange is if I log in via the forums this isn’t an issue and I can access both admin panels (WP and bbPress).

I’m pretty sure it’s not supposed to work like that.

Paid bbPress Developer needed for mod

Published on February 17th, 2010 by Meraj Chhaya

Hi there!

I’m planning to create a device spec site using bbPress.

I’ve got sketches with layout and functionality done, now I need someone who has PHP knowledge, who can play with bbPress themes and plugins.

Please email me, or reply here.

merajchhaya .at. gmail.com dot. com

Skip to toolbar