Hello. What would the code be to change the color of the “Submit” button? I’m assuming the same code but with a change to the 1st line.
Is it this:
#bbpress-forums .submit {
background-color: #1e73be;
color: #FFFFFF;
float: center;
vertical-align: middle;
border-radius: 4px;
height: 35px;
width: 120px;
font-size: 14px !important;
}
Because it didn’t work..
Hi, Can you please advise how to extend the Vbulletin importer.
I know the fields i want to get and where i want them to go. but i am unsure how to add this to the import routine.
Example is to get from vbulletin the user signature (which is a simple lookup to sigparsed field in the db by userid) and insert that into an xprofile field for that user.
Secondly i ahd an issue importing which i believe was because the mycred plugin adds fields to the user table. It might be worth adding some validation of the user fields as the insert is hardcoded with the default fields.
I used the plugin wp-members and put the forums in the member area. I have been speaking to the author of that plugin who is brilliant with support and he had problems at the begining as well. So I have done loads more searching and it is known problem which BBPress do nothing about
There is no solution out there BUT what you can do is change the main search function to include forums and that is what I have eventually done. I do think BBPress should provide a proper solution
So you ditch the BBPress function, it does not work. And amend the normal search to include forums. I used this code snippet to help.
/**
* Include bbPress 'topic' custom post type in WordPress' search results */
function ntwb_bbp_topic_cpt_search( $topic_search ) {
$topic_search['exclude_from_search'] = false;
return $topic_search;
}
add_filter( 'bbp_register_topic_post_type', 'ntwb_bbp_topic_cpt_search' );
/**
* Include bbPress 'forum' custom post type in WordPress' search results */
function ntwb_bbp_forum_cpt_search( $forum_search ) {
$forum_search['exclude_from_search'] = false;
return $forum_search;
}
add_filter( 'bbp_register_forum_post_type', 'ntwb_bbp_forum_cpt_search' );
/**
* Include bbPress 'reply' custom post type in WordPress' search results */
function ntwb_bbp_reply_cpt_search( $reply_search ) {
$reply_search['exclude_from_search'] = false;
return $reply_search;
}
add_filter( 'bbp_register_reply_post_type', 'ntwb_bbp_reply_cpt_search' );
@pathardepavan — post_parent is in the posts table rather than postmeta so instead of updating post meta, update the object in wp_posts. So your update callback function (update_topic_post_parent) would be something like:
function update_topic_post_parent( $value, $object, $field_name ){
$update_post_parent = array(
'ID' => (int)$object->ID, // the ID of the topic you just created
'post_parent' => (int)$value ); // whatever you want your post_parent to be as an int. You could use $field_name for 'post_parent' here but I tend to whitelist
wp_update_post( $update_post_parent )
}
and you should be able to get the post_parent from the $object directly in your get callback I think.
Also if you’re using one of the latest versions of the plugin, you should use register_rest_field as register_api_field has been deprecated.
(I’m doing this without any testing, sorry, so it might be incorrect! But I think that’s somewhere close to the answer maybe 🙂 )
Hi Robkk,
thanks for your suggestion. No, this code does not change anything, not even with !important after the font size.
Does this custom CSS help any?? This is what I have making a custom theme in twentytwelve.
#bbpress-forums #wp-link {
font-size: 13px;
}
#bbpress-forums #wp-link .screen-reader-text, .screen-reader-text span,
#bbpress-forums #wp-link .ui-helper-hidden-accessible {
position: absolute;
margin: -1px;
padding: 0;
height: 1px;
width: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
border: 0;
word-wrap: normal!important;
}
Hello,
if you look at our latest topic, you will see the blue notice bar. In in, the time is formatted incorrect. There should be a comma, or even better, the word “und” between the hours and the minutes, not a full stop. I tried to change it in the translation, but there is only a code for the whole timestamp. I would suggest to update bbpress in this regard, so the timestamp becomes localizable.
Best
Manuel
Hello there,
I use WP 4.4.2, bbpress 2.5.8, this is a post in our forums.
To insert a link in my copy, there is this popup window. Apparently, it gets its styling from various sources, including my theme’s settings, where for regular text, I set the font-size to 17px, while line-height of 26px is hard-coded into the theme. As you can see (if you click the link-button in the reply form below the sample post given above), this disturbs the styling of this popup.
Is there any way to a) make this popup draw its styling from the back-end CSS (where the same window is used, and looks fine), which in any case I would like to suggest for future updates of bbpress, or b) style it with custom CSS?
Thank you
Manuel
I just tried: The moderator cannot see ‘forums’ in the dashboard
He can only see topics and replies
the doc in the codex is saying the opposite
But i would like to change the name of the forum author (this name appears in the forum list, etc…)
Do you agree with the fact that “Moderator – Cannot create and edit forums”?
Not sure I either agree or disagree, or that it is a fact – I’m trying to help here, I’m not trying win an argument in a bar, but as a user of this software I haven’t tested every feature 🙂
The documentation for bbpress says that moderators can publish and edit forums
https://codex.bbpress.org/getting-started/before-installing/bbpress-user-roles-and-capabilities/
Is it this that you are asserting isn’t true?
Edit the code in the Gist and add style to the Span tag like so.
// Span
‘span’ => array(
‘class’ => true,
‘style’ => true,
),
I am not sure why you would even want the more tag, as it might be useless in the frontend of your site and bbPress forum posts.
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?