Hello, is there any shortcode or other way to display exactly the same profile data on another subpage? I have created a subpage with some information on it, before it I want to put the profile of the user who logs in. His profile will be displayed
currently i have it at this address /members/test_user. I want this data to be displayed elsewhere
this is a notification error, and is not fatal.
Bbpress authors have not changed this one yet.
WordPress recommends that debug is not used on livre sites, so users should not see this.
It was a WordPress decision to change blacklist and whitelist due to racial connotations.
if you want to stop this displaying change the code in the file (lines 818-820) from
// Strict mode uses WordPress "blacklist" settings
if ( true === $strict ) {
$hook_name = 'blacklist';
$option_name = 'blacklist_keys';
to
// Strict mode uses WordPress "blacklist" settings
if ( true === $strict ) {
$hook_name = 'disallowed';
$option_name = 'disallowed_keys';
and keep a note of this change
Hi,
How to create a user menu:
login, register, profile link?
Is it with shortcodes?
I would also like to know how to have the same thing as on this forum:

unless you are using an existing forum plugin, the answer is either to pay someone to write code, or transfer by copy/paste
Thanks, @robin-w. Understood. Exploring custom code now and other ideas for structuring things differently now. Much appreciated. BTW – what was “this additional plugin”? Am I missing something?
This is theme related
try this in the custom css part of your theme
.youzify-forum .youzify-page-main-content .youzify-main-column {
width: 100% !important;
}
As described this would be very complicated, requiring both single sign on, and data links between two wordpress sites.
I suspect it is doable, but would take many hours work and probably custom code to achieve.
Using a single site, you could have bbpress and use this additional plugin to create private forums for groups whilst having other forums visible by all groups.
This will not fix the sub groups having events and blog posts
I made the following because of an error, does it look ok?
function filter_bbp_get_view_query_args( $args, $view ) {
// Check if the view exists
if ( function_exists( 'bbp_get_view' ) ) {
if ( ! bbp_get_view( $view ) ) {
return new WP_Error( 'invalid_view', __( 'Invalid view specified.', 'bbpress' ), $view );
}
}
if ( 'popular' === $view ) {
$args['date_query'] = array(
array(
'after' => '1 week ago',
),
);
}
return $args;
}
add_filter( 'bbp_get_view_query_args', 'filter_bbp_get_view_query_args', 10, 2 );
Questions about customization. I am using a translation tool, so my English may be unnatural.
In [bbp-single-view id='no-replies'], closed topics are also displayed, so I would like to limit it to open topics, does the following code seem ok? Please advise.
add_action( 'bbp_register_views', 'custom_bbp_no_replies' );
function custom_bbp_no_replies() {
bbp_register_view(
'no-replies',
__( 'Topics with no replies', 'bbpress' ),
apply_filters(
'bbp_topic_no_replies_query',
array(
'post_parent' => 'any',
'post_status' => bbp_get_public_status_id(), // Changed to show only open topics
'meta_key' => '_bbp_reply_count',
'meta_value' => 1,
'meta_compare' => '<',
'meta_type' => 'NUMERIC'
)
),
false
);
}
Excuse me for asking a question about customization.
I am using a translation tool, so my English may be unnatural.
I would like to limit the posts displayed in [bbp-single-view id='popular'] to 7 days.
function filter_bbp_get_view_query_args( $args, $view ) {
// Check if the view exists
if ( ! bbp_get_view( $view ) ) {
return new WP_Error( 'invalid_view', __( 'Invalid view specified.', 'bbpress' ), $view );
}
if ( 'popular' === $view ) {
$args['date_query'] = array(
array(
'after' => '1 week ago',
),
);
}
return $args;
}
add_filter( 'bbp_get_view_query_args', 'filter_bbp_get_view_query_args', 10, 2 );
ok, can you remove that code, and install this plugin :
bbp style pack
once activated go to
dashboard>settings>bbp style pack>bug fixes and you’ll see a tick box
Fix ‘A variable Mismatch has been detected’ click and save
dashboard>forums>add new or
/wp-admin/post-new.php?post_type=forum
No need to assign $topic->ID to $topic_id
You can do just simple:
foreach ($topics as $topic)
chiudi_topic_dopo_24_ore($topic->ID);
bbpress has not had a release since November 2021, so what do you mean by ‘has lately’ – if after that, then suspect something else is now making that not work.
You suggested cause (‘I suspect the code doing this is non-standard’) may be correct and something else is now causing this to show or it may not be bbpress causing this. Maybe look at what else has changed – wordpress, php versions, other plugins etc.
Without knowing your set up or indeed your technical ability (although from you post this seems to be good!) I’d also initially suggest the standard fault finding :
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
add_filter( 'bbp_get_reply_post_date', 'rew_show_time_since' , 10 , 6) ;
add_filter( 'bbp_get_topic_post_date', 'rew_show_time_since' , 10 , 6) ;
function rew_show_time_since ($result, $reply_id, $humanize, $gmt, $date, $time ){
$gmt_s = ! empty( $gmt ) ? 'G' : 'U';
$date = get_post_time( $gmt_s, $gmt, $reply_id );
$result = bbp_get_time_since( $date );
return $result ;
}
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
Oh the description box and the tags. This is what I did with regard to the description box thus far:
function change_single_topic_description_class( $output, $r, $args ) {
$new_before = str_replace( 'bbp-template-notice info', 'alert alert-info', $r['before'] );
$output = str_replace( $r['before'], $new_before, $output );
return $output;
}
add_filter( 'bbp_get_single_topic_description', 'change_single_topic_description_class', 10, 3 );
Yes, Robin. The codes run without any error. Appreciated your effort in helping me to solve the issue.
I am finishing a Bootstrap 5 theme and I have some questions about the child theme structure.
From what I can asses using BBpress theme as a child theme is by doing the following:
Copy all the template/default/bbpress files into my /childtheme/bbpress folder. This works smoothly and I am happily converting and theming.
But, the class “bbp-breadcrumb” is located in the /includes/common/template.php file.
And the class “bbp-template-notice info” is located in the /includes/forumss/template.php file.
How would I go about to move this behavior to my childtheme? Copy those files there or add code to the functions.php file or something similar?
Any pointers are appreciated!
We have ~30 WP sites on a server.
We store plugins in a central directory and slink to them from each website that uses that plugin.
(Reason: saves a lot of memory in OPCache & saves compiling the code more than once.)
This relies on plugins being well-behaved. bbpress used to work but has lately broken.
We are seeing this error:
Loading failed for the <script> with source https://www.otu.asn.au/home/lamp/wordpress/plugins/bbpress/templates/default/js/editor.min.js?ver=2.6.9
What it should be trying to load:
https://www.otu.asn.au/wp-content/plugins/bbpress/templates/default/js/editor.min.js?ver=2.6.9
Obviously the plugin is using the filepath to construct the loading URL, I suspect the code doing this is non-standard, causing the problem.
Temporary solution is to load the plugin into the wp-content directory of the site, rather than using the slink. This has been implemented but means that the plugin won’t update. (We do updates outside of WP using python/SVN, and apache doesn’t have write access to any directories that contain PHP files – more secure). Fortunately we don’t use the plugin on any other sites.
if ($user_role == 'bbp_prime_moderator') unset ($links['edit']) ;
for custom roles, you just name the role itself.,
There it is:
$bbp_roles['bbp_prime_moderator'] = array(
I’ve tried the two options below but both return errors:
if ($user_role == bbp_get_bbp_prime_moderator_role()) unset ($links['edit']) ;
if ($user_role == bbp_get_prime_moderator_role()) unset ($links['edit']) ;
ok, so what is the role on this line
$bbp_roles['bbp_tutor'] = array(
and what is the code you have added in the code above?
Yes. It works beautifully! 🙂
I just found out something when I thought the issue is solved. The code works well with native bbpress role, but not work with new role created. I have a new role “prime_moderator” created using your plugin, but the code return error when I apply this new role to the codes. Any suggestions?
Regards.
sorry, try this
add_filter ('bbp_reply_admin_links', 'rew_remove_edit') ;
add_filter ('bbp_topic_admin_links', 'rew_remove_edit') ;
function rew_remove_edit ($links) {
$user_id = bbp_get_current_user_id() ;
$user_role = bbp_get_user_role( $user_id );
if ($user_role == bbp_get_keymaster_role()) unset ($links['edit']) ;
if ($user_role == bbp_get_moderator_role()) unset ($links['edit']) ;
if ($user_role == bbp_get_participant_role()) unset ($links['edit']) ;
if ($user_role == bbp_get_spectator_role()) unset ($links['edit']) ;
if ($user_role == bbp_get_blocked_role()) unset ($links['edit']) ;
return $links ;
}