Forum Replies Created
-
great – glad you are fixed
In reply to: Help recover replies from a corupt databasetry
dashboard>tools>forums>repair forums and run one at a time
Not sure what you would see other than a grayed out post.
lots of front end tools we can use to see what is happening, which we can’t with pictures.
My real question is why manually editing the color code in the CSS files doesn’t have any effect.
could be loads of things, including caching as Chuckie says, theme and child theme issue or other things.
In reply to: Automatic Archive Settings for Topicsyes, should be
link to a live example on your site please
In reply to: bbPress 2.6.4 Remove Default Search Bargreat – glad you are fixed !!
that’s great, and yes looks like you’ve found then underlying issue.
great, are you putting that change into your site or just waiting for a new version ?
In reply to: bbPress 2.6.4 Remove Default Search Barhmmm… css won’t do it then.
you’ll need to amend content-archive-forum.php in your child theme
find
wp-content/plugins/bbpress/templates/default/bbpress/content-archive-forum.phptransfer this to your pc and edit
delete line 17
<?php bbp_get_template_part( 'form', 'search' ); ?>
and save
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/content-archive-forum.phpbbPress will now use this template instead of the original
In reply to: bbPress 2.6.4 Remove Default Search Bar🙂
In reply to: bbPress 2.6.4 Remove Default Search Barput 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