Forum Replies Created
-
In reply to: bbPress 2.6.4 Remove Default Search Bar
put this in the custom css of your theme
#bbpress-forums #bbp-search-form { display: none !important; }ok, can you summarise your current problems so save me working through the above – thanks
In reply to: Automatic Archive Settings for Topicsif you want several change
'parent_forum' => 'any',to
'post_parent__in' => array( 2, 5, 12, 14, 20 ),In reply to: Automatic Archive Settings for Topicsyes, just change the line
'parent_forum' => 'any',to
'parent_forum' => '123456',you can find a forums number by looking at the url whilst you are editing it
dashboard>forums>all forums>edit (the forum you want) and in the url bar you will see
http://www.mysite.com/wp-admin/post.php?post=28109&action=edit
In reply to: Automatic Archive Settings for TopicsThe above will ‘close’ the topic, if you want it archived, then in effect you will need to trash it, this just puts it in the trash, so it can be recovered
to do this replace
bbp_close_topic( $topic_id );with
bbp_trash_topic( $topic_id );In reply to: Automatic Archive Settings for TopicsPut this in your child theme’s function file – or use
change the ‘-10 days’ to say ‘-90 days’ if you want 3 months
register_activation_hook(__FILE__, 'bbpress_topic_scheduler'); add_action('bbpress_daily_event', 'bbpress_close_old_topics'); function bbpress_topic_scheduler() { wp_schedule_event(time(), 'daily', 'bbpress_daily_event'); } function bbpress_close_old_topics() { // Auto close old topics $topics_query = array( 'author' => 0, 'show_stickies' => false, 'parent_forum' => 'any', 'post_status' => 'publish', 'posts_per_page' => -1 ); if ( bbp_has_topics( $topics_query ) ) while( bbp_topics() ) { bbp_the_topic(); $topic_id = bbp_get_topic_id(); $last_active = strtotime( get_post_meta( $topic_id, '_bbp_last_active_time', true ) ); if ($last_active < strtotime( '-10 days') ) bbp_close_topic( $topic_id ); } }if you want to improve the code, just add an item to my support page
great !!
In reply to: Remove users icon from revisionthat’s a perfectly good solution !
In reply to: Remove users icon from revisionlink to an example on your site ?
In reply to: bbPress + Elementor Headerjust tried it, it is all good, you must have missed a character off somewhere, just add it to the end
<?php function hello_elementor_child_enqueue_scripts() { wp_enqueue_style( 'hello-elementor-child', get_stylesheet_directory_uri() . '/style.css', [ 'hello-elementor' ], '1.0.0' ); } add_action( 'wp_enqueue_scripts', 'hello_elementor_child_enqueue_scripts' ); function ele_disable_page_title( $return ) { return false; } add_filter( 'hello_elementor_page_title', 'ele_disable_page_title' ); add_filter( 'bbp_register_topic_post_type', 'rew') ; function rew ($rew) { $rew = array( 'labels' => bbp_get_topic_post_type_labels(), 'rewrite' => bbp_get_topic_post_type_rewrite(), 'supports' => bbp_get_topic_post_type_supports(), 'description' => esc_html__( 'bbPress Topics', 'bbpress' ), 'capabilities' => bbp_get_topic_caps(), 'capability_type' => array( 'topic', 'topics' ), 'menu_position' => 555555, 'has_archive' => ( 'forums' === bbp_show_on_root() ) ? bbp_get_topic_archive_slug() : false, 'exclude_from_search' => true, 'show_in_nav_menus' => true, 'public' => true, 'show_ui' => current_user_can( 'bbp_topics_admin' ), 'can_export' => true, 'hierarchical' => false, 'query_var' => true, 'menu_icon' => '', 'source' => 'bbpress', ) ; return $rew ; } add_filter( 'bbp_register_reply_post_type', 'rew2') ; function rew2 ($rew) { $rew2 = array( 'labels' => bbp_get_reply_post_type_labels(), 'rewrite' => bbp_get_reply_post_type_rewrite(), 'supports' => bbp_get_reply_post_type_supports(), 'description' => esc_html__( 'bbPress Replies', 'bbpress' ), 'capabilities' => bbp_get_reply_caps(), 'capability_type' => array( 'reply', 'replies' ), 'menu_position' => 555555, 'exclude_from_search' => true, 'has_archive' => false, 'show_in_nav_menus' => true, 'public' => true, 'show_ui' => current_user_can( 'bbp_replies_admin' ), 'can_export' => true, 'hierarchical' => false, 'query_var' => true, 'menu_icon' => '', 'source' => 'bbpress', ) ; return $rew2 ; }In reply to: @mentionsmaybe, I’m tied up in paid work at the moment, so can’t really find time to take a look at the code
In reply to: Freshness is way offyes
great
In reply to: Incorrect Forum statsthis can happen when a message gets flagged as spam.
go to
dashboard>tools>forums>repair forums and go through those that count topics and replies
In reply to: @mentionsIn reply to: Formatting not Applyit could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
In reply to: Elementor Problems with BBPressnot used elementor, but this should let you style bbpress
In reply to: bbpress menu not showing in dashboardgreat
In reply to: bbpress menu not showing in dashboardforums etc. are not for the dashboard part of the site for participants.
create a page and put this code in it
[bbp-forum-index]Then put this page into your site menu
In reply to: Divi Builder Header not loading on search pagessorry, no idea why.
Beyond free help, esp. given that divi is a paid product and bbpress is free.
In reply to: Topic Title lengthgreat!!
In reply to: Topic Title lengthPut this in your child theme’s function file – or use