Search Results for 'bbpress'
-
AuthorSearch Results
-
March 16, 2020 at 11:04 am #209423
boomer48
ParticipantIt’s a private website for our HOA so I would need to change it to public to make the link work. Not sure what you would see other than a grayed out post. The settings for the post are “Super Sticky” and “Closed”. Simple plain text.
My real question is why manually editing the color code in the CSS files doesn’t have any effect. I have deleted the forum, deactivated bbpress, activated bbpress, and created a new forum. Shouldn’t that pick up the changed CSS files? My host is Bluehost if that makes any difference.
March 15, 2020 at 10:09 pm #209407boomer48
ParticipantI edited both the bbpress.css and the bbpress-min.css files to change the “status-closed” text color from #ccc to #000 as indicated in any number of posts on this topic. Still shows up as gray text.
March 15, 2020 at 3:35 pm #209404In reply to: Mark all forums as read
SirLouen
ParticipantI have a bad omen for my question after finding this:
March 15, 2020 at 3:06 pm #209402In reply to: bbPress 2.6.4 Remove Default Search Bar
uksentinel
ParticipantJust as an update, editing the content-archive-forum.php file worked and the GD Power Search for bbPress plugin now works as expected
Many thanks for your guidance
March 15, 2020 at 1:44 pm #209399SirLouen
ParticipantI’ve put that change in my site and submitted the patch in the trac. The best thing is that you reported this 4 months ago!! https://bbpress.trac.wordpress.org/ticket/3297
March 15, 2020 at 1:29 pm #209397SirLouen
ParticipantFound the issue: https://bbpress.trac.wordpress.org/ticket/3356
This can be closed now.
March 15, 2020 at 1:20 pm #209395In reply to: bbPress 2.6.4 Remove Default Search Bar
Robin W
Moderatorhmmm… 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
March 15, 2020 at 1:10 pm #209394In reply to: bbPress 2.6.4 Remove Default Search Bar
uksentinel
ParticipantHi Robin, just cleared the cache and found that via GD Power Search for bbPress plugin, the default search works, but when I then select advanced search, the page/script for advance search does not appear. Home › Forums › Search ?
I have left it running an my site incase you get a chance to try for yourself, you do not need to be a forum member for searches etc on my site ?
March 15, 2020 at 12:22 pm #209391SirLouen
Participant@robin-w This is not working as expected and I think there is a bbpress bug. I’m currently testing in my localhost but I think I will publish on trac what I’m finding
March 15, 2020 at 12:16 pm #209390In reply to: bbPress 2.6.4 Remove Default Search Bar
Robin W
Moderatorput this in the custom css of your theme
#bbpress-forums #bbp-search-form { display: none !important; }March 15, 2020 at 12:04 pm #209388Topic: bbPress 2.6.4 Remove Default Search Bar
in forum Troubleshootinguksentinel
ParticipantHi
Currently running bbPress 2.6.4 and would like to understand how to remove / hide the default search bar that appears at the top of the Forums page listings
I have in a side bar widget set-up ‘GD Power Search for bbPress’ – (works very well), just need to remove the Search bar from the top of the Forums page as looks out of character for my forum
Forum is https://uktechhub.com/forums/
Thanks
March 15, 2020 at 11:38 am #209387SirLouen
ParticipantI’ve checked the bbpress code and it seems that something is hindering my site
Theorically it shall show the last replay by default without the need of a plugin because it technically should be saving the last active id in the forum post meta field _bbp_last_active_idNot sure what can be hindering my forum behaviour :S
March 15, 2020 at 9:54 am #209385Topic: Mark all forums as read
in forum PluginsSirLouen
ParticipantI’m checking this very old plugin
Isn’t this implemented by default in bbpress nowadays?
March 14, 2020 at 10:53 pm #209377In reply to: Help with bbPress Topics for Posts addon plugin
webcreations907
ParticipantThey may have quit working on it.
I did some digging through their code, and came up with something for you to try if you want.
You’ll add the below code to your theme’s
functions.phpfile, once you add the code and save the file. Reload your WordPress admin area by refreshing the page/browser, then remove the code and re-save the file.Go to your discussions page, and try out that button(Apply settings to existing posts) again and see if it works for you.
if(!function_exists('bbppt_reset_topics_for_posts_meta_fix')){ function bbppt_reset_topics_for_posts_meta_fix(){ $args = array( 'meta_key' => 'bbpress_discussion_comments_copied', 'post_type' => 'post', 'post_status' => 'any', 'posts_per_page' => -1 ); $posts = get_posts($args); if($posts){ foreach ($posts as $post) { delete_post_meta( $post->ID, 'bbpress_discussion_topic_id'); delete_post_meta( $post->ID, 'bbpress_discussion_comments_copied'); $comments = get_comments( array( 'post_id' => $post->ID, 'order' => 'ASC' ) ); if($comments){ foreach ($comments as $comment) { delete_comment_meta( $comment->comment_ID, 'bbppt_imported'); } } } } } add_action( 'admin_init', 'bbppt_reset_topics_for_posts_meta_fix' ); }March 14, 2020 at 4:44 pm #209375In reply to: 503 error on reply page of wp-admin
adishor22
ParticipantThis probably comes too late to be of any use to you, and maybe your error had a different cause, but I encountered this problem on my site yesterday and was able to fix it by deleting some replies that did not have associated parent topics in the wp_posts database.
I accessed wp_posts using PHP My Admin, entered “reply” next to “post type”, and manually deleted all posts that had “0” under their “Post parent”.
In my case the error appeared after I clicked on “Replies” – “Add new” – “Preview” in the dashboard. It created an errant entry in the database. It’s probably a bbPress bug.
Please use maximum caution before modifying the database though, and don’t do it if you don’t have a proper backup.
March 14, 2020 at 11:51 am #209372In reply to: Automatic Archive Settings for Topics
Robin W
ModeratorPut 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 ); } }March 14, 2020 at 4:10 am #209358In reply to: bbPress + Elementor Header
Robin W
Moderatorjust 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 ; }March 13, 2020 at 8:16 pm #209352In reply to: Help with bbPress Topics for Posts addon plugin
webcreations907
ParticipantHi,
Did you try asking the developer of that plugin?
You can post on their support page here:https://wordpress.org/support/plugin/bbpress-post-topics/, other users of that plugin might be able to help if you post on there.March 13, 2020 at 6:04 pm #209347In reply to: Split up my Tags page
webcreations907
ParticipantHello,
How about just adding filter buttons to your current page so that users on your site aren’t directed to another page, instead the tags are displayed based on “Filter” type buttons they click while on that same page. Kinda like a filtered portfolio type set up.
Example
Filter buttons at the top of your tag cloud(i.e A-F, G-L,M-S, etc), when user clicks say “A-F”, then all the tags that are within that range are shown, while the rest are hidden. But you’d still be on the same page. Then have a “All” button so they could get back to the default view of all them being shown.Just a bbpress user here, just had a idea for you on that so thought I’d mention it.
March 13, 2020 at 2:18 pm #209335In reply to: Freshness is way off
webcreations907
ParticipantNo problem, glad that’s working out for you so far. 🙂
You can remove the code when bbpress releases a fix for it, it’s just a temporary solution until it gets worked out.
March 13, 2020 at 11:08 am #209332In reply to: Freshness is way off
ericsims
ParticipantAlright, I pasted it in to functions.php, and it seems to be working so far. Thanks so much for sharing! I’ll keep an eye on it over the coming days and hope it keeps working.
Will I need to remove this code if/when bbPress is updated to incorporate this fix?
March 13, 2020 at 8:49 am #209326In reply to: Freshness is way off
Alexander Agnarson
ParticipantSame issue here.
Discussed here too: https://bbpress.org/forums/topic/after-upgrade-to-2-6-x-latest-reply-is-not-the-latest-one-index-only/#post-208975
March 13, 2020 at 5:17 am #209322Topic: Help with bbPress Topics for Posts addon plugin
in forum PluginsStephen Ekpa
ParticipantHi…
I’m trying to combine bbPress and bbPress Topics for Posts addon in a certain way. But I needed to extend the bbPress Topics for Posts, a dev. work which was successful.But in the process of extending the addon plugin, the “Apply settings to existing posts” section in the addon setting was touched, which created unwanted forums that needed to be deleted. So I reset the forum completely.
But now, I’m hitting on “Apply settings to existing posts”, but it is not working with old post?. Please, what can I do to get old post to sync again?
webcreations907
ParticipantOh sorry, no it doesn’t do that, it just emails the user you mention.
This one https://wordpress.org/plugins/comment-mention/, seems to show the mentions block you’re wanting, but looks like it would need to be changed to work in the bbPress comment editor.
March 12, 2020 at 11:14 pm #209304In reply to: Freshness is way off
webcreations907
ParticipantThe below should update the “Topic” page and the main “Forum” page.
Once you add the code, you’ll have to add a reply to a topic for it to update. Or run the forum repair Robin W mentioned above.
Add the below code to your
functions.phpfile of your theme (preferably child theme), or use the code snippet plugin.if(!function_exists('ticket3297_bbpress_update_latest_activity')){ function ticket3297_bbpress_update_latest_activity( $reply_id, $topic_id, $forum_id ){ $new_time = get_post_field( 'post_date', $reply_id ); if ( ! empty( $new_time ) ) { update_post_meta( $forum_id, '_bbp_last_active_time', $new_time ); } update_post_meta( $forum_id, '_bbp_last_active_id', $reply_id); update_post_meta( $forum_id, '_bbp_last_reply_id', $reply_id ); $forum_obj = get_post( $forum_id ); if( $forum_obj && $forum_obj->post_parent !== 0 && bbp_is_forum_category( $forum_obj->post_parent ) ){ update_post_meta( $forum_obj->post_parent, '_bbp_last_active_id', $reply_id ); update_post_meta( $forum_obj->post_parent, '_bbp_last_reply_id', $reply_id ); if ( ! empty( $new_time ) ) { update_post_meta( $forum_obj->post_parent, '_bbp_last_active_time', $new_time ); } } } add_action( 'bbp_new_reply', 'ticket3297_bbpress_update_latest_activity',10,3 ); } if(!function_exists('ticket3297_bbpress_delete_update_latest_activity')){ function ticket3297_bbpress_delete_update_latest_activity(){ $reply_id = bbp_forum_query_last_reply_id(); ticket3297_bbpress_update_latest_activity( $reply_id, bbp_get_reply_topic_id( $reply_id ), bbp_get_reply_forum_id( $reply_id ) ); } add_action('bbp_deleted_reply','ticket3297_bbpress_delete_update_latest_activity'); add_action('bbp_trashed_reply','ticket3297_bbpress_delete_update_latest_activity'); }That should run when replying, deleting, and trashing replies.
-
AuthorSearch Results