Search Results for 'bbpress'
-
Search Results
-
Hi all
I’m looking into creating a kind of online consultation system using bbPress. The idea is that the body doing the consultation will create the topics which they would like people to give their views on/discuss, but they don’t want users to be able to create topics themselves.
So, there’ll be a few subforums (one each for a project) and within them a few threads, say up to 10, each being a question or topic within the project that views are sought on.
Here’s an example of the kind of thing I’d like to create: http://talklaw.co.nz/topic/are-you-being-watched
(alas the software used for that site costs £14,000 and we’d like to do is F/OSS if possible!)
Does this sound reasonably easy to set up with bbPress?
I just realized today if you are using a bunch of plugins that have their options stored in the bbpress meta, your query count has jumped on every page in bbPress 1.0.x
Apparently 1.0 now has a reserved list of option names that are pre-loaded, instead of *all* of them like 0.9 could. Plugins have to add their desired names to the pre-caching option, which of course 100% of all pre-exisiting plugings are not aware of, so they all cause an extra query in 1.0
This isn’t a magic bullet by any means but you can at least fix this behavior. There isn’t any flag you can turn on to cache all (that would be far too easy) but you can fool the routine by loading all the options before it gets around to it.
Simply make the below into a mini-plugin, or right click here
and save as
_load-options.phpin yourmy-plugins/directoryI strongly suggest you save it with a leading underscore so it auto-loads.
<?php
/*
Plugin Name: Load Options
*/
global $bbdb;
$results = $bbdb->get_results( "SELECT meta_key, meta_value FROM $bbdb->meta WHERE object_type = 'bb_option' ");
foreach ( $results as $options ) {
wp_cache_delete( $options->meta_key, 'bb_option_not_set' );
wp_cache_set( $options->meta_key, maybe_unserialize( $options->meta_value ), 'bb_option' );
}
?>Hi
I’ve just installed the new version of BBPress and followed the instructions to integrate
it with WP.
When I log in and click on Admin I just get a plain text page, where my only options
are to choose the template. So basically I can’t go any further with this install…
Does anyone have a way to fix this please
