ytParticipant
Thank and that very kind of you, Mr Robin.
In addition, as the 2025 WordPress block theme has other problems with your “bbp style pack” plugin, if it is possible for you to check and fix them.
These are:
1- When the bbp style pack plugin is active and you go to the theme editor section and click on Show all templates, only one template is displayed, not all templates that can be selected. The problem is solved by disabling the plugin.
2- In the Topic/Reply Form plugin tab, in section 18. Limit Topic Tags to a list, when this option is activated and you refresh the site, at the same time and a little later it causes the editor section to go to the bottom right and the forum template to be broken.
3- In the Topic/Reply Form plugin tab, in section 10. Topic Posting Rules, when the visual editor is activated, HTML codes are also inserted into the text, while this should not be the case.
4- When the sidebar is activated for the forum through the bbp style pack plugin block or by ourselves, this sidebar is only displayed on the first page of the forum or the forum index, but is not displayed on the pages of subforums and topics, while like the classic template, it should be displayed on all sidebar pages.
Thanks in advance.
After some research, I have found that the newer FSE themes (such as twenty 25)have an issue where shortcodes will not work in footers for what are called hybrid templates.
I am working on a solution, hopefully with a resolution in then next couple of days
Hey guys,
How to replace the permalink structure from:
{domain}{forum-slug}{usernicename}
To:
{domain}{forum-slug}{First_name-Last_name}
Here is my code snippet hat change the structure of Permalink, but I am getting 404
function custom_bbp_get_user_profile_url( $url, $user_id, $user_nicename ) {
// Get the user data
$user_info = get_userdata( $user_id );
// Check if user info is available
if ( $user_info ) {
// Get first name and last name
$first_name = isset( $user_info->first_name ) ? $user_info->first_name : '';
$last_name = isset( $user_info->last_name ) ? $user_info->last_name : '';
// Create custom user_nicename as "First Last"
$custom_nicename = trim( $first_name . ' ' . $last_name );
// Return the URL with updated user_nicename
return str_replace( $user_nicename, sanitize_title($custom_nicename), $url );
}
// If user info is not available, return the original URL
return $url;
}
// Hook the function into the filter
add_filter( 'bbp_get_user_profile_url', 'custom_bbp_get_user_profile_url', 10, 3 );
ytParticipant
The footer of the forum is the same area of the site footer.
I’ve had just entered this code once and it displays diferently.
so is the footer of the forum a different area than the site footer? or have you just entered this code once and it displays diferently?
ytParticipant
I am a beginner in wordpress and bbPress so less familiar with PHP code.
If it’s possible, send here the required code to paste in the “WPCode plugin” to generate the direct link to user’s profile in bbPress.
Of course, I’m using your plugin but the shortcut [bsp-profile label=”Edit My Profile” edit=”true”] works in the site’s footer but doesn’t work in the forum footer.
I understand what you want to do, it requires code which is in my plugin.
If you don’t want to use my plugin, the code is in the shortcodes.php file in the plugin, feel free to use it.
Install
bbp style pack
once activated go to
dashboard>settings>bbp style pack>shortcodes
and look at ‘Display profile link’ for how to use the shortcode.
Then simply add the shortcode using a ‘shortcode’ block wherever you want it
add_filter( 'gettext', 'rew_translations', 20 , 3 );
function rew_translations( $translated, $text, $domain ) {
if ($domain != 'bbpress' return $translated;
if ( $translated == 'This forum is empty.' ) {
$translated = 'new text';
}
return $translated;
}
hello how can i add link on text ??
if ( $translated_text == 'This forum is empty.' ) {
$translated_text = 'new text';
}
hello @robin-w, thanks for reply.
i am fresher in bbpress, kindly suggest me how can i do this ? any function or shortcode ?
anything is possible with code, but I know of no current plugin that does this.
https://stackoverflow.com/questions/59336951/message-trying-to-access-array-offset-on-value-of-type-null
The parser php file says the code is from
This is a compressed copy of NBBC. Do not edit!
Copyright (c) 2008-9, the Phantom Inker. All rights reserved.
Portions Copyright (c) 2004-2008 AddedBytes.com
I would hesitate to correct it, but you could alter lines around 1289 to have a fix as in above link.
But I’d suggest you go to a version of php before 7.4 to do the import, and then after import go back to a supported php version
Yes, I’ve tried the other shortcodes as well and the same issue happens with all of them
ok, thanks.
I cannot see why it would do this, unless it thinks it is a bbpress page and should add the sidebar.
Is it doing this for any bbpress shortcode – maybe as a test try some others and then come back
so which of the methods in this link item 3 are you using?
Step by step guide to setting up a bbPress forum – Part 1
Hi there,
Was there ever a fix found for this as I still have the depreciation warnings. I have tried both these plugins and neither work.
Deprecated: Creation of dynamic property BBP_Forums_Component::$members is deprecated in /website/wp-content/plugins/bbpress/includes/extend/buddypress/loader.php on line 149
Deprecated: Creation of dynamic property BBP_Forums_Component::$activity is deprecated in /website/wp-content/plugins/bbpress/includes/extend/buddypress/loader.php on line 153
Thank you in advance
You can see an example page now here:
http://bit.ly/4eG3RLY
The shortcode also uses the page title (where the shortcode is pasted) instead of the topic title.
Is it because of incompatibility with the theme?
Thanks for replying and yes, I am using the topic ID and it’s showing the correct topic.
The issue is that the shortcode is displaying the forum sidebar in addition to the topic.
You can see here a screenshot of the source code https://ibb.co/2PS9qW1
ok, not totally sure I understand.
so you are putting the actual topic_id in ?
eg
[bbp-single-topic id=265]
and not sure I understand what ‘it pulls the bbpress forum sidebar widget ‘ means – do you have a link to a live example?
I want to show a single topic on my homepage, on top of the page.
When I use the shortcode [bbp-single-topic id=$topic_id]
it pulls the bbpress forum sidebar widget as well. I am not sure if it’s incompatibility with the theme or normal behavior.
Is there PHP code I could use instead to pull a single topic? Maybe I could then use that to create a custom template for the homepage.
Thanks in advance
ok, so that error tells you it is a problem with the plugin gd-topic-polls
'call to undefined method xxxx in ...public_html/wp-content/plugins/gd-topic-polls'
That plugin is not written by bbpress and
GD Topic Polls: plugin for WordPress and bbPress Forums
says that the free version it is no longer being maintained.
There is a paid version at
https://www.dev4press.com/plugins/gd-topic-polls/
and if you have bought that version, then you need to raise a support ticket with them.
If you have the free version, then if you want to continue to use this plugin, you would need to buy the paid version
Hi there,
Test site latest updates and twenty four theme.
As explain in title I can’t display forum with 2024 and other blocks themes.
It’s ok to display forum list with shortcode but not forums.
Thanks four your help.
Hi Robin, thank you for replying quickly. Is there a shortcode (or even a php snippet) for adding a forum’s subscribe button to a template?