Back end: under Forums it shows the ‘Last Post’ as 3 hours, 30 minutes ago when I just added a test post. However, under ‘Replies’ it shows the correct time in the ‘Created’ column.
Can you test this with a page or post – bbpress is just a custom post type and uses wordpress code for the backend
The message is generated by bbPress as an alert on the WP dashboard. Some explanation here:
https://codex.bbpress.org/features/tools/upgrade-forums/
Hello,
I have a problem with the display of the breadcrumbs. On my local bbpress forum they appear well and all works. But on the online version I do not see them appear. It’s the same code and the same settings.
hmmm… that code looks fine.
I’m not quite sure what you mean in
Also I try with the update in the root of functions.php this works, sort of, because the update is done, but the select dropdown in the user profile in the admin page get stuck in the old one, but in code the selected one is the updated, if I get out and enter again is fixed.
have you access to the database?
WP version: 5.8.3
bbpress version: 2.6.9
site is in a local environment at the moment.
I’m trying to update the role for the users once they enroll in course. I manage to found an entry point for this with “learndash_update_course_access” once there is an update in the user courses list. This part works. What is giving me troubles is the update of the user bbpress roles.
This is the most raw code I try:
add_action( 'learndash_update_course_access', 'updatebbpressrole', 20, 4 );
function updatebbpressrole ($user_id, $course_id, $course_access_list, $remove) {
$new_role_forum_role = "bbp_blocked";
bbp_set_user_role( $user_id, $new_role_forum_role );
}
I try with a pair of custom roles I have, but it also happens with the basics bbpres roles too, so is not related to the new roles.
Also I try with the update in the root of functions.php this works, sort of, because the update is done, but the select dropdown in the user profile in the admin page get stuck in the old one, but in code the selected one is the updated, if I get out and enter again is fixed.
Any idea about why bbp_set_user_role is not working this way ?
ok, that is not the bbpress widget but a shortcode – bbpress has both for login.
what would you like the shortcode to do that is not standard?
having hidden it, you can amend the width of the other columns
eg
li.bbp-forum-freshness, li.bbp-topic-freshness {
display: none;
}
li.bbp-forum-info, li.bbp-topic-title {
width: 65%;
}
li.bbp-forum-reply-count, li.bbp-forum-topic-count, li.bbp-topic-reply-count, li.bbp-topic-voice-count {
width: 15%;
}
can you just let me know what shortcode you are using, then I can try it out on my test site.
If I understood correctly, those settings affect only to widgets that are placed somewhere, on the sidebar, footer etc.
If I use a Shortcode to place the widget in the Page it will not read those settings, instead it shows the default settings (no links).
…maybe I’m doing this someway wrong, or not like it should be done, I’m quite new to WP and totally new to this “new” WordPress.
Hi,
I’m trying to access the bbPress widget settings but WP opens the “new” widget editor when I go to Apperance –> Widgets. I have WordPress 5.8.3 Installed, and newest bbPress.
How can I access these settings show in this image:

In the background there is what I get and in the foreground what I want. It is from a tutorial I’m following.
I want to add the widget to the page with a Shortcode, and links aren’t working if I don’t have access to settings.
Robin-w the site is offline. I actually use it for notes on my clients dealings. It did not work for me and I even tried the plugin as well. Seen as it worked for neon67 I can only assume its a plugin that is causing me the problem. I changed the theme to the default WP theme and it did not work. I will deactivate the plugins over the weekend and try the code again and hopefully it will work.
ok so 2 things you can do here
1. add a label
add_action ('bbp_theme_before_topic_form_content' , 'rew_content_title') ;
function rew_content_title () {
echo '<label for="bbp_topic_content">Topic Content</label><br />' ;
}
Just change ‘Topic Content’ to whatever you wish
2. add back the editor
add_action( 'wp_footer', 'rew_supports_js' );
function rew_supports_js() {
echo '<script>document.body.classList.remove("no-js");</script>';
}
Put these in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
Code Snippets
Solo puedo sugerirle que use el traductor de Google o el traductor de su navegador, para ver este enlace
Step by step guide to setting up a bbPress forum – Part 1
have you tried this
add_action( 'wp_footer', 'rew_supports_js' );
function rew_supports_js() {
echo '<script>document.body.classList.remove("no-js");</script>';
}
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
Code Snippets
if it’s wp search then why do they have setting bbpress forum-wide search in bbpress settings?
should I need to look at wp search core code or queries?
bbPress search has no options, it is the same as WP search, so if you havw code modifying WP search it will affect bbPress search also.
Thanks for replying.
Title and content, and topic replies are not considered as content? that’s why not search from topic replies?
Do I have to do that customization on bbpress search side? because right now I am using default bbpress search.
Can you tell me where should I have to add code or can you refer me to any site where I can check and modify code
By default, WP search works on content and title. But, there are plugins and/or custom code that can change that. Maybe you have some custom code to modify the search scope.
Happy new year 2022! we have already arrived.
but the code doesn’t work again 🙂
now your new code is on air .. but .. you can go to the same addresses
ok, lets try agian and see if we can get there.
Your site has
https://imhodom.ru/forums/users/ox/replies/
so we need to check for ‘/users/’ and ‘/replies/’
and we’ll try and up the priority so that other code does not overwrite
add_action( 'bbp_template_redirect', 'neon_check_replies', 100);
function neon_check_replies(){
//only execute if the url contains both /user/ and /replies/, so test for this first
if (strpos($_SERVER['REQUEST_URI'], '/users/') !== FALSE && strpos($_SERVER['REQUEST_URI'], '/replies/') !== FALSE) wp_redirect( 'https://imhodom.ru/forums' );
}
I pasted the code, but …
it should look like this
https://imhodom.ru/forums/users/ox/topics/ – lock оr redirect…
but it doesn’t work like want (that’s want to fix)
https://imhodom.ru/forums/users/ox/replies/
Please delete this message as you see.
The last advice code is inserted and works.
ok, so if the replies link goes to
https://mysite.com/forums/user/admin/replies/
then this
add_action( 'bbp_template_redirect', 'neon_check_replies');
function neon_check_replies(){
//only execute if the url contains both /user/ and /replies/, so test for this first
if (strpos($_SERVER['REQUEST_URI'], '/user/') !== FALSE && strpos($_SERVER['REQUEST_URI'], '/replies/') !== FALSE) wp_redirect( 'https://mysite/home' );
}
will send anyone clicking the link to the site home page
what does it do for you?
Does this code work for you?
If so, I will look on my side myself.
You’ve done so much for me.
I paste the code down before the sign ?>
The first code worked – redirected the address with the word ‘users’.
The second code doesn’t make any changes by the look.
ok try this
add_action( 'bbp_template_redirect', 'neon_check_replies');
function neon_check_replies(){
//only execute if the url contains both /users/ and /replies/, so test for this first
if (strpos($_SERVER['REQUEST_URI'], '/users/') !== FALSE && strpos($_SERVER['REQUEST_URI'], '/replies/') !== FALSE) wp_redirect( 'https://example.com/some/page' );
}