Search Results for 'bbpress'
-
Search Results
-
Does anyone know of a plugin or similar for a universal search across the BuddyPress and bbPress portions of my site?
I have been looking around and found some hacks for WordPress / BuddyPress, but nothing for BuddyPress / bbPress.
Topic: how do users login?
I just installed bbpress to my site, and when I am logged out, I can’t add topics or comment, or participate. How do users create profiles, and login to the forum?
Am I missing something very obvious?
Topic: Inefficient / heavy query
Hello,
We’ve got a really big bbPress forum running at http://realmadridcf.nl.
At some point though, the site crashed because of heavy query. After some inspection of the SQL slow query log, we found out that it was this query:
# Query_time: 2.798700 Lock_time: 0.000138 Rows_sent: 5 Rows_examined:
366600
SET timestamp=1321347478;
SELECT SQL_CALC_FOUND_ROWS wpecs_posts.* FROM wpecs_posts INNER JOIN
wpecs_postmeta ON (wpecs_posts.ID = wpecs_postmeta.post_id) WHERE 1=1
AND wpecs_posts.post_type IN ('topic', 'reply') AND
(wpecs_posts.post_status = 'publish' OR wpecs_posts.post_status =
'closed') AND ( (wpecs_postmeta.meta_key = '_bbp_forum_id' AND
CAST(wpecs_postmeta.meta_value AS CHAR) NOT IN
('8365804','8558913','8558914','8561009','8561010','187','8365804')) )
GROUP BY wpecs_posts.ID ORDER BY wpecs_posts.post_date DESC LIMIT 0, 5;
You can see that this query is obviously way too heavy: Rows_sent: 5 Rows_examined:
366600…
After some examination we found out that the query was made through bbp_forum_functions.php – line 923 – function bbp_pre_get_posts_exclude_forums.
Has this problem ever occurred before? Is there someone with a solution?
Regards,
Tommy
I’m looking to get the same setup as this here forum. I can’t figure out how you get your topics to show as the main content on your “forums” page. If your page slug is set to “forums”, and you have your bbPress slugs set to “forums”, then bbPress reads it as the forum-archives page, isn’t that right?
In that case, I’d have to make the forum-archives php file into a topics archive (then use the forums list widget for the sidebar).
And then, once you get the topics to show up on the “forums” page, you have a “Forums” sidebar on the left with names and descriptions, which the built-in widget doesn’t have an option for.
Even with a fully-custom page template, the fact that the slug is “forums” causes the conflict and automatically shows the forums archive page. Does that makes sense?
Any hints on how you did this? Thanks very much in advance.
Dave
Topic: Language change problem
Hello, I am using latest BBpress as a plugin for WordPress 3.2.1.
I want to enable lithuanian language for BBpress, created necessary folder and uploaded language file, but i can’t find bb-config.php file. There is no such file at all… What should I do? Thank you.I just spent hours figuring this out so I thought I’d try and save others the bother by sharing it here.
The basic aim was to hide the contents of topics in a bbPress 2.0 forum from any users not logged in. This makes for a nice private forum.
I found suggestions about making forums hidden, private and so on but none of them really worked as they hid them for logged in users too.
My final solution was to make bbPress ‘dumb’ when it comes to logged out users. I.e., it could either be clever and say “there are topics, but you’re not allowed to see them until you login” or it could just say “there are no topics”.
The following code does the latter, dumb version by hooking into the forums, topics and replies loops.
Code:function pj_hla_logged_in_topics($have_posts){
if (!is_user_logged_in()){
$have_posts = null;
}
return $have_posts;
}
add_filter(‘bbp_has_topics’, ‘pj_hla_logged_in_topics’);
add_filter(‘bbp_has_forums’, ‘pj_hla_logged_in_topics’);
add_filter(‘bbp_has_replies’, ‘pj_hla_logged_in_topics’);I simply placed this within my theme’s functions.php but you could just as easily wrap this in a function.
Hope that helps someone!
the BBPress plugin did not have the bb-config.php, so I used the bb-config that is within the buddypress. Hence, I couldnt get the bb-press 2.0 to work. But again when I did it with what is built into buddypress itself, all the files and folders showed up like they were missing.
yours might be the halcyon we’ve all been hoping for! that’s the beauty of all this stuff! 