most likely. I asked for a live preview from our developers and got one.
Is there some other way to get a live preview? Longer posts, especially with photos, are quite difficult to write with just the default editor. Which is great for shorter posts though.
Thank you for your time and input. It is very much appreciated!
As a very long-time WordPress developer, I can state with confidence that a function that returns trashed posts by default is abnormal and unexpected, and not having a way to override such behavior is practically unheard-of in well-used, public plugins. I can’t think of another example.
I’ve made attempts in the past to gain employment from WordPress/Automattic because of issues like this that I’d really like to dig into, not to mention some pieces of Jetpack that I’d love to tweak. I haven’t had any luck getting a response from them through their very odd job application process.
That trac link you provided is probably the link I needed when I posted here instead. Thanks again.
I have created a custom plugin, to do customization in BBPRESS templates, & Paid Membership Pro.. Everything other customization is working fine, But the template i want to show instead of bbpress default loop-topics.php template is not showing it /wp-content/plugins/pharmacy-membership-forum/pharmacy-membership-forum.php – Mian Plugin File /wp-content/plugins/pharmacy-membership-forum/includes/templates.php – the file where we are connecting loop-topics.php /wp-content/plugins/pharmacy-membership-forum/templates/bbpress/loop-topics.php – new template for loop-topics.php templates.php Code it appears that bbPress is not prioritizing your custom templates, or something else might be going wrong during the template loading process.
<?php
// Prevent direct access
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Hook into plugins_loaded to ensure bbPress is loaded
add_action('plugins_loaded', 'cmp_override_bbpress_templates');
/**
* Function to override bbPress templates.
*/
function cmp_override_bbpress_templates() {
// Add filter to override bbPress template parts
add_filter('bbp_get_template_part', 'cmp_custom_template_parts', 10, 3);
}
/**
* Filter to override bbPress templates.
*
* @param array $templates Array of template paths.
* @param string $slug Template slug.
* @param string $name Template name.
* @return array Modified array of template paths.
*/
function cmp_custom_template_parts($templates, $slug, $name) {
$plugin_template_path = plugin_dir_path(dirname(__FILE__)) . 'templates/bbpress/';
// Check for various templates and override them
if ($slug === 'loop' && $name === 'topics') {
$custom_template_path = $plugin_template_path . 'loop-topics.php';
array_unshift($templates, $custom_template_path);
}
if ($slug === 'content' && $name === 'single-forum') {
$custom_template_path = $plugin_template_path . 'content-single-forum.php';
array_unshift($templates, $custom_template_path);
}
if ($slug === 'loop' && $name === 'single-topic') {
$custom_template_path = $plugin_template_path . 'loop-single-topic.php';
array_unshift($templates, $custom_template_path);
}
return $templates;
}
Hi
We’re getting strange PHP Error messages relating to forum posts that don’t exist like this one. Should we be concerned?
Many thanks
Robert
WordPress database error Duplicate entry ‘8702-67865’ for key ‘PRIMARY’ for query INSERT INTO ggx_gdbbx_tracker
(user_id
, topic_id
, forum_id
, reply_id
, latest
) VALUES (8702, ‘67865’, ‘11504’, ‘72638’, ‘2024-05-15 06:40:25’) made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), apply_filters(‘template_include’), WP_Hook->apply_filters, bbp_template_include, apply_filters(‘bbp_template_include’), WP_Hook->apply_filters, bbp_template_include_theme_compat, BBP_Shortcodes->display_topic, bbp_get_template_part, bbp_locate_template, load_template, require(‘/plugins/bbpress/templates/default/bbpress/content-single-topic.php’), do_action(‘bbp_template_after_single_topic’), WP_Hook->do_action, WP_Hook->apply_filters, Dev4Press\Plugin\GDBBX\Features\ActivityTracking->latest_users_topic, Dev4Press\Plugin\GDBBX\Database\Main->track_topic_visit, Dev4Press\v47\Core\Plugins\DBLite->__call, call_user_func_array
The bbp_get_all_child_ids()
function in bbpress/includes/common/functions.php
is returning Trashed posts, which should objectively not be the case. There’s no world in which trashed posts should appear unless someone is intentionally digging in the trash.
Line 1997 is currently this:
$not_in = array( 'draft', 'future' );
It should be this instead:
$not_in = array( 'draft', 'future', 'trash' );
I have tested that as a manual change, but obviously, this needs to be bbpress’ default behavior, not my locally-hacked override.
Alternatively, you could add a third argument for overrides, but I think this is just an oversight.
Thank you.
I do not want BBPress login anywhere, nowhere at all, because I’m already handling login:
https://veganlinked.com/forums/forum/welcome/ see login at the bottom? That comes from BBPress, that is a BBPress forum. BBPress is a forum that has a login by default. I do not want their login.
Take that back, working when put in the following file:
wp-content/plugins/bp-classic/themes/bp-default/functions.php
Thanks.
ok you doing the equivalent of sending me an image of your car engine and expecting me to tell you what the noise it is making is caused by. 🙂 🙂
I would suspect it is theme related, and menus and scroll are theme related.
Themes
As a test switch to a default theme such as twentytwenty, 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.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Health Check & Troubleshooting
Then come back
I said something about email error but forget it, emails are well working.
Problem is to go to default page after login instead of URL link include in the email.
Not appropriate. People want to open the page they asked for from the email. This is the way with public forum or already logged in. But we can’t expect users to be connected all the time. Right ?
Right now, my forums seem to be formatted according to my theme’s single post template, which uses a cover style layout in my theme. This doesn’t suit the pages generated by bbPress (see forum, topic compared to forum index).
How can I tell bbPress to use a default page template rather than post?
Thanks very much!
Hello, we are facing issue of replay not working on admin side, while adding new replay is working correctly, we have deactivated all plugins and switch to WordPress default theme still there is problem.
Error:
URL: SITE-URL/wp-admin/edit.php?post_type=reply
https://prnt.sc/IeBiZTUV9ID4
Thanks in advance
you would need to add this to your additional/custom css
/*topic titles*/
.bbpress .forum-titles {
overflow: hidden;
}
.bbpress .forum-titles .bbp-topic-voice-count::before,
.bbpress .forum-titles .bbp-topic-reply-count::before {
font: 400 16px/1 dashicons;
margin-right: 100px;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
}
.bbpress .forum-titles .bbp-topic-voice-count::before,
.bbpress .forum-titles .bbp-topic-reply-count::before {
font: 400 21px/1 dashicons;
margin-left: 20px;
}
.bbp-topic-voice-count {
display: none;
}
.bbpress .forum-titles .bbp-topic-voice-count::before {
content: "\f307";
}
.bbpress .forum-titles .bbp-topic-reply-count::before {
content: "\f125";
}
.bbpress li.bbp-header li.bbp-forum-info,
.bbpress li.bbp-header li.bbp-topic-title {
text-align: left !important;
}
and then amend loop-topics.php as foillows
find
wp-content/plugins/bbpress/templates/default/bbpress/loop-topics.php
transfer this to your pc and edit
<li class="bbp-topic-voice-count"><?php esc_html_e( 'Voices', 'bbpress' ); ?></li>
<li class="bbp-topic-reply-count"><?php bbp_show_lead_topic()
? esc_html_e( 'Replies', 'bbpress' )
: esc_html_e( 'Posts', 'bbpress' );
?></li>
to
<li class="bbp-topic-voice-count"></li>
<li class="bbp-topic-reply-count"></li>
and save
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpress
where %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/loop-topics.php.php
bbPress will now use this template instead of the original
HI Robin,
in fact, sorry I didn’t pay enough attention, but when Yousify is not activated the warning is else :
Forums
Warning: Undefined array key “forum_count” in /home/clients/3db470ac3c186374a924a94534df90ab/sites/testXXXX.com/wp-content/plugins/bbpress/templates/default/bbpress/content-statistics.php on line 27
Is there any way to change the BBPRESS Topics and Posts default menu listing to show an icon/image instead ?
I have seen a couple of BBPRESS forums (https://wordpress.org/support/view/all-topics/) that achieve this, but no idea how ?
Thanks
ok, not much i can do without seeing it, but it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, 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.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Health Check & Troubleshooting
Then come back
so set a global sidebar and make this the default
https://wpastra.com/docs/sidebar-free/
and bbpress should use this.
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, 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.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Health Check & Troubleshooting
Then come back
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, 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.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Health Check & Troubleshooting
Then come back
just a final thought. Your theme should have a default template – you might be able to change this in dashboard>appearance>customize to one that doe not have a sidebar.
Thank you so much for the reply. This really helps me show the forum. The only problem is the styles for the blocks are not included along with the forum page. I think the default hooks for block themes are not included in the plugin.
Hope to receive your confirmation. Thank you very much.
You could try the below
.bbpress.topic-template-default .cs-entry__header{
display: none;
}
Hi,
My theme is creating a featured image on the Topics which I can’t seem to change so I just have a large grey blob square at the top of every topic.
Introduce Yourself
I tried multiple default image wordpress themes and none of them worked.
I can’t add code to display: none because then it takes away the featured posts from the blog section.
Help?
I’ve read that WordPress’s new FSE themes such a Twenty Twenty Four can be an issue with bbPress because bbPress is so out of date (hasn’t been updated in over 2 years, which is very concerning).
However, I am VERY reluctant to change themes. We JUST went through a lot of time and work to rebuild the site after migrating from the old host to WordPress.com because the old custom theme was not compatible with Jetpack. I chose Twenty Twenty-Four because I assumed, as the newest WordPress default theme, that it was the most future-proof and would avoid compatibility issues.
Is there just no way around this issue while keeping the Twenty Twenty Four theme?
ok, so you definitely have bbpress enabled 🙂
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes. don’t use twenty twenty four, as it is an FSE theme
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.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Health Check & Troubleshooting
Then come back