Unfortunately, using just CSS, there is no way to assign different colours to each forum.
Yeah there is. I used to do this with CSS way back.
Here is something I did real quick and an image to show you, that you can do it.

#bbpress-forums ul.bbp-parent-forum-8 span.bbp-topic-started-in a {
background-color: #00a6eb;
color: #FFF;
padding: 3px 5px;
vertical-align: middle;
}
#bbpress-forums ul.bbp-parent-forum-0 span.bbp-topic-started-in a {
background-color: #E25E00;
color: #fff;
padding: 3px 5px;
vertical-align: middle;
}
bbPress reply posts are having issues with CSS from your theme that is for WordPress comments.
Try this CSS, add it to your child themes style.css file or add it to a custom css plugin.
#bbpress-forums .reply a {
float: none;
padding: 0;
color: inherit;
font-size: inherit;
display: initial;
position: initial;
}
@davidstriga
I think if you have threaded replies enabled in bbPress, if you reply to another reply, you get a BuddyPress notification (if you have the notifications active), I think there is a bug in bbPress’ code for that feature though.
@rothaar bbPress by default does not have this kind of layout or the “by” in the last post column, so it is definitely your theme.
I think that the “by” is just in a template, maybe loop-single-topic.php and loop-single-forum.php in your theme.
It might be best to create a child theme and manually edit the template and then translate the word to your language.
https://codex.wordpress.org/Child_Themes
Just copy your main themes bbPress templates into your child theme, and edit the files I listed above.
Hi guys,
So thhis is the a portion of the code right now for the sign up pop-up on my site. Its for the username, email, password and email.
<div class="six columns">
<input type="text" id="reg-username" name="signup_username" class="inputbox" required placeholder="<?php _e("Username", 'kleo_framework');?>">
</div>
<div class="twelve columns">
<input type="text" id="reg-email" name="signup_email" class="inputbox" required placeholder="<?php _e("Your email", 'kleo_framework');?>">
</div>
<div class="six columns">
<input type="password" id="reg-password" name="signup_password" class="inputbox" required placeholder="<?php _e("Desired password", 'kleo_framework');?>">
</div>
<div class="six columns">
<input type="password" id="confirm_password" name="signup_password_confirm" class="inputbox" required placeholder="<?php _e("Confirm password", 'kleo_framework');?>">
</div>
In this same sign up form I want to have a dropdown menu where you select your age because it didn’t come included in the theme. The age options being from 18-99.
How can I implement this?
Thanks
Regards
I would like to know how I can put up a ‘forum cover image’ on the page of each of my forums…..
I was hoping to use the ‘featured image’ function and display a landscape image on top of the page.
For example, if i am running a fitness forum community with a cardio workouts forum, and put up a cover image showing pple doing cardio….. and then for the weights forum, i’d have a weights cover image.
How could I do this?
FYI My knowledge of wordpress, bbpress, buddypress is beginner – intermediate. I know how to edit files, but not write code myself.
Hello,
Also figured out this one, you can use these 2 functions.
bbp_get_topic_subscription_link
bbp_get_topic_favorite_link
Thanks.
Hello,
I tried to use this code to remove the little character between the Subscribe and Favorite link, but it does not seem to work.
/*Fix character issue with BBPress admin links menu*/
function hide_before2 ($args = array() ) {
$args['before'] = ' ';
$args['subscribe'] = 'Subscribe';
$args['unsubscribe'] = 'Unsubscribe';
return $args;
}
add_filter('bbp_before_get_user_subscribe_link_parse_args', 'hide_before2');
http://yourtechadvisors.com/forums/topic/testing/
Feel free to create an account, I think the biggest problem is the Subscribe/Unsubscribe link that can be found under the Options menu. Please check screenshot.
https://drive.google.com/file/d/0B_h6oU4LzDtlYU44LUNCQVNaZ0U/view?usp=sharing
Any suggestions?
Hi @brhahlen,
I’ve resolved the issue commenting out the line 203 of crayon_wp.class.php, this one:
$the_content = strip_tags($the_content);
It’s seem that with the new version this is the problem. How have you solved yours? Have you changed highlighter?
Hello there,
I have a really strange problem… In the last few days I’ve noticed that all my messages do not show paragraphs, bolds, italics and neither links inside my topics.
I find it really strange and if you want to have a look to this is the link on a page where this happens. Inside this response there was some links and formatting but everything is gone.
It seems like WordPress is stripping out all the formatting my users add to the text and if you inspect the code you’ll find out that not a single <p> has been used…
I am using custom template pages but in order to test I’ve also renamed the bbpress/ folder inside my theme and the problem is still present. Tryed to use Twenty Fiftheen and the problem persists. Also checked the settings but everything seems normal.
The only thing I’ve done is update WordPress to the version 4.5, at least is the last action that I can recall.
Hope you can help me and thank you for your advices.
All the best,
Andrea
WordPress Version: 4.5
bbPress Version: 2.5.8
Genesis Version: 2.2.7
bbPress Genesis Extend Version: 1.1.1
Weirdly (considering how long ago this was posted), I recently had some updates trigger this same problem (the ‘in_array() expects parameter 2 to be array, null given in /abcde/htdocs/wp-content/plugins/bbpress/includes/common/functions.php on line 1199’ error, though in my case it’s actually line 1442). @korvinm’s solution is great but can be extended a bit so it won’t get overwritten by updates–instead of editing the file named by the error, go into your child theme’s functions.php file and add:
function LF_bbp_query_post_parent__in( $where, $object = '' ) {
global $wpdb, $wp;
// Noop if WP core supports this already
if ( in_array( 'post_parent__in', array($wp->private_query_vars ) ) )
return $where;
// Bail if no object passed
if ( empty( $object ) )
return $where;
// Only 1 post_parent so return $where
if ( is_numeric( $object->query_vars['post_parent'] ) )
return $where;
// Including specific post_parent's
if ( ! empty( $object->query_vars['post_parent__in'] ) ) {
$ids = implode( ',', wp_parse_id_list( $object->query_vars['post_parent__in'] ) );
$where .= " AND {$wpdb->posts}.post_parent IN ($ids)";
// Excluding specific post_parent's
} elseif ( ! empty( $object->query_vars['post_parent__not_in'] ) ) {
$ids = implode( ',', wp_parse_id_list( $object->query_vars['post_parent__not_in'] ) );
$where .= " AND {$wpdb->posts}.post_parent NOT IN ($ids)";
}
// Return possibly modified $where
return $where;
}
remove_filter('posts_where', 'bbp_query_post_parent__in', 10);
add_filter('posts_where', 'LF_bbp_query_post_parent__in', 10, 2);
This keeps the edit to the function in your child theme files so it won’t get overwritten, giving it a slightly modified name, then removes the filter’s callback to the bbPress function, and adds your modified one in its place. Just figured I’d share in case anybody else is still running into this issue and comes across this thread.
I’d like to create a forum index that resembles Flarum, where colour coded labels indicate which forum each topic belongs to.
bbPress conveniently outputs the names of each forum a topic is assigned to. Unfortunately, using just CSS, there is no way to assign different colours to each forum.
I’d like each different forum to have an ID selector, much like WordPress posts do, so that I could easily assign colour.
Example:
bbp-topic-started-in#forum-1 a {
background: green;
}
bbp-topic-started-in#forum-2 a {
background: yellow;
}
Could someone tell me, a) how I could accomplish this, or b) how I could present this for consideration in a future bbPress release?
hello! 🙂 first of all…
Forum Moderation
so what? the page is empty :/
i need to be able to set up a list of wp users to be the admin/moderators of the forum
i need to be able to make them know about a new post (i can do it via mailing list)
and they should be able to reply and make the question public via front end. and the op must be notified when someone replies to or publish the post.
it’s more of a Q and A system for everyone with moderation from a list of wp userd (doctors)
the only way i found to moderate incoming posts is a 2year old plugin with bulky backend system (it needs to be as easy as possible since the moderators wont be tech savvy guys)
is there any other solution?
thanks
Please find the code below.. I am sure it must be a very small error
add_action( 'rest_api_init', function() {
register_api_field( 'topic',
'post_parent',
array(
'get_callback' => 'slug_get_post_meta_cb',
//'update_callback' => 'slug_update_post_meta_cb',
'update_callback' => 'slug_update_spaceship2',
'schema' => null,
)
);
});
function slug_update_spaceship2( $value, $object, $field_name ) {
return update_post_meta( $object->ID, $field_name, $value);
}
function slug_get_post_meta_cb( $object, $field_name, $request ) {
return get_post_meta( $object['id'], $field_name );
}
That a nice project ! Any code you can share so we see what you try to do ?
Pascal.
code works fine for me to include topics posts and replies but same as above it shows private replies.
Hi,
I would say find the ‘content-single-forum.php’ file and edit it. You will probably see twice a line with <?php bbp_get_template_part( 'pagination', 'topics' ); ?> , so you need to delete the first one to hide the top pagination.
I didn’t test it, just guessing from what I read.
Pascal.
Hi,
[bbp-topic-form] is not working. I am able to use others shortcodes and they work fine but not the new topic form.
Please can someone tell me the cause this shortcode isn´t working?
i have added this code from gist.github.com/ntwb/7797990 but html tags appeared on website like
<!–more–>Go joging –> go jogging
<span style=”line-height: 1.5;”>It’s help me have a good job–>It helps me have a good job</span>
<!–more–>
anyone have solution ?
Thanks.
i have added this code from gist.github.com/ntwb/7797990 but html tags appeared on website like
<!–more–>Go joging –> go jogging
<span style=”line-height: 1.5;”>It’s help me have a good job–>It helps me have a good job</span>
<!–more–>
anyone have solution ?
Had a chance to test this out locally. The URL re-writes work like a charm, without any conflicts.
@siparker @netweb The plugin works almost perfectly, BUT there is still one big issue — by adding -postIDs to the end of Forum and Category URLs (mysite.com/forums/category-name-postIDstring) or (mysite.com/forums/category-name/forum-name-postIDstring), we’ve defeated the SEO purpose of re-writing these URLs.
For authority to be passed allll the way down to the topics, we need for the forums and categories’ permalinks to live without these -postIDs. That way, (mysite.com/forums/category-name/forum-name/topic-name-postIDstring) can get the full trickle down benefit from any links /category-name/ and /forum-name/ receive.
I’m going to play around with the plugin code to see if I can just rip the right bit out! Thanks again!
EDIT: So removing .'-f' .$post->ID from lines 50 and 60 fixed the URLs in the CMS BUT broke the page. It seems like the plugin relies on the postIDs to associate the new URLs with the old URL structure? If so, how can we achieve this without actually using the postID in the URL?
It’s actually much easier than this.
If you set words, phrases, or IP addresses in your Settings > Discussions of WordPress’s admin, bbPress will adhere. Whatever you use for WordPress comments, also works for bbPress topics & replies.
Hope that’s helpful!