Hi,
Have a look at the code I used for my bbP Manage Subscriptions plugin (https://wordpress.org/plugins/bbp-manage-subscriptions/). Maybe you find in there what you need.
Bulk actions are next on the list (hopefully by mid January), but feel free to take part of the code for your own project now.
Pascal.
Private forum, was looking at the css but can’t figure it out as the source goes like this:
<div id="bbpress-forums">
<div class="bbp-breadcrumb">
for the [bbp-forum-index] then further down:
<div id="bbpress-forums">
<div class="bbp-breadcrumb">
for [bbp-topic-index] so hiding <div class=”bbp-breadcrumb”> would hide both?
Hi,
Is it a public forum ? If so, can you share the URL ?
There is probably not much that can be done for it from the bbPress side as you use the shortcodes, but maybe in CSS something can be done.
Pascal.
Hello, can I change “search” text on the search widget? Possible custom css code please?
Been asked years ago but never answered, how is it I remove/filter out the breadcrumbs from this shortcode as using [bbp-forum-index] then [bbp-topic-index] gives you two sets of breadcrumbs on the same page?
Hi,
This is a known one. Please refer to the information in the codex: https://codex.bbpress.org/bbp_setup_current_user/was-called-incorrectly/
Pascal.
I’ve also set it up so adding a button AND plugin for “code” are hooked in, but still no luck.
Good idea to try some other plugins/buttons to try and debug this…
ok, so as far as I can work out.
If you are staying with 4.4 then implement the following
open wp-includes/post.php, scroll to about line 4300 to find function get_page_uri( $page )
In that function replace
if ( 'publish' === $parent->post_status ) {
with
if ( ! in_array( $parent->post_status, get_post_stati( array( 'internal' => true ) ) ) ){
If you revert to 4.3.x, then the upgrade will have altered the database, so you need to go into each forum and toggle visibility public/private status , saving in between. So if private, toggle to public and save and then toggle back and save again. If public, do the reverse.
Not sure of you need to do that if you stay with 4.4
Should all be fixed in 4.4.1.
If anyone thinks different, please come back – would be good to have a single definitive post saying what users should do
If anyone has different exper
hmmm, can you try
function fx_tinymce_paste_plain_text( $plugins = array() ) {
array_push($plugins,"paste","code");
print_r($plugins);
return $plugins;
}
Pascal.
I’m trying to create a php script to check if each bbpress topic is newer than certain date, so if its true, subscribe the author of that topic to that forum (I only have 1 bbpress forum so there is no need to check the id of that forum).
This is the code at this point:
<?php
$args = array(
'post_type' => 'topic',
);
$post = get_posts( $args );
$compare_date = strtotime( "2015-07-14" );
foreach($post->ID as $topic){
$post_date = strtotime( $post->post_date );
$post_author_id = get_post_field( 'post_author', $topic );
if ( $compare_date < $post_date ) {
bbp_add_user_forum_subscription($post_author_id ,1687);
}
}
?>
where 1687 is the id of the forum i want them to suscribe.
Any idea why is not working?
Thanks 🙂
Thank you for the response. I tried that as well, since I’m adding the “paste” plugin with the following code (with an array print for debugging):
add_filter( 'bbp_get_tiny_mce_plugins', 'fx_tinymce_paste_plain_text' );
function fx_tinymce_paste_plain_text( $plugins = array() ) {
$plugins[] = 'paste';
$plugins[] = 'code';
print_r($plugins);
return $plugins;
}
But what I get is the following — no buttons. (you can see the $plugins array contents):

If I remove the “$plugins[] = code;” line — I get the buttons back:

I’m not seeing any errors in php.log — so I must be doing something wrong. I’m curious if it is because a code button can’t be there without the dropdown menu. Or maybe I need to show the quicktags part of the visual editor
Ciao,
Extra icons on the toolbar might not always display correctly for bbPress. Please see https://codex.bbpress.org/enable-visual-editor/
Pascal.
Hi all, I need help. I’m very noob in “web”, but I was asked to solve this problem:
on a WordPress 4.3.1 with bbPress 2.5.8 site there is the problem shown on this pic

The three icons on the right are not shown properly. I’ve tried to analyze the problem, and I’ve noticed that for those buttons there are no corresponding classes/objects(?) in the “skin.min.css” file. Adding the missing code with Chrome editor (do not know how to call it), icons are shown, even if I can’t find corresponding “Content” for those three buttons, so I use other buttons icon just to make an attempt.
How can I solve? Are that css file static o dynamic generated? If the second one, is the following error linked with the problem?

I apologize in advance if I was not so clear.
Hi Casiepa,
Is this the “ultimate fix”?
I changed the line but it does not have any effect. I also tried the “fix” by timsilva_ but that doesn’t work either. I revert back to 4.3.1, disabled all plugins but bbPress and the problem remains. Before the upgrade there were no problems.
I’m using quite a lot of bbPress enhancement addons but i don’t think they interfere
- bbP private groups 3.0.8<
- bbPress Do Short Codes 1.0.3
- ppPress Votes 1.1.0
- GD bbPress Attachments 2.3.1
Since Im a keymaster I didnt notice is but got complains from user there topics were gone. Also – they can actually create new topics and they are saved but they just cant see them. They got the imfamous “Oh bother!” message but the freshness information bar says they actually were the last that posted something.
Now – if I make that user moderator everything seems to be working as it should – but hey – i dont want to apply that workaround.
Our problem has something to do with the upgrade and I guess something to do with rights. The only rights-plugin being used is bbp private groups but people confirmed that that plugin is compatible..
Also change the permalink to default – no effect aswell
Please advice..
Hi,
this issue is linked to the new WordPress, a bug has already been filed and a patch will hopefully come out soon.
For now to fix the issue (using fix 2), open wp-includes/post.php, scroll to about line 4300 to find function get_page_uri( $page )
In that function replace
if ( 'publish' === $parent->post_status ) {
with
if ( ! in_array( $parent->post_status, get_post_stati( array( 'internal' => true ) ) ) ){
Pascal.
I suppose that
add_filter( 'bbp_get_teeny_mce_buttons',
should be
add_filter( 'bbp_get_teeny_mce_plugins',
Check out https://codex.bbpress.org/enable-visual-editor/
Pascal.
I’m using the following php to attempt to add a ‘code’ formatting button to the teeny mce editor (I’d like to keep it teeny if possible):
function fx_teeny_mce_buttons( $buttons, $editor_id ) {
$buttons[] = 'code';
return $buttons;
}
add_filter( 'bbp_get_teeny_mce_buttons', 'fx_teeny_mce_buttons');
However, the button isn’t showing. It does, however, appear in the $buttons array.
Any suggestions?
Late for @freshwater … Hope it will be usefull for someone else.
To add and control the featured image size on forums:
1- Add the following code to your child theme functions.php file.
add_post_type_support('forum', array('thumbnail'));
add_image_size('forum-category-thumbnail', 1080, 320, true);
2- (optional) Change/rename “forum-category-thumbnail” by something more useful for you if you need.
3- Set featured image size by changing numbers. First number is width in pixels and last is the height.
4- (if not done yet) Create a bbpress directory in your child theme.
5- (if not done yet) Copy the template file you want to affect from …/plugins/bbpress/template/defaut/bbpress/your_template.php to your bbpress directory.
for example: content-single-forum.php
6- Add the following code exactly where you want that your featured image appears in your template.
<?php if( has_post_thumbnail() ): ?>
<div class="entry-thumbnail"><?php the_post_thumbnail('forum-category-thumbnail') ?></div>
<?php endif; ?>
If you made change on point N°2 remember to change “forum-category-thumbnail” by what you’ve choose.
Hello!
I would like to display a list of the logged in user’s subscribed forums and topics in my sidebar in order of recent activity (similar to the Recent Activity widget that comes with bbPress).
I’ve been searching around for days and I haven’t figured out a way to do this, nor even a plugin that will do it. I’ve tried creating a custom shortcode, I’ve tried creating a custom widget, and so far the closest thing that has worked is to just copy and paste the code from the user-subscriptions.php template into my sidebar.php. Doing that displays an unformatted version but only when I’m on the user profile page.
Can anyone help? I’m sure there’s some kind of global variable that I’m not calling but I’m not sure what it is. Is there a shortcode I’m missing that will let me display the user’s subscriptions on other pages of the site?
Hi,
this issue is linked to WordPress, yes. A patch will hopefully come out soon.
For now to fix the issue (using fix 2), open wp-includes/post.php, scroll to about line 4300 to find function get_page_uri( $page )
In that function replace
if ( 'publish' === $parent->post_status ) {
with
if ( ! in_array( $parent->post_status, get_post_stati( array( 'internal' => true ) ) ) ){
Pascal.
You can Add this to your child themes functions.php file or add this PHP code snippet into a plugin that can hold custom php code snippets like functionality.
function mycustom_breadcrumb_options() {
$args['include_home'] = false;
return $args;
}
add_filter('bbp_before_get_breadcrumb_parse_args', 'mycustom_breadcrumb_options');
The default bbPress forum index shortcode works fine. And it does not have arguments for removing the search bar, and showing specific forums in the forum index only.
You had some code that uses the shortcodes in the plugin bbp style pack.
Here is a shortcode from the bbp style pack plugin.
[bsp-display-forum-index forum= '2932, 2921' breadcrumb='no' search='no']
See if this CSS fixes the styling issue. Add this custom CSS into your child themes style.css file or add the css code into a separate css plugin that can hold custom css code snippets.
input[type="text"],
input[type="password"],
input.input-text,
textarea,
input.txt,
input[type="tel"],
input[type="email"] {
padding: .236em .5em;
border: 1px solid #e9e9e9;
font-size: 1em;
line-height: 1.618em;
font-family: inherit;
outline: none;
background: #fcfcfc;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-appearance: none;
}
@gptxffa – They are still working on making sure the solution is rock solid, but it will eventually be in a normal WP update.
In the meantime, all you have to do is follow the instructions from the diff patch. Basically, open wp-includes/post.php, scroll to line 4303, and replace:
if ( 'publish' === $parent->post_status ) {
with
if ( 'trash' !== $parent->post_status ) {
So you replace the red tinted line of code with the green. 😉