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. 😉
What happened? The index doesnt display properly anymore. here is what I have in my functions file
function recent_bbpress_topics() {
echo do_shortcode("[bbp-forum-index= search='no'] [bbp-topic-form]");
}
add_action('bbp_template_after_topics_index','recent_bbpress_topics');
add_filter( 'bbp_current_user_can_access_create_topic_form', 'custom_bbp_access_topic_form' );
function custom_bbp_access_topic_form( $retval ) {
if ( bbp_is_forum_archive() ) {
$retval = bbp_current_user_can_publish_topics();
}
return $retval;
}
Its always worked in the past no problem. I found that if i deleted = search='no' then it works again. I would however prefer to not display the search bar because its redundant. Just not sure what changed to stop that original code from working.
Thanks
It is usually recommended to not edit the core plugin files. Use a custom css plugin and add some of these styles and customize it to how you want it.
1.
.bbp-forum-content p,
.bbp-topic-content p,
.bbp-reply-content p {
font-size: 16px;
}
2.
.bbp-topic-author a.bbp-author-name,
.bbp-reply-author a.bbp-author-name {
font-size: 14px;
}
3.
Depends on what Avatars exactly? Plus CSS is not the best way to adjust this.
#bbpress-forums div.bbp-forum-author img.avatar,
#bbpress-forums div.bbp-topic-author img.avatar,
#bbpress-forums div.bbp-reply-author img.avatar {
border: none;
max-width: 80px;
padding: 0;
margin: 12px auto 0 auto;
float: none;
}
4.
#bbpress-forums div.even,
#bbpress-forums ul.even {
background-color: #fff;
}
#bbpress-forums div.odd,
#bbpress-forums ul.odd {
background-color: #fbfbfb;
}
Copy the archive-forum.php template from the extras folder and place it into the root of your child theme and customize it to your liking, make sure that the template code is similar to the one bbPress is inheriting from your theme.
Just make sure the get_sidebar() code is in your archive-forum.php template while the rest of your forums are full-width.
Getting Started in Modifying the Main bbPress Template
On your profile page and your forum index page it shoudn’t have this layout by default. It is most likely happening because of the template that bbPress is inheriting. You would need to follow this guide and create a bbpress.php file and place it in your child theme.
Getting Started in Modifying the Main bbPress Template
Here is an example bbpress.php file for your Canvas child theme. It is what I created straight from Canvas original theme code.
https://gist.github.com/robkk/c7ec3a0f2d730f5cb10d
Here is some CSS to fix the avatar issue I see on your forums. Place this custom CSS anywhere where you could like in a child themes style.css file, or in a separate custom css plugin.
#bbpress-forums p.bbp-topic-meta img.avatar,
#bbpress-forums ul.bbp-reply-revision-log img.avatar,
#bbpress-forums ul.bbp-topic-revision-log img.avatar,
#bbpress-forums div.bbp-template-notice img.avatar,
#bbpress-forums .widget_display_topics img.avatar,
#bbpress-forums .widget_display_replies img.avatar {
float: none;
margin-bottom: 0;
vertical-align: middle;
border: 1px solid #ddd;
}
#bbpress-forums .avatar {
width: auto;
height: auto;
margin-left: inherit;
display: inline;
}
As for what you wanted, you seem to have it by making sure a topic does not have a parent post (forum).
You may also need to follow this guide to fix your /forums index page, instead of doing the workaround that you have already.
Getting Started in Modifying the Main bbPress Template
@stewagner
I had a feeling you were using that plugin, that is why you linked to the single reply post.
There is a little shortcode you have to change in the plugins settings for the notification. It should have it this way by default, but it does not. Might need to contact the plugin author to set that as the default setup.
I think you have to change [reply-url] with [reply-replyurl] in the plugins settings. It adds the settings to bbPress default settings in Settings > Forums.
This is not really a bbPress issue as the plugin just piggybacks off of WordPress’ core code, could be fixed server side with the explanation in the codex guide, or by using an smtp plugin though.
There may be many factors to the emails being sent to the spam folder. There are some solutions outlined in the bottom of this WordPress codex guide piece for sending the emails correctly while using the hosts.
https://codex.wordpress.org/FAQ_Troubleshooting#E-mailed_passwords_are_not_being_received
Other common suggestions of fixing this issue is using SMTP and seing any emails on your site that way and making sure that you use an email address that has the same domain as your site.
Guys some devs and I are having a hard time duplicating this issue.
This is how I tested it and come across no issues.
WordPress: 4.4
bbPress: 2.5.8
I tried these default WordPress themes
2013, 2014, 2015 and 2016
I tried these forum structures.
Category > Forum > Forum
Category > Forum > Private: Forum
Category > Forum
Category > Private: Forum
Forum > Forum
Forum > Private: Forum
Category > Category > Category > Forum
Category > Category > Category > Private: Forum
Category > Category > Forum
Category > Category > Private: Forum
With the postname permalink structure (since it is most commonly used and I want to try to duplicate it)
Other things I like to ask is if this is a theme side 404 message being outputted or the normal no topics/forums found here message bbPress outputs like the one below (it could be different if you are using a different language than English for bbPress of course).
Oh bother! No topics were found here!
If you guys can help ask a few questions like the ones that @casiepa asked and these additional ones.
What is your bbPress version?
Have you already tried troubleshooting for a possible plugin/theme conflict?
Are you guys using BuddyPress groups for group forums?
Are the issues only happening on private forums? (Like @kpdub has said)
Did you try the postname permalink structure?
Another thing I may suggest to help try to gather information for the developers, is to try to duplicate the issue yourself. Try to duplicate the issue again on a local installation on your computer. If you can tell us step by step to duplicate it.
Creating a Test Site
I am still looking for a solution to this – I want to subscribe users to a new forum when it is created.
The code above fires when you open the New forum admin page. I guess a new post is created at that time so an object ID is allocated. If you don’t go through and publish, the entry must then get deleted. Anyhow, if you do create the forum by publishing it, the subscriptions do not get created. My guess is that it is too soon in the process of creating a forum to add subscriptions to it.
I have tried hooking onto the publish action but not got it to fire there. I really need to find a hook much later in the process. As stated above, the bbb_new_forum hook only fires from the front end and that limits it to creating group forums, as far as I can see.
Any pointers gratefully received. Meanwhile I am having to manually activate some code and run it once after creating a new forum and then deactivate it – very error prone and easily forgotten.
What I was mainly after was adding the little yellow text notice box that’s there on creating or replying topics. Like the one that states Your account has the ability to post unrestricted HTML content. within the yellow notice box.
If you want the same you can add this is using my example above. Just replace Example text here. text with your own custom notice. Hope this helps someone out!
<div class="bbp-template-notice">
<p><?php _e( 'Example text here.', 'bbpress' ); ?></p>
</div>
Regards,
Gareth
Right then after some trial and error:
You can add into the footer on the main bbpress forum page by editing the following file:
\wp-content\plugins\bbpress\templates\default\bbpress\content-archive-forum.php
Just add whatever you need where I have put <p>Example text here</p> on the following code
<?php endif; ?>
<p>Example text here</p>
<?php do_action( 'bbp_template_after_forums_index' ); ?>
</div>
Hope this helps others who need this advice!
Regards,
Gareth