Unfortunately I’m not on Facebook so I cannot see that conversation you had 🙁
Perhaps you could link to this topic in that conversation and have the WPseo plugin author join this conversation?
As to Yoast, I believe Yoast is compatible with bbPress, @joostdevalk wrote here last year “I’ll bump BBPress on to the list again, we’ve long had issues with that, we should just fix it”, I’ve no idea if anything was updated for bbPress or not, was it @joostdevalk ?
I myself don’t use any SEO plugins let alone any that you mention, we’re happy to work with any plugin author to help add support their plugin if we can.
I’m sure there are other bbPress users who do use various SEO plugins, maybe someone else here has some tips on using Yoast WordPress SEO, WPseo, or All in One SEO?
p.s. This topic is going to attract many a spammer, so if your reply doesn’t show up straight away that will be due to Akismet being proactive, if your reply doesn’t turn up straight away give it some time for the moderators to approve and move out of the spam queue.
@netweb thanks!
bbPress 2.6 Beta 2 is working good.
When will bbPress 2.6 be released?
ok, I’ve taken pity and kicked this round for an hour – I expect to be on your Christmas list !!!
This seems to work, although please do some testing for all roles, and check it out.
/*Customize the BBPress roles to allow Participants to trash topics*/
add_filter( 'bbp_get_caps_for_role', 'ST_add_role_caps_filter', 10, 2 );
function ST_add_role_caps_filter( $caps, $role ){
// Only filter for roles we are interested in!
if( $role == bbp_get_participant_role() ) {
$caps = array(
// Primary caps
'spectate' => true,
'participate' => true,
// Forum caps
'read_private_forums' => true,
// Topic caps
'publish_topics' => true,
'edit_topics' => true,
'delete_topics' => true,
// Reply caps
'publish_replies' => true,
'edit_replies' => true,
'delete_replies' => true,
// Topic tag caps
'assign_topic_tags' => true,
);
}
return $caps;
}
/*then only allow participants to trash their own topics*/
add_filter( 'bbp_map_reply_meta_caps', 'ST_tweak_trash_meta_caps', 11, 4 );
add_filter( 'bbp_map_topic_meta_caps', 'ST_tweak_trash_meta_caps', 11, 4 );
function ST_tweak_trash_meta_caps( $caps, $cap, $user_id, $args ){
// apply only to delete_reply and delete_topic
if ( $cap == "delete_reply" || $cap == "delete_topic" ){
// Get the post
$_post = get_post( $args[0] );
if ( !empty( $_post ) ) {
// Get caps for post type object
$post_type = get_post_type_object( $_post->post_type );
//$caps = array();
// Add 'do_not_allow' cap if user is spam or deleted
if ( bbp_is_user_inactive( $user_id ) ) {
$caps[] = 'do_not_allow';
// Moderators can always edit forum content
} elseif ( user_can( $user_id, 'moderate' ) ) {
$caps[] = 'moderate';
// User is author so allow edit if not in admin
} elseif ( user_can( $user_id, 'participate' ) && ( (int) $user_id === (int) $_post->post_author ) ) {
$caps = array();
//$caps[] = $post_type->cap->delete_posts;
// Unknown so do not allow
} else {
$caps[] = 'do_not_allow';
}
}
}
// return the capabilities
return $caps;
}
@airathalitov, as you’re running PHP 7.1 you’ll need to use bbPress 2.6, 2.6 beta-2 is available now, and beta-3 will be released in the next 24 hours, you can grab the download links from this post:
bbPress 2.6 Beta 2
the bbpress search widget does that – is there something particular that you want?
I can open https://airat.biz/forums/ after delete [] in /plugins/bbpress/includes/forums/functions.php on lines 1800, 1818, 1832
Old: $post_stati[]
New: $post_stati
And line 1854:
Old: $meta_query[]
New: $meta_query
Can you check it out?
I think this issue with php7 support
Now i have a warning:
[Thu Mar 02 20:46:15.572617 2017] [php7:warn] [pid 23849] [client ip] PHP Warning: array_unique() expects parameter 1 to be array, null given in /site_path/wp-content/plugins/bbpress/includes/forums/functions.php on line 1836
I have the same problem.
I can’t open page https://airat.biz/forums/ and https://airat.biz/wp-admin/edit.php?post_type=forum
Error 500
I saved Permalinks, reinstalled plugin, but pages still don’t working.
bbPress tools also don’t help
/wp-admin/tools.php?page=bbp-repair
Error log:
[Thu Mar 02 20:33:57.235075 2017] [php7:error] [pid 16265] [client ip] PHP Fatal error: Uncaught Error: [] operator not supported for strings in /site_path/wp-content/plugins/bbpress/includes/forums/functions.php:1800\nStack trace:\n#0 /site_path/wp-includes/class-wp-hook.php(298): bbp_pre_get_posts_normalize_forum_visibility(Object(WP_Query))\n#1 /site_path/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)\n#2 /site_path/wp-includes/plugin.php(515): WP_Hook->do_action(Array)\n#3 /site_path/wp-includes/class-wp-query.php(1681): do_action_ref_array('pre_get_posts', Array)\n#4 /site_path/wp-includes/class-wp-query.php(3238): WP_Query->get_posts()\n#5 /site_path/wp-includes/class-wp.php(617): WP_Query->query(Array)\n#6 /site_path/wp-includes/class-wp.php(735): WP->query_posts()\n#7 /site_path/wp-includes/functions.php(955): WP->main('')\n#8 /home/a in /site_path/wp-content/plugins/bbpress/includes/forums/functions.php on line 1800
bbPress 2.5.12
BuddyPress 2.8.1
WordPress 4.7.2
PHP 7.1.2-3+deb.sury.org~xenial+1
Is there a way to search across forums in bbPress? thank you!
In loop-replies.php, I want to change WP_Query.
But ‘bbp_repliesisbbpress()->reply_query->have_posts();` ,so I don’t know how to change some of WP_Query.
Please someone teach me how to.
Wordpress version 4.7.2
bbPress version 2.5.12
This theme uses the genesis framework, so I suspect you will need to add this plugin to make it all work
bbPress Genesis Extend
I want to show a description for a forum in the forums list. Is there a way to enable this with bbPress, or a plugin that does it?
use my style pack plugin
bbp style pack
once activated go to
dashboard>settings>bbp style pack>forum display and look at 6 & 7
The forum description is put in the content of the forum dashboard>forums
Thanks for the info. I just downloaded the plugin. Sounds like it’s the answer to my problem. As an alternative, I might deactivate the bbpress plugin temporarily since no one is using it right now. You have been very helpful and I really appreciate it.
Hi there,
I was looking for an option restrict link only for registered users. Say someone put a link in the comment, normal user will see it as it is (e.g https://bbpress.org/forums/new-topic/) But unregistered one will see “please register to see the link”. Is there a way to add this functionality?
Thank you
Md Sadiqur Rahman
Does anyone know why bbpress isn’t showing the seo title and description?
Having recently migrated from vbulletin where i had category sub-forums with threads and posts inside. What is my best bet given that bbpress doesn’t appear to support that feature?
Hi bbPress,
From the edit page, I used this shortcode [bbp-forum-index].
Then set full template with no sidebars and from the bottom sidebar I chosen NONE. The page still showing the sidebar?
The main question is, is there anyway making NOT to show the sidebar on the page?
Please advise help, thanks
Hi,
I am using WP 4.7.2 and BBPress 2.5.12. I started using BBPress just a couple of weeks ago. Today out of the blue I started seeing all sorts of registrations. The thing that’s unusual is the User Name. All off the names have “Nom” appended to them.
for example: CarolineNom, JoJoktilarNom, LucasusNom, StevieNom, etc.
15-20 registrations just from today.
Any thoughts?
Greg
Use the bbp_get_user_role_map filter, to map WordPress roles to bbPress roles.
Hi!
I’m looking for a fix. I wan’t to change the font-size of my board category. As you can see on my website: http://www.nihilum.cc/forums/, every section is bigger than the category/forum title.
Please help me, i’ve looked into everything i knew, but didn’t found out the problem.
best regards
Simon
I installed bbpress and posted the first items. I was logged in as advgvk.
vgvk-forum
If I follow the link “advgvk” I don’t get the user profile. Please can anyone help me?
Kind regards eric
Hi again….
Just to let you know, I tried to reinstall the WP Core but that doesn’t seem to make a difference either.
I cant understand what maybe the issue… Even on its own, it seems to present the same problem…
Ive tried to delete and reinstall bbpress, changed the theme, reinstalled the Core, removed all the plugins…. and for some reason it still doesn’t seem to work…. 🙁
Hi,
I use Private status to protect some forums and I would like to have a login page instead of 404 on private posts because it’s very inconvenient for people who have subscribed to a topic and click on the link to read new replies, to see a 404 if they are not logged in. (bbPress Private groups doesn’t work for this too.)
I tried a lot of things, but I was never able to catch status of topic’s forum with a single function.
bbp_is_forum_private doesn’t work here (there’s no ID).
get_queried_object() is empty.
I can have topic slug ($wp_query->query['topic']) but strangely, get_page_by_path doesn’t work.
Finaly, I have to make a SQL request to find ID and post_parent (so, forum) from slug, then use bbp_is_forum_private (to post_parent because it doesn’t work witk ID and ancestor)! It’s a little bit… heavy.
Do you have a best method?