*** FIXED***(kind of)*** I know it’s been 8 years since this was active but I’ve been banging my head for DAYS trying to figure this out and HERE’S THE FIX!!!
Download the plugin BBP Style Pack https://wordpress.org/plugins/bbp-style-pack/ after activation go into style pack settings open the “Freshness Display” tab – check the ‘activate freshness display’ box and then change the freshness format from default to display the date on the last post. Save changes and that’s it. If you leave the setting on default it will not work. You will have the same problems. It needs to be changed to ‘show date of last post.
I HOPE YOU CAN RELAX NOW
Thank you for your help. That helped me filter through the different parts of the breadcrumb and selectively replace the default forum URL with my static forum URL.
For anyone else reading this that wants the code I used, to replace the URL (or text if you want to) of the “Forum” portion of the breadcrumb:
function gnpwdr_bbp_breadcrumb_url($crumbs) {
global $bsp_breadcrumb;
$pattern = '/(?<=href\=")[^]]+?(?=")/';
$my_forum_url = '/custom-page/';
$crumbs[0] = preg_replace($pattern, $my_forum_url, $crumbs[0]);
return $crumbs;
}
add_filter('bbp_breadcrumbs', 'gnpwdr_bbp_breadcrumb_url');
sorry, there are 300,000 users of bbpress and you have found a couple of instances where users found an issue.
In one advice was to troubleshoot the problem, and the user never came back, in the other one user found that it was a wp mail plugin.
I appreciate that you ae frustrated, but ‘this same exact issue 5 and a half years ago? Is this issue still not fixed?’ is not going to endear you to the free support offered for this free product.
As a first instance, please do the troubleshooting :
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
Hi –
Rather than using the default ‘forum’ page to display my forum, I am embedding the forum on a custom static page using a shortcode.
I’d like to update the breadcrumbs and either hide (preferred) the default forum name/URL, or, edit the forum URL. I doubt I can edit the URL, so I’m okay with hiding the URL and manually injecting the URL in my functions.php file using the arg [‘before’]. Unfortunately, I don’t see a way to hide the specific Forum from the breadcrumbs. See possible arguments here: https://github.com/ntwb/bbPress/blob/master/src/includes/common/template.php#L2277-L2303
Out of the box:
Home (/) » Forums (/forums) » Forum Title (/forums/forum/forum-title/) » Topic
Ideal:
Forum Title (/custom-page/) » Topic
Actual (based on code below):
Forum Title (/custom-page/) » Forum Title (/forums/forum/forum-title/) » Topic
Here is the code I’m using to make that happen. Looking for a way to hide that second Forum Title.
function custom_bbp_breadcrumb() {
$args['before'] ='<div class="bbp-breadcrumb"><p><a href="/custom-page/" class="bbp-breadcrumb-forum">Forum Title</a><span class="bbp-breadcrumb-sep"> » </span>';
$args['include_home'] = false;
$args['include_root'] = false;
return $args;
}
add_filter('bbp_before_get_breadcrumb_parse_args', 'custom_bbp_breadcrumb' );
Yes, these are the default theme settings. thanks for the answer
it’s showing tags with 2 & 1 on my test site.
If you sure it is an issue, then unlikely 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
ok, so I can only suggest you do some issue finding
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.
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
this (surprisingly) is not easy within bbpress.
You would do better to force worpdress to have display name as username eg
https://wordpress.stackexchange.com/questions/138034/default-display-name-as-username
The bbPress Login Widget, upon submitting username/password simply redirects to /wp-login.php where the user has to again submit the username/password. It simply doesn’t log the user in at all. I have tested this with a fresh WP install with the default theme and only bbPress running. See video demo here: https://drive.google.com/file/d/17gdtsNw401_ZYt2PcFKtyrO5rA49HGxg/view
Let me know if you have any questions – happy to provide any info to debug.
OP: Let us know if this is this same issue you are having or if this is a different issue.
it 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.
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 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.
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 tried it on my website, and that code works fine.
3 possibilities
1. the 90 is wrong
2. the 90 forum does not have sub forums
3. some other code is filtering the bbp_forum_get_subforums function
If you are happy it is not 1 or 2, then it 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.
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 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.
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
you are correctly editing the template, but it needs to be placed in your child-theme
so
find
wp-content/plugins/bbpress/templates/default/bbpress/user-profile.php
transfer this to your pc and edit
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/user-profile.php
bbPress will now use this template instead of the original
Hi,
Sorry, I’ve found that the problem is because the user edit template has been customised. The default template still works so I think I’ll have to use that instead.
Thanks
1. You should be aware that many spam filters strip messages that do not come from the correct address. So if your site is mysite.com and your email address
in wordpress settings>general is fred@gmail.com then it is likely that messages will be dumped in transit.
You need to set up email to come from your site eg fred@mysite.com, your hosting provider can help if needed.
2. Just bbpress?
Then you need to see if this is wordpress wide or just bbpress.
Try https://wordpress.org/plugins/check-email/
it 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.
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
Next try switching to smtp email – this page from the host Siteground explains it
https://www.siteground.co.uk/tutorials/wordpress/use-smtp/
If you choose other SMTP servers as a mailer, then you email/website hoster shoud be able to give you details of what to enter
and of course
By default, you do NOT receive emails for your own topics/replies, only if somebody else replies on your subscribed topics
so testing would need two email accounts to prove !
Hi again,
I added this code:
if ( function_exists( 'bbp_enqueue_script' ) && function_exists( 'bbp_get_version' ) ) {
bbp_enqueue_script( 'bbpress-engagements', 'js/engagements.js', array( 'jquery' ), bbp_get_version(), true );
}
so now it looks like this:
add_shortcode( 'bbpresscomments', function() {
$output = '';
$current_id = function_exists( 'vcex_get_the_ID' ) ? vcex_get_the_ID() : get_the_ID();
$topics = new WP_Query( array(
'post_type' => 'topic',
'posts_per_page' => -1,
'fields' => 'ids',
) );
if ( $topics->have_posts() ) {
// enqueue scripts on this next line...
if ( function_exists( 'bbp_enqueue_script' ) && function_exists( 'bbp_get_version' ) ) {
bbp_enqueue_script( 'bbpress-engagements', 'js/engagements.js', array( 'jquery' ), bbp_get_version(), true );
}
foreach( $topics->posts as $topic ) {
if ( get_the_title( $topic ) == get_the_title( $current_id ) ) {
$output .= do_shortcode( '[bbp-single-topic id="' . intval( $topic ) . '"]' );
}
}
}
return $output;
} );
because I can see that code that enables all functionality including AJAX, is only enqueued for bbPress pages:
https://github.com/bbpress/bbPress/blob/afa6030c3e27c4fe582743074a603d25b5e4de48/src/templates/default/bbpress-functions.php#L151
And it’s not enabled for bbPress shortcodes.
Is this right?
Could you please tell me what is wrong with my code, and why cannot I enqueue the scripts that will enable AJAX for the shortcodes?
Instead of proper enqueuing, my code makes the buttons not work at all, when I click on them, nothing happens.
Interestingly, the forum font names are inherited from the Google Fonts plugin I’m using, which is great.
Presumably you don’t specify a default font name then? Is there a major reason why you specified a default font size?
Hi Robin,
I could do a child theme and CSS if that’s necessary but I am trying to figure out whether it is actually necessary.
If you look at the page I’ve linked to – the topics index for the single forum on my website I believe – then I assume you’ll see the same as me, which is that there is the massive page title, which is default Twenty Twenty theme like the rest of the website, and there is the tiny bbPress text, inc. forum information, pagination text, topic title etc.
I tried changing the forum information font size in the Topics Index Styling tab but it had no effect. Am I using the wrong bbPress Style Pack tab?
When I input terms to the search form, it redirect to index.php.
<?php bbp_get_template_part( 'form', 'search' ); ?>
I went through troubleshooting here and changed search slag to ‘find’ but it couldn’t resolve.
Search Redirects to Front Page
I also tried common troubleshooting here: https://codex.bbpress.org/getting-started/troubleshooting/
Nothing changed.
It seems my customized theme causing an issue because it worked when I switched to the default ‘Twenty Nineteen’ theme it worked.
But I have no idea which part is causing the issue. Can somebody help?
Hi,
sorry for the noob question, hopefully the answer’s easy, but I can’t figure it out or find an answer online. Slightly overwhelmed by the 25 tabs on the bb style pack settings.
I just installed bbpress and the style pack on my WordPress site and set up my single forum here:
North London Low Carbon Future Group
However the font size is tiny. I’m using theme Twenty Twenty so I figured it should be defaulting to something that blends right in. Isn’t that the way it’s meant to work?
ok, yes bbpress just uses wordpress registration
it could be an email issue – email is notoriously difficult to get consistent – many email companies see wordpress emails as spam.
so I’d try the following which is my standard email advice:
1. You should be aware that many spam filters strip messages that do not come from the correct address. So if your site is mysite.com and your email address
in wordpress settings>general is fred@gmail.com then it is likely that messages will be dumped in transit.
You need to set up email to come from your site eg fred@mysite.com, your hosting provider can help if needed.
2. Just bbpress?
Then you need to see if this is wordpress wide or just bbpress.
Try https://wordpress.org/plugins/check-email/
it 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.
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
Next try switching to smtp email – this page from the host Siteground explains it
https://www.siteground.co.uk/tutorials/wordpress/use-smtp/
and of course
By default, you do NOT receive emails for your own topics/replies, only if somebody else replies on your subscribed topics
so testing would need two email accounts to prove !
looks like a css issue.
if this is a new installation (that is submit has never shown) then it 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.
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
hmm.. not really a bbpress issue, and nothing has changed in bbpress recently.
it 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.
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
Thanks for spotting that. I’d assumed it was something I had done to disrupt BBPress but I hadn’t spotted the page was being refreshed and that it cleared the Javascript error from the console.
Until the issue is fixed, a better work-around is to add a filter to functions.php rather than modify the BBPress code directly. That way the fix should survive a BBPress update. I used…
// Prevent reply button in forums from executing a refresh of the page
add_filter('bbp_get_reply_to_link', 'ctcFixReplyToLink', 10, 3);
function ctcFixReplyToLink( $link, $r, $args ) {
return str_ireplace( '"return addReply', '"event.preventDefault(); return addReply', $link );
}