EITHER :
function rew_remove_private_title($title) {
return '%s';
}
add_filter('private_title_format', 'rew_remove_private_title');
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
OR
bbp style pack
once activated go to
dashboard>settings>bbp style pack>Forum Display and select item 4
bbpress works on bbpress roles – blocked, spectator, participant, moderator, keymaster
see
bbPress User Roles and Capabilities
do you have an expectation for release on 5.2.8?
today or tomorrow ! – known minor issue – just need to write 6 lines of code, test and release !
php 8.1 is a lot more fussy
try this (untested but should work)
function private_content_redirect_to_login() {
global $wp_query,$wpdb;
if (is_404()) {
$host = $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
$path = dirname($_SERVER['REQUEST_URI']);
$forums = "forum";
$location = "https://direitoshumanosangola.org/not-logged-in/";
if(strpos( $path, $forums ) !== false){
wp_safe_redirect($location);
exit;
}
}
}
Hi there.
I’m trying to install bbPress in a WP new enviroment.
Plugin is activated as usual, but when I create a new forum, topic or debate, all front-end pages associated are blank.
I have tried to replicate the problem in two different servers and it persists.
### wp-core ###
version: 6.1.1
site_language: es_ES
user_language: es_ES
timezone: +00:00
permalink: /%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: open
environment_type: production
user_count: 1
dotorg_communication: true
### wp-paths-sizes ###
wordpress_path: /usr/home/almazendesign.com/web/testing
wordpress_size: 849,97 MB (891255109 bytes)
uploads_path: /usr/home/almazendesign.com/web/testing/wp-content/uploads
uploads_size: 110,55 MB (115924400 bytes)
themes_path: /usr/home/almazendesign.com/web/testing/wp-content/themes
themes_size: 2,51 MB (2629926 bytes)
plugins_path: /usr/home/almazendesign.com/web/testing/wp-content/plugins
plugins_size: 4,73 MB (4962753 bytes)
database_size: 2,13 MB (2228224 bytes)
total_size: 969,89 MB (1017000412 bytes)
### wp-active-theme ###
name: Twenty Twenty-Three (twentytwentythree)
version: 1.0
author: el equipo de WordPress
author_website: https://es.wordpress.org
parent_theme: none
theme_features: core-block-patterns, post-thumbnails, responsive-embeds, editor-styles, html5, automatic-feed-links, block-templates, widgets-block-editor
theme_path: /usr/home/almazendesign.com/web/testing/wp-content/themes/twentytwentythree
auto_update: Desactivado
### wp-plugins-active (2) ###
bbPress: version: 2.6.9, author: The bbPress Contributors, Actualizaciones automáticas desactivadas
WP Reset: version: 1.97, author: WebFactory Ltd, Actualizaciones automáticas desactivadas
### wp-plugins-inactive (4) ###
BJA VLE Virtual Learning Enviroment - Bjäland: version: 1.0.0, author: Bjäland, Actualizaciones automáticas desactivadas
My trades - WordPress Heroes: version: 1.0.0, author: WordPress Heroes - Félix Martínez, Actualizaciones automáticas desactivadas
WPH Base Plugin - Bjäland: version: 1.0.0, author: Bjäland - Félix Martínez, Actualizaciones automáticas desactivadas
WPH Chat: version: 1.0.0, author: WordPress Heroes - Félix Martínez, Actualizaciones automáticas desactivadas
### wp-media ###
image_editor: WP_Image_Editor_GD
imagick_module_version: 1691
imagemagick_version: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
imagick_version: @PACKAGE_VERSION@
file_uploads: File uploads is turned off
post_max_size: 35M
upload_max_filesize: 35M
max_effective_size: 35 MB
max_file_uploads: 20
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: unknown
### wp-server ###
server_architecture: Linux 5.10.0-19-amd64 x86_64
httpd_software: Apache
php_version: 8.2.1 64bit
php_sapi: fpm-fcgi
max_input_variables: 10000
time_limit: 30
memory_limit: 192M
max_input_time: 60
upload_max_filesize: 35M
php_post_max_size: 35M
curl_version: 7.74.0 OpenSSL/1.1.1n
suhosin: false
imagick_availability: true
pretty_permalinks: true
htaccess_extra_rules: false
### wp-database ###
extension: mysqli
server_version: 10.5.17-MariaDB-1:10.5.17+maria~deb11-log
client_version: mysqlnd 8.2.1
max_allowed_packet: 134217728
max_connections: 500
### wp-constants ###
WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /usr/home/almazendesign.com/web/testing/wp-content
WP_PLUGIN_DIR: /usr/home/almazendesign.com/web/testing/wp-content/plugins
WP_MEMORY_LIMIT: 192M
WP_MAX_MEMORY_LIMIT: 192M
WP_DEBUG: true
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: Sin definir
DB_CHARSET: utf8mb4
DB_COLLATE: undefined
### wp-filesystem ###
wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
Thanks in advance.
untersted , but should be
echo '<a " href="' . esc_url( bbp_get_user_profile_url( $user) ).'topics/' . '">' . 'Topics' . '</a>';
Looking for a line of code or a post meta field name to retrieve a link for the current user’s topics page. Is this something you can help me with?
so if you remove the code that you had and just use the plugin, does this fix?
Hi Robin, after spent some time trying to understand the codes, I tried and finally got the results that I wanted.
For loop-topics.php,
I change:
<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-reply-count"><?php esc_html_e( 'Replies', 'bbpress' ); ?></li>
and for loop-single-topic.php,
I change:
<li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? bbp_topic_reply_count() : bbp_topic_post_count(); ?></li>
to:
<li class="bbp-topic-reply-count"><?php bbp_topic_reply_count(); ?></li>
Since I don’t have any knowledge about PHP codes, I’m not sure what I did is correct or not, anyway at least work on my browser.
Regards
bbp style pack
lets you style your forums
you can also use the translations tab of this to change Posts to Replies
there is also
bbPress Styling Crib
which contains styling guides
bbp style pack
lets you style your forums
you can also use the translations tab of this to change Posts to Replies
there is also
bbPress Styling Crib
which contains styling guides
Hey 👋
Thank you @Robin-W,
In the meantime I got to know the WP-Cli-Cli package specific to WordPress, which does not work either (I opened an issue visible here).
To locate the context, I use WooCommerce Subscription plugin and I needed that when a subscription is canceled, access to the bbPress forum is blocked.
I leave here the snippet that I made and that does the job:
add_action('woocommerce_subscription_status_cancelled', 'block_forum_user_after_subscription_cancellation_s', 10, 1);
function block_forum_user_after_subscription_cancellation_s($subscription)
{
$user_id = $subscription->get_user_id();
$new_role = 'bbp_blocked';
bbp_set_user_role($user_id, $new_role);
}
(I also have a webhook version with the WordPress Rest API for remote use, if necessary contact me)
bbp_set_user_role( $user_id, $new_role )
Hi there 👋
Thanks to the details of @stanis I am understanding why when I use WP-Cli with the line:
wp user set-role <User id> bbp_blocked
It blows up the existing role of the User on WordPress (in my case it was “customer” which becomes ” – no role for this site -“)
But it’s still unclear for me. How to modify the role of an User on BBPPRESS without touching its WordPress role?
Because the opposite is also true, if I do :
wp user set-role <User ID> customer
This time it is the role of the User on the forum that jumps and becomes “-No Role for these forums-”
PS: I also tried
wp user update <User ID> --role=customer --bbp-forums-role=bbp_blocked
And that doesn’t do the job too 🙁
Thanks for your lights!
Warm regards,
Ludovic
Hi Robin,
I looked at the forum screens and there is a button for adding a forum to a digest. I clicked it and it changed to give me the option to remove it from the digest.
A second link is there for editing digest settings, however when I click it, I get:
Page Not Found
The page you were looking for could not be found. It might have been removed, renamed, or did not exist in the first place.
The link is https://somd-scalemodelers.club/members/timh/edit/#bbp-digest-check-row
And if I understand correctly, that’s a function in the bbpress digest plugin php code.
Any ideas where I should look next?
Regards,
Tim
Try this
add_filter( 'get_the_archive_title', 'to_archive_title_remove_prefix' );
function to_archive_title_remove_prefix( $title ) {
if ( is_post_type_archive() ) {
$title = post_type_archive_title( '', false );
}
return $title;
}
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
1. only replies
2. bespoke code needed
2nd – works in my browser for your site – can you close and reopen and check again, or post a new image showing what is still wrong, and links to an exact example.
3rd – I don’t know what ‘no output results’ means ??? again it seems to have gone from your site in my browser.
I did see that I had not taken out the ‘author/posts’ from the footer – you can add this
.forums.bbp-replies li.bbp-footer {
display: none;
}
First you could try Robin’s bbPress plugin: https://wordpress.org/plugins/bbp-profile-information/
Same with BuddyPress integration: https://wordpress.org/plugins/bbp-buddypress-profile-information/
If you’re not using BuddyPress though I would highly recommend looking into it. You can enable “Extended Profile Fields” and there’s also a plugin for custom field types: https://wordpress.org/plugins/bp-xprofile-custom-field-types/
As far as the outbound links themselves go you might need to code/style them yourself unless your theme automatically converts links.
my code above corrected works, but yes do come back and let us know if you find the problem or need further help
Yes I did I noticed that before I tried the code. I will play around and see if I can find the problem, if the get_page_by_title()
works as I would like then it must be an error somewhere else.
Thank you for your help!
put this in the custom css of you theme
div.bbp-template-notice.info {
display: none;
}
.bbp-pagination-count {
display: none;
}
.forums.bbp-replies li.bbp-header {
display: none;
}
ok, based on that I have no idea what you mean by embedding.
bbpress does not have a ‘login page’ it has shortcodes and widgets.
the template used by bbpress for login is
bbpress\templates\default\bbpress\form-user-login.php
to customise :
find
wp-content/plugins/bbpress/templates/default/bbpress/form-user-login.php
transfer this to your pc and edit as desired
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/form-user-login.php
bbPress will now use this template instead of the original