Search Results for 'test'
-
Search Results
-
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
So, here exactly What I want,
Suppose I’ve planned to run multiple discussion boards, and I’m using
http://zptest.info/ ( WordPress )
http://zptest.info/students/ [bbpress 1]
http://zptest.info/teachers/ [bbpress 2]
http://zptest.info/management/ [bbpress 3]
I’ve done:
-1: Shared User Integration ( Works )
-2: Shared Database Integration ( Works )
-3: Shared Cookies Integration (Not Works, that’s what I want)
I’ve followed all instruction from bbpress Integration tutorial
Now cookies not works, you can test it at zptest.info
user: test
pass: test
(I can send also admin’s or ftp detail, if anyone really interested)
cookies are conflicting, sometimes not logout from other boards.
Suggestion:
I’m hopping there should be a plugin, just for set cookies for multiple boards in same domain.
People just do, user integration, and database integration.
then install ( cookies plugin ), that’s all,
Come on, _ck_, you can do it,
Thanks
KB
Hello
This is the first time I’m setting up WordPress and bbPress, so it could be something very obvious, but from reading the tutorial, I couldn’t figure out what to enter at Step 2 – WordPress integration:
CHECKED Add integration settings
CHECKED Add cookie integration settings
WordPress address (URL) This value is required to continue.
? http://192.168.0.8:8787/wordpress/
Blog address (URL)
? http://192.168.0.8:8787/wordpress/
WordPress “auth” cookie key
?
FYI, on the test host, I have WP installed in /var/www/wordpress/ and bbPress in /var/www/bbpress. The two applications shared the same database in MySQL, since I assume it’s easier that way and they use a different prefix when creating tables.
Considering this context, does someone know what to type above
Thank you for any help.