Hi Robin, and thanks a lot for your answer. I spent thours trying to achieve this but without success. The search just always returns results from all forums. I must confess I’m a beginner with PHP… But, is there any chance that this feature could be added in your “bbp additional shortcodes” plugin. Something like [bbp-search forums='10,12,15']. I just discovered your plugins on your website and you did an amazing work. Of course I’m ready to give some donation for that but I like to know if this is possible or not first 🙂 But maybe it’s not as simple… Thanks
I am experiencing exactly the same problem. BP Group Moderators do have capabilities like edit, close, merge, split topics or replies in the Group Forum but they do not see the textbox to assign or edit tags. I tried to show the box by hacking the files
/wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php
and
/wp-content/plugins/bbpress/templates/default/bbpress/form-reply.php
by removing the condition “&& ( current_user_can( ‘assign_topic_tags’ )”
but then the tags assigned in the box have not been saved, anyway.
There must be a bug in the capabilities mapping from BP group moderator to bbP forum moderator. The capabilities like ‘assign_topic_tags’, ‘edit_topic_tags’, etc. are missing there.
For BP group admins and ordinary members it works well, they can assign and edit topic tags in their group forum.
But where is the code of this mapping? I cannot find it.
Since switching to HTTPS you need to update your siteurl and homeurl to use HTTPS at /wp-admin/options-general.php
For multisite @ragir it depends how you have your site setup, this article covers your options on what you can, and can not do to switch to https for multisite 🙂
How to Set Up HTTPS on WordPress Multisite Without Headaches
Nvm, got solution:
<?php bbp_reply_author_link( array( 'sep' => '', 'show_role' => false, 'type' => 'name' ) ); ?>
and
<?php bbp_reply_author_link( array( 'sep' => '', 'show_role' => true, 'type' => 'avatar' ) ); ?>
Guten Abend,
This should explain you the way to go: https://codex.bbpress.org/custom-capabilities/
Pascal.
Hi Diana,
To deactivate the bar for everybody, you could add in your functions.php :
add_filter('show_admin_bar', '__return_false');
If you want to hide it for all, except for administrators :
add_action(‘after_setup_theme’, ‘remove_admin_bar’);
function remove_admin_bar() {
if (!current_user_can(‘administrator’) && !is_admin()) {
show_admin_bar(false);
}
}
Hope that helped.
If you want to code it yourself, this is one of the possibilities:
$users_arr = bbp_get_forum_subscribers($forum_id);
$subscriber_count = count($users_arr);
I have just added it to my ‘bbP Toolkit’ plugin, so you can find it in the next version in some days.
Hey Robin and Kajzh, did you ever get this to work? I am having the exact same problem. the custom made role is showing up under the forum role dropdown on the user profile but when the profile is saved after selecting the new role it does the default message when no role is assigned “No Role For These Forums”. Robin I did what you suggested by deactivating plugins and changing the theme but to no avail. Please see the function below.
function np_add_custom_role( $bbp_roles ) {
$bbp_roles['beta_tester'] = array(
'name' => 'Beta Tester', 'bbpress',
'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() )
);
return $bbp_roles;
}
add_filter( 'bbp_get_dynamic_roles', 'np_add_custom_role', 10 , 2 );
Thanks in advanced!
Hi,
But you should not need to run anything from https://codex.bbpress.org/getting-started/bbpress-in-your-language/ . If you have a standard WordPress install, the language files are downloaded automatically.
How about other plugins that have translations available, do they work ? Like SEO or something ?
Hi,
I tried to start back from 0. I reinstalled wordpress 4.7.3, deleted loco translate, deleted and reinstalled bbpress. I then followed this guide : https://codex.bbpress.org/getting-started/bbpress-in-your-language/ to download and install a translation which is apparently 100% complete for my language. Still it’s not completely working. I verified in /wp-admin/update-core.php and I have no updates. You cannot blame loco translate this time as it’s not even installed anymore on my website. Also, I can know my wordpress language is correctly setup because some translation does work as you can see on the following image :

Please help me, this really seem like a bug with your plugin…
Thanks
hello
first i wana thank you for this awesome software
but right now i have problem
i use stable archlinux 64 bit with nginx and after upgrading to php 7.1, the bbpres forum dont work anymore.
here is link to my page, use top menu and click on “forum”:
https://darktime.cz
here is log msg:
Mar 15 16:05:39 archrulez nginx[221]: 2017/03/15 16:05:39 [error] 721#721: *1536 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: [] operator not supported for strings in /home/http/www/darktime.cz/wp-content/plugins/bbpress/includes/forums/functions.php:1800
when u go directly to topic, then it works:
https://darktime.cz/topic/waclav-assassination/
i searched litle with google and i discovered, that there is some beta bbpres package, which dont have this problem, but when i downloaded it and tried install, i got error that bbpress folder already exist.
so i have questions:
can i delete the bbpres folder and then install the beta package?
can i upgrade normaly from beta version to stable version after it will be released?
thanks for answers and sorry for my bad english
You would need to create some custom code for this, maybe a plugin or two
One of your wishes, changing Freshness to Last Post is included in bbPress 2.6 🙂
It’s also worth searching the forums, many of the issues that pop up surrounding the importing of forums are quite similar.
Try looking at some of these to help:
https://bbpress.org/forums/topic-tag/mybb/
https://bbpress.org/forums/topic-tag/import
Also our docs:
Import Forums
Import Troubleshooting
Would it be possible to add a filter to the function that determines the status of a new topic? I understand there is some moderation in place using the word list, topic duplicate, user blacklist, etc. However, I currently have the need to determine the status based on user role. We want all admins and editors to show topics immediately after creation, however, we want subscribers to be set as pending so we can proactively moderate topics (not necessarily replies).
I have added a filter in the core code in order to achieve this. I was wondering if this change could be added to future versions of bbPress. The change is in bbpress>inclues>topics>functions around line 287. It looks like this:
/** Filter Topic Status ***************************************************/
$new_topic_args = array($anonymous_data, $topic_author, $topic_title, $topic_content);
$topic_status = apply_filters('bbp_new_topic_status', $topic_status, $new_topic_args);
Please let me know whether or not this will be implemented, so I know whether or not to update the plugin.
Thanks.
It’s not a solution, but what I did in my ‘bbP Move Topics’ was staying in the same database without exporting but correctly changing the post type and meta data.
If you are into coding, that might give you a direction. If I find some free hours this year, I might code it myself, but priority is low.
Pascal.
Code is always welcome. And I think it’s a nice to have as option to admin and moderator.
Will try myself too 🙂
@casiepa
I tried your suggested untested code
`function casiepa_fltr_get_forum_subscribers( $user_ids ) {
return array();
};
// add the filter
add_filter( ‘bbp_forum_subscription_user_ids’, ‘casiepa_fltr_get_forum_subscribers’, 10, 1 );`
it’s not working for me 🙁
I have an urgent matter where bbpress is sending our multiple emails not just from the recent activities of the day but from all notifications from the beginning of the whole forum. I’m not sure on how to stop the thing. People are being driven nuts
Thanks. Perhaps I am looking for a Freelance Coder to do this for me. Is the source code interesting for you?
I also needed something like this. Will try the code out.
Thank you.
untested, and may need you to debug it a bit but something like changing step 3 to read
/*
* Search only a specific forum
*/
function my_bbp_filter_search_results( $args ){
//Get the submitted forum ID (from the hidden field added in step 2)
$forum_id = sanitize_title_for_query( $_GET['bbp_search_forum_id'] );
$sub_forums = bbp_forum_get_subforums( $forum_id );
$args['post__in'] = $sub-forums ;
return $args;
}
add_filter( 'bbp_before_has_search_results_parse_args' , 'my_bbp_filter_search_results' );
you may need to add the main forum into the sub-forum list/
Hi, I’m new with bbpress and using a WP (v4.7.3) with WPML (v3.6.6) to display 2 languages. I created 2 main forums named “English Forum” and “French Forum” with some sub forums under each of them, and I’m looking now for a way to display a search form to target only the “english forum” but also his child forum, and another which target the “french forum” with his child ones.
I’ve found this :http://sevenspark.com/tutorials/how-to-search-a-single-forum-with-bbpress
but it only search on a single forum ID (not to child ones).
I googled for hours but, surprisingly, found nothing really helpful.
I can create my own shortcode to display a search form but how to target a forum_id?
Thanks for any help…
untested but try
add_action('bbp_template_before_pagination_loop','pmh_new_topic_button');
Hi there,
Was wondering how do I control the capabilities and permissions for guest posters i.e. the posters who can reply and create topics without registering.
My forum requires anonymous guest posting but I need to give Anonymous posters the ability to edit and delete their posts.
I’m not a coder but I can figure it out, the part where I’m stuck is that I can’t find any info on what variable or function controls guest posters. I looked into Capabilities.php and at first mistook spectators for guest posting, however that’s not the case
Thanks
I fixed my function above so this works now:
function pmh_new_topic_button() {
$forum_id=bbp_get_forum_id();
if ( is_user_logged_in() ) {
echo '<a href="/forums/new-topic/?ForumId='. $forum_id .'"><div class="new-topic btn">New Topic</div></a>';
}
}
add_action('bbp_template_before_topics_loop','pmh_new_topic_button');
Hrmm, I replied last night and it looks to be gone now. Not sure if I’ve gotten moderated but I’ll put my response here again.
Currently I’m just using this code in the content-single-topic.php template in my child theme.
<a href="/forums/new-topic/?ForumId=<?php echo bbp_get_forum_id()?>"><div class="new-topic btn">New Topic</div></a>
I have developed this for use in function.php to replace the above but I get a parsing error right now. It works ok if I don’t try to insert the ForumID so something is wrong with my syntax.
function pmh_new_topic_btn() {
if ( is_user_logged_in() ) {
echo '<a href="/forums/new-topic/?ForumId=".$_GET['ForumId'].""><div class="new-topic btn">New Topic</div></a>';
}
}
add_action('bbp_template_before_topics_loop','pmh_new_topic_btn');
Regardless of which method I use the resulting code is always placed after the bbp-pagination element and my CSS fu isn’t strong enough to have the button flow/move with the bbp-pagination-links contained within (is it even possible?).
<div class="bbp-pagination">
<div class="bbp-pagination-count">
Viewing 3 topics - 1 through 3 (of 3 total)
</div>
<div class="bbp-pagination-links">
</div>
</div>
<a href="/forums/new-topic/?ForumId=1486">
<div class="new-topic btn">New Topic</div>
</a>