This is a known bug
add this to your functions file
// Blocked users should NOT get an email to subscribed topics
function bbptoolkit_fltr_get_forum_subscribers( $user_ids ) {
if (!empty( $user_ids ) ) {
$new_user_ids = array();
foreach ($user_ids as $uid) {
if (bbp_get_user_role($uid) != 'bbp_blocked') {
$new_user_ids[] = $uid;
}
}
return $new_user_ids;
} else {
return $user_ids;
}
};
// add the filter
add_filter( 'bbp_forum_subscription_user_ids', 'bbptoolkit_fltr_get_forum_subscribers', 10, 1 );
I’d suspect issues with the quotation – different systems seem to alter these – try making them consistent – this might work
function cxr_subforum_filter() {
bbp_list_forums(array (
'before' => '<tr>',
'after' => '</tr>',
'link_before' => '<td>',
'link_after' => '</td>',
'separator' => '<br>',
));
}
add_filter( 'bbp_before_list_forums_parse_args', 'cxr_subforum_filter' );
If it doesn’t then come back and I’ll take a deeper look, midnight here and on way to bed !
When a new topic goes to moderation and is approved, some, but not all, of the regular new topic actions take place. One thing that does not seem to happen is sending out the new topic notification email. If possible, can the bbp_notify_forum_subscribers action be added when a forum topic is approved by a moderator (after checking to make sure notifications are enabled)? The new topic notifications are a great way to drive visitors to our forums, so this is turning into an issue on our site. The site owners want to be able to moderate most (or even all) of the new topics, but then no notification emails are sent out.
If this is something I should try to figure out on my own, please let me know and I’ll give it a shot. I didn’t want to mess with the bbpress core code since it would get overridden on the next update.
Thanks!
Matt
Wordpress Version: 4.7.8
BBPress Version: 2.5.14
I thought I followed the codex instructions pretty clearly, but this add_filter in my functions.php file is resulting in a 502 error and… I have no clue why!
Sorry, bbpress newbie here… any help that anyone can offer would be awesome.
Thanks in advance,
-Dave
PS Here’s the code I popped in my functions.php file:
function cxr_subforum_filter() {
bbp_list_forums(array (
‘before’ => ‘<tr>’,
‘after’ => ‘</tr>’,
‘link_before’ => ‘<td>’,
‘link_after’ => ‘</td>’,
‘separator’ => ‘<br>’,
));
}
add_filter( ‘bbp_before_list_forums_parse_args’, ‘cxr_subforum_filter’ );
I’ve now incorporated the code above into my bbp style pack
bbp style pack
dashboard>settings>bbp stylepack>forum order
I’ve now incorporated the code above into my bbp style pack
bbp style pack
dashboard>settings>bbp stylepack>forum order
Issue resolved.
Usernames had ‘ Disable the visual editor when writing’ switched off in profile
I’ve now incorporated the code above into my bbp style pack
bbp style pack
dashboard>settings>bbp stylepack>topic/reply form item 9
@elhardoum
Hi thanks your code works well..
Only the second part of code you added for returning exerpt isnt working for me.
I was using the bbpress topics for posts plugin only it is quuite old now and causes conflicts.
I would like to return in the new topics the post exerpt + a link back to the original post like this [See the full post at: post-title]
Would appreciate your help.
(:
Could be usesful for some…
Creating Content
Hi there,
WP: 4.8.2
BBP: 2.5.14
After digging into lots of pages, I finally found an old topic here that describes the same problem I have. As it’s an ancient topic, I started a new one.
For topics with more than 1000 replies, when posting new replies, bbpress does not add the page number to the reply permalink. I did as the user Matrixd said here(of course for new versions of bbpress with different paths):
Hello again, finally after John’s helpful tip, I was able to fix the issue. I found where BBpress does the number formatting and disabled it. In wp-content/plugins/bbpress/bbp-includes/bbp-common-functions.php I changed this line:
function bbp_number_format( $number = 0, $decimals = false, $dec_point = '.', $thousands_sep = ',' ) {
to:
function bbp_number_format( $number = 0, $decimals = false, $dec_point = '.', $thousands_sep = '' ) {
This removes the comma from the thousands separator. Now all topics pages appear correctly. Thanks!
And the problem solved!
But this is a core hack, I want it as an additional function without touching core files.
It looks like a conflict is causing the WPML language parameter to be added before bbPress adds its /edit/ endpoint.
I suppose it’s possible inside bbPress to try and handle that differently, but I’m reluctant to make it too fancy since it might break something else.
Without really looking, my guess is that WPML should filter the permalink at a later priority (as late as possible) so that all other filters have a chance to hook in normally first.
@dreuezekiel – ok try adding this to your functions file
add_filter('bbp_before_has_forums_parse_args', 'order_by_freshness', 10, 2);
function order_by_freshness ($args='') {
$args = array(
'meta_key' => '_bbp_last_active_time',
'orderby' => 'meta_value',
'order' => 'DESC',
);
return $args ;
}
if you don’t know how to do that, come back and I’ll wrap it in a baby plugin for you
@confusedneedhelp – ok try adding this to your functions file
add_filter('bbp_before_has_forums_parse_args', 'order_by_freshness', 10, 2);
function order_by_freshness ($args='') {
$args = array(
'meta_key' => '_bbp_last_active_time',
'orderby' => 'meta_value',
'order' => 'DESC',
);
return $args ;
}
if you don’t know how to do that, come back and I’ll wrap it in a baby plugin for you
ok, I can only imagine that the code is not in the right place, or that a character is affecting (one character out of place and nothing works !)
ok, remove the code above completely
I’ve put the code into a small plugin
go to
add visual aditor
and download it to your PC, noting where it is downloaded to
go to
dashboard>plugins>add new>upload plugin and upload the file you downloaded and activate
If that doesn’t work, then I’m stumped, but please come back and let us know
I appreciate your frustration that you have not had answers posted, but not sure who you expect to answer them?
People write open source software in their own time and offer it for free. Under the open software foundation the software is offered without any warranty or support. You use it if you like and not if you don’t. It is perhaps a bit much to then expect software authors to answer every question someone might have about that software, or indeed having offered that software to the world for free, that they should invest any time to this unless they wish to. To then complain that they won’t tell you how to modify their error free code to do something you want but they didn’t design seems even more insulting.
If someone gave you a car for free, would you then tell them that they suck because they don’t come and service it for you? or whinge about it because they won’t re-spray it for you because you wanted it in red not green?
I am not a bbpress author, I’m just a guy who uses this software, and in turn spends some of my time in trying to help others. I am too frustrated that people who ask questions on here so rarely then try and help others, and wish that more people would give up free time to help people like you.
But I am just me and we are here to try and help where we can, but please lay off the insults and accept that free software does not come with a right to free support, and if people don’t answer your questions, it is maybe because wee like to help people who appreciate free help.
To work out an answer for you will probably take 1/2 hour of my free time. I’ll take a look tomorrow maybe.
ok, I’ve just loaded the code below (same as in the post above) to my test site and it enables the tinymce editor on my test site
//editor bbpress
function bbp_enable_visual_editor( $args = array() ) {
$args['tinymce'] = true;
$args['teeny'] = false;
return $args;
}
add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );
//clean html when copy and paste into forum
function bbp_tinymce_paste_plain_text( $plugins = array() ) {
$plugins[] = 'paste';
return $plugins;
}
add_filter( ‘bbp_get_tiny_mce_plugins’, ‘bbp_tinymce_paste_plain_text’ );
So I suggest you start by doing some further testing
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
plugins
If themes don’t pinpoint the problem, deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
Thanks to both of you! I truly appreciate any and all help I can get, especially when i’m just trying to make the software work as designed.
So. The code supplied by @heathcliff2013 had no effect either, and I’m stumped.
Any other suggestions, dear forum?
@robkk Hi,I am following your instruction but this code
.bbpress a {
color: red;
}
turns red.Could you tell me which classes should I add to have a full width forum ?
@heathcliff2013
1. I am just a user of bbpress – ie I am one of the ‘We need to help each other I guess.’ I am only a moderator because I do a lot of support on here, and someone needs to clear out the spam.
2. I was not ‘waiting 4 days’ I do have a life outside of providing FREE support I give here – giving my time without any payback to help others, and I respond as I get time to those that I can contribute to.
3. writing sarcastic comments ‘Yeah forget about the fantastic support’ – shows you really don’t understand how open source software works – people write code for FREE which other then use for free. If you have paid for something, then you can start whinging about support, but if someone gives you a car, you don’t complain that they then don’t come round and service it for you, open source software is offered as is, additional help is totally voluntary.
Anonymous User 12966443Inactive
Yeah forget about the fantastic support. We need to help each other I guess.
//editor bbpress
function bbp_enable_visual_editor( $args = array() ) {
$args['tinymce'] = true;
$args['teeny'] = false;
return $args;
}
add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );
//clean html when copy and paste into forum
function bbp_tinymce_paste_plain_text( $plugins = array() ) {
$plugins[] = 'paste';
return $plugins;
}
add_filter( 'bbp_get_tiny_mce_plugins', 'bbp_tinymce_paste_plain_text' );
Works for me but it does not show up when using mobile?
Just tested this out on a newer theme and the css should look like this:
.bbpress div#primary.content-area {
margin: 0 auto;
max-width: 980px;
width: 100%;
}
Also, you can now just add this to Appearance > Edit CSS > Additional CSS.
Did you say your name is Sisyphus ? It would seem so..
You might want to read this article, (I don’t know how old it is or how current the advice..)
https://codex.wordpress.org/Post_to_your_blog_using_email
Hi all,
I have made a community using wordpress version 4.8 where I’ve created multiple forums, subforums. I want one particular user should have full control on one specific forum, basically one admin for each forum. Is it possible, is there any specific plugin for it.. or any code changes ?? I searched a lot but didn’t get any. Can anyone please help me on the issue ?
Thanks.
when I used the short code with custom lost password page the users stop getting any emails.
the link,
http://mysite.com/wp-login.php?action=lostpassword
gives me:
Request URL:https://mysite.com/wp-login.php?action=lostpassword
Request Method:POST
Status Code:302 Found
Remote Address: xxxxxx
Referrer Policy:no-referrer-when-downgrade