Search Results for 'test'
-
Search Results
-
Hey All
Looking for a way for the admin to approve any newly registered users using the latest version of bbpress.
I know there’s a plugin out for this, but it doesn’t seem to work past version .9
Has anyone figured out a way to do this (or a workaround) that works for version 1+?
This is very vital to the forums I’ve set up so I’m really hoping there’s a fix out there!
thanks in advance for any insight
I’ve noticed that depending on the site configuration, many times plugins or template designs will require information about the first poster in a topic or the last poster.
The problem is that bbPress unfortunately (even in 1.1) only caches the post authors that are on the physical page you are on. So it causes two “out of flow” queries (one for user, one for usermeta) for each of those authors (first, last).
This means up to four needless queries are added depending on the topic page number (not first or last is the worst hit).
Even worse there is no direct filter/action on that process so it cannot be affected directly.
However I’ve come up with a workaround using a trick,
by catching the actions before and after the process.
I’ve only tested this on 0.9, but in theory should work in 1.1
if (is_topic && !is_bb_feed()) {
add_action('bb_topic.php_pre_db','usercachefix_load');
add_action('bb_topic.php','usercachefix_unload');
function usercachefix_load() {add_action('get_forum_where','usercachefix');}
function usercachefix_unload() {remove_action('get_forum_where','usercachefix'); global $posts; unset($posts['first'],$posts['last']);}
function usercachefix($x) {global $topic,$posts; $posts['first']->poster_id=$topic->topic_poster; $posts['last']->poster_id=$topic->topic_last_poster; return $x;}
}Make it into a mini-plugin and give it a try.
You really only need it if you are showing info about the first and/or last poster on every page of the topic.
You should see the query count go down by two to four queries on the page.
Or use bb-benchmark to more closely examine the queries and look for multiple calls to the user-table and usermeta-table.
Filtering (searching) of users in admin is not working properly… Yeah, is not working at all.
The Latest version with BP and WP 3.0.
Topic: Users Can't Post / Reply
I’ve installed an integrated WordPress 3.0 (NOT MU) and the latest BBPress. When users register with WP they can not add any reply or start a new post in the forums.
I tested this with the default unaltered theme and same thing.
Looking in the DB I see that each member is a “member” in WP but there is no BB_METAUSERS table for bbpress. I think this isn’t required when an integrated solution is installed.
Any idea why all new members are set to “Inactive”?
J
