You are using WordPress 4 and there is a bug for bbPress forum posts.
Install plugins:
http://www.rewweb.co.uk/bbpress-wp4-fix
http://www.rewweb.co.uk/bbpress-wp4-fix2/
Rewrite your theme styles with this, paste this on very bottom on style.css or into <head> tag section and wrap t with <style text/css></style>:
#bbpress-forums p.bbp-topic-meta span {
white-space: nowrap;
background: none;
border: none;
}
Install plugin bbPress2 shortcode whitelist.
just write string: video into that small text area
Awesome!
Video is now embedded. However, if a bbpress post contains text followed by the video, the text is not displyed, only the video. In pure text posts, nothing is displayed at all…
Any other ideas?
– MannMitHund
Install plugin bbPress2 shortcode whitelist
And to settings write video
Into your function.php paste this code, you will allow to Custom Post Type forum – bbPress have featured images in admin.
add_theme_support( 'post-thumbnails', array( 'forum' ) );
add_post_type_support('forum', 'thumbnail');
If your theme support this shortcode on posts and pages we can assume your shortcode is working fine, but bbPress is for security reasons blocking.
Place this code into functions.php
function jm_bbp_shortcodes( $content, $reply_id ) {
return video( $content );
}
add_filter('bbp_get_reply_content', 'jm_bbp_shortcodes', 10, 2);
add_filter('bbp_get_topic_content', 'jm_bbp_shortcodes', 10, 2);
Let me know if you need help.
Two solutions:
1, Go to Settings => Forums it is settins for bbPress and just find Forum root should show and choose Topics by Freshness
2, You need to use shortcode [bbp-single-forum id=2766]
It is simple, create one forum and use your single forum ID, you can find it if you hover over the forum in the admin, check the bottom the link and there is the ID, replace it to your shortcode in custom page.
If you need help, let me know.
Hello there
I fail in inserting / embedding an m4v video into a forum posts. Posts show text and images as intended, but for videos, just the smart tag is shown:
[video width="640" height="640" m4v="video.m4v"][/video]
What am I doing wrong?
I run wordpress 4 and bbpress 2.5.4
Help is much appreciated.
– MannMitHund
Hi All
Is it possible to limit the WordPress plugin bbpress to a single forum? And by-pass the forums list and go straight into the topics for the forum.
I have checked the settings and there does not appear to be any way of doing this.
Thanks
Can anyone answer my question in detail?
How do i add featured image to a bbpress forum post from wordpress post editor page?
you may need to rule out other factors, as far as I know bbpress works with woocommerce eg
bbPress WooCommerce Integration: Tutorial on How to setup a Paid Forum on WordPress
bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and woocommerce and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
So i made a new file called bbpress-functions.php and put this into it
<?php
//code to add tutor role
function add_apply_role( $bbp_roles )
{
/* Add a role called apply */
$bbp_roles['bbp_apply'] = array(
'name' => 'apply',
'capabilities' => custom_capabilities( 'bbp_apply' )
);
return $bbp_roles;
}
add_filter( 'bbp_get_dynamic_roles', 'add_apply_role', 1 );
function apply_role_caps_filter( $caps, $role )
{
/* Only filter for roles we are interested in! */
if( $role == 'bbp_apply' )
$caps = custom_capabilities( $role );
return $caps;
}
add_filter( 'bbp_get_caps_for_role', 'apply_role_caps_filter', 10, 2 );
function custom_capabilities( $role )
{
switch ( $role )
{
/* Capabilities for 'apply' role */
case 'bbp_apply':
return array(
// Primary caps
'spectate' => true,
'participate' => true,
'moderate' => false,
'throttle' => false,
'view_trash' => false,
// Forum caps
'publish_forums' => false,
'edit_forums' => false,
'edit_others_forums' => false,
'delete_forums' => false,
'delete_others_forums' => false,
'read_private_forums' => false,
'read_hidden_forums' => false,
// Topic caps
'publish_topics' => true,
'edit_topics' => true,
'edit_others_topics' => false,
'delete_topics' => false,
'delete_others_topics' => false,
'read_private_topics' => false,
// Reply caps
'publish_replies' => true,
'edit_replies' => true,
'edit_others_replies' => false,
'delete_replies' => false,
'delete_others_replies' => false,
'read_private_replies' => false,
// Topic tag caps
'manage_topic_tags' => false,
'edit_topic_tags' => false,
'delete_topic_tags' => false,
'assign_topic_tags' => true,
);
break;
default :
return $role;
}
}
I have no idea where i put this file in my site directory……
I am using bbpress ver 2.5.4
This is my problem. Spectator can not post (want to change this) spectator can not see private forums (which I want to keep the same)
Contributor can post (I do want) Can see private forums (dont want)
This is what i want to do. I want to either make it so a spectator can post and not see private forums or I want to set it up a new default subscriber role that can post in normal forum sections but can not see or post in private sections until I turn them into contributor.
How do I do this? I am using bbpress as a plugin for my wordpress site not on wordpress.org
Thanks
The bbPress plugin is found to be in conflict with the WooCommerce plugin. When both bbPress and WooCommerce is activated, backend ends up in a complete blank page with no content, and the frontend GeoDirectory map does not load. When bbPress is then deactivated, backend is back to normal and the same also for the GeoDirectoty map which then loads.
Is the same conflict experienced in other installations?
Do you have an idea about what makes the problem?
Any update to this? I, too, have a large bbPress forum and I see the following in my error log:
SlowTimer [6357ms] at runtime/ext_mysql: slow query: SELECT SQL_CALC_FOUND_ROWS wp_13_posts.ID FROM wp_13_posts INNER JOIN wp_13_postmeta ON (wp_13_posts.ID = wp_13_postmeta.post_id)\nINNER JOIN wp_13_postmeta AS mt1 ON (wp_13_posts.ID = mt1.post_id) WHERE 1=1 AND wp_13_posts.post_type = 'topic' AND (wp_13_posts.post_status = 'publish' OR wp_13_posts.post_status = 'closed') AND (wp_13_postmeta.meta_key = '_bbp_last_active_time'\nAND (mt1.meta_key = '_bbp_forum_id' AND CAST(mt1.meta_value AS SIGNED) != '133643') ) GROUP BY wp_13_posts.ID ORDER BY wp_13_postmeta.meta_value DESC LIMIT 0, 25
The issue is related to how wp4.0 looks at search and in particular at the ‘s’ parameter submitted to wp-query. wp4.0 does it differently and what didn’t look like a search to previous wp versions now does when sent from bbpress functions.
Hence why your $query->is_search was affected
I had the same problem. After upgrading to WP 4.0 only sticky topics were visible. I tried the patch/plugin “bbpress wp4 fix”. I could now see all topics, but when I clicked on any one of them only the first forum topic would open. The URL was correct, but the wrong topic appeared in the page. I deactivated the plugin and after some more research, found that I had a piece of code in my functions file that interfered with the topics showing. Here is the code that caused the problem:
//exclude from search results
function fb_search_filter($query) {
if ( !$query->is_admin && $query->is_search) {
$query->set('post_type', array('course_unit') ); // id of page or post
}
return $query;
}
add_filter( 'pre_get_posts', 'fb_search_filter' );
I don’t know why this code is a problem, but I no longer needed it. I deleted it and now my forums are working just fine.
@codingmachine
Great that you want to help, and it’s a great way to learn as well.
The easiest way to help is to just monitor the forums page
https://bbpress.org/forums/
and just dive in if you think you can contribute to someone’s issues (or more accurately contribute to solving someone’s issues!).
I’m just a humble helper myself, I have no official connection with bbpress, I am only a moderator because I’m here regularly and this lets me get rid of spam.
This is a community and the more helping others the better 🙂
@ricsca2
bbpress does have a css of its own as yiou found earlier, but tries to use much of the one from the host theme
I am trying to write a bbpress css plugin where you can set areas simply
eg
Header : Colour? size? etc.
but progress I slow whilst I work out what bits of the bbpress.css code do and when
Tell me which parts you are still having trouble with eg breadcrumb and I’ll try and help further
@robin-w With the code you’ve written now the various parts of the forum is bigger.
The problem is that I can not change manualente all parts of the theme.
The theme for bbPress does not have a css because it goes to get the css of wordpress theme right?
As ever with the theme HUEman this does not happen?
Very thanks
It’s the bbPress Add On for Paid Memberships Pro plugin. grrrrr
bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes
It could be a theme or plugin issue
Plugins
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.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
This is an issue with some themes after wp4.0
Try
bbpress wp4 fix
or
bbpress wp4 fix2
These usually fix it