Thanks again @robin-w. Yes, I saw that one. That does work as long as the text that’s being replaced is ‘Howdy’. but that’s language dependent. Down here, if your site is configured for Australia, it’s ‘G’day’ and in other countries I imagine it’s something different again (and that code works as long as you specify the exact string that you need to replace).
I was actually wanting to get rid of that text altogether, in a language-independent way, so I was hoping that it had a ‘name’, like ‘wp-user-greeting’ or something that you could just do a $wp_adminbar->remove_node on, but it sounds like this is not the case. Is the format of the username/avitar on the admin-bar on this site, where there’s no ‘prefix’ at all, really hard coded (rather than managed through something like a function)?
I am making progress with the code (to identify a user as anonymous before they log in) from your previous response, so thanks again for that, but I’m modifying files that are bound to be replaced with the next WordPress/bbPress update. There must surely be some ‘version independent’ way of doing this…
I know i could put these changes inside the style.css simple custom css will do the job and load another css file on top for these changes which could be applicable for my use case.
But I wanna have the files all in the child-theme in case someone else wants to make design adjustments that their visible and accessible on first sight.
Access to a FTP-Server is given and for adjustments on-top of WordPress and their is a Theme-Editor already embedded into WordPress so that seems to be a bit counter-intuitive. As it might confuse admins & content-editors later on to where they input their changes.
CSS is simple to learn and as this is gonna be pure CSS not LESS/SASS i figure it’s best if I had it in a seperate file to view for people.
Haven’t tested but googled and found this
add_filter( 'admin_bar_menu', 'replace_wordpress_howdy', 25 );
function replace_wordpress_howdy( $wp_admin_bar ) {
$my_account = $wp_admin_bar->get_node('my-account');
$newtext = str_replace( 'Howdy,', 'Welcome,', $my_account->title );
$wp_admin_bar->add_node( array(
'id' => 'my-account',
'title' => $newtext,
) );
}
Put this in your child theme’s function file – or use
Code Snippets
if that second part is all you are after, then add it to the custom css bit of your theme, or use
Simple Custom CSS
the bbpress theme that this site uses is here
https://meta.trac.wordpress.org/browser/sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base
the following file holds the code
https://meta.trac.wordpress.org/browser/sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/header-subnav.php
but you will also need to pull through some css from the theme, and JavaScript to do the drop downs
then tie all this back to the right place in your theme.
It’s quite doable, but well beyond free help
I have what I hope is a simple question. I would like to create a tool bar (wp_admin_bar) that is effectively just like the one on this website: it sits under the website header and includes, in particular, the Anonymous ‘profile’ on the right-hand side before a user is logged in.
I can create an Admin Bar that shows a profile when a user has logged in, but I cannot work out how to include the Anonymous ‘profile’, with its drop-down ‘Register/Lost Password/Log In’ menu.
If there are explicit instructions somewhere on how to achieve this apparently common arrangement, just point me there. If that includes how to add the ‘Create New Topic’ option when a user is logged in, that’d be even better.
I am working with WordPress 5.4.1 and bbPress 2.6.4.
Hey so I’m trying to enqueue custom CSS for bbPress v2.6.4 on the WP 5.4.1 clan website running a WP Twenty Twenty-child theme.
This is what my functions.php currently looks like
<?php
/**
* Child theme stylesheet einbinden in Abhängigkeit vom Original-Stylesheet
*/
add_action( 'wp_enqueue_scripts', 'child_theme_styles' );
function child_theme_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-theme-css', get_stylesheet_directory_uri() .'/style.css' , array('parent-style'));
wp_enqueue_style( 'child-theme-css', get_stylesheet_directory_uri() .'/css/bbpress.css', array());
}
?>
And this is how my bbpress.css looks like.
#bbp-forum-info,
#bbp-forum-topic-count,
#bbp-forum-reply-count,
#bbp-forum-freshness {
color: #232323;
}
#bbpress-forums {
background: transparent;
clear: both;
margin-bottom: 20px;
overflow: hidden;
font-size: 1.75rem;
color: #232323;
}
The changes I applied in the bbpress.css won’t update the bbpress CSS on the above mentioned site. So their must be something wrong with my functions.php but I can’t yet put my finger on it how to load it properly as I’m pretty new when it comes to WordPress. I wanna append these changes globally to all parts of bbPress forum.
Can someone tell me to if and what i need to specify inside the arrray() call for the bbpress.css to load properly? Or hint me towards what’s wrong here.
This plugin will let you style it to match your theme, and do much else besides
bbp style pack
Hi
I’m trying to move a forum from one site to another.
I’m using the WordPress export/import function
I can see the structure of the imported forums including topic numbers and replies but there is no information in the topics. The error says ‘Oh, bother! No topics were found here.’
I used the Cimy User Manager to import all the users and that worked fine.
I’ve tried resetting permalinks but still nothing shows in the topics.
Have I done something wrong?
Put this in your child theme’s function file – or use
Code Snippets
//This function changes the text wherever it is quoted
function change_translate_text( $translated_text ) {
if ( $translated_text == 'old text' ) {
$translated_text = 'new text';
}
return $translated_text;
}
add_filter( 'gettext', 'change_translate_text', 20 );
and change the old text and new text to suit.
ok, let’s try adding this
add_filter( 'bbp_verify_nonce_request_url', 'my_bbp_verify_nonce_request_url', 999, 1 );
function my_bbp_verify_nonce_request_url( $requested_url )
{
return 'http://localhost:8888' . $_SERVER['REQUEST_URI'];
}
Put this in your child theme’s function file – or use
Code Snippets
This was occurring before Members was installed.
I only loaded Members to see further inside users, roles and capabilities as native WordPress offers little capability of diagnosing such issues.
Happy to give you access.
How do I pm you?
No.
I’m on WordPress 5.4.1
Hi there, I’m experiencing the following error after installing bbPress on my local PC (the site is not public) and setting up a test forum:
“WordPress database error Incorrect DATETIME value: ‘0’ for query SELECT p.ID FROM wp_posts AS p WHERE p.post_date < ‘0’ AND p.post_type = ‘forum’ AND ( p.post_status = ‘publish’ OR p.post_status = ‘private’ OR p.post_status = ‘hidden’ ) ORDER BY p.post_date DESC LIMIT 1 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/twentytwenty/singular.php’), get_header, locate_template, load_template, require_once(‘/themes/twentytwenty/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, adjacent_posts_rel_link_wp_head, adjacent_posts_rel_link, get_adjacent_post_rel_link, get_adjacent_post”
My setup:
A new WordPress 5.4 install with no other self-installed plugins
Theme: Twenty Twenty
Windows 10
PHP 7.4.4
MySQL 8.0.19
I created a forum called ‘Test Forum1’ & this appears in the WordPress Admin. When I click the permalink to view the forum I see the above error on a blank white screen.
Any advice much appreciated – thanks.
Hi,
I use WordPress version 5.4.1 and bbpress version 2.6.4 on my website http://www.afvallenkunjeleren.nl with the theme woostify.
I have something strange: I have downloaded the .mo file (named it bbpress-nl_NL.mo, and the .po file is bbpress-nl_NL.po) from the official bbpress site and uploaded it through file manager in my forum.
But nothing will be translated. When I look in the plugin Loco translate, that I use there is nothing translated.
Can anyone help me please?
Thank you very much in advance!
With warm regards,
Klaziena Waerts
Hello there,
I am stucked with this issue since some days : i am using the default bbpress connection widget (bpress version : 2.6.4) , but i am not satisfied by it behaviors such as redirect to wordpress admin login, the fact that the link on registration mail, bring the user again to wordpress back end, and also that email sender adress is the wordpress email (not mine !!) .. i had tried to change this last issue with this code in my functions.php :
add_filter( 'wp_mail_from', 'your_email' );
function your_email( $original_email_address )
{
return 'myemail@domain.com';
}
add_filter( 'wp_mail_from_name', 'custom_wp_mail_from_name' );
function custom_wp_mail_from_name( $original_email_from )
{
return 'My Forum Name';
}
But instead i just received a “mail delivery failed”
I have tried other plugins such as “weaver” or “bbPress login register link..” but still not found the “good one” (or surely didn’t know how to optimize it)
Did someone know how to solve this problem ??
Hi,
I added some new user fields to the WordPress admin page, but I would like them not to be visible on the bbPress profile page.
How can this be solved?
If you want to add styling and features try
bbp style pack
Hello,
I have completely customized the bbPress profile page and would like to display e.g. next to the name an icon (or whatever) if that user is also a WordPress author.
Does anyone know a solution?
I’m trying to convert my SMF database, but nothing is being imported (runs through each step, but nothing to import).
I’m using SMF 2.0.17, the most recent versions of bbPress and WordPress.
Can anyone advise how to pinpoint the problem? There were no errors listed.
Put this in your child theme’s function file – or use
Code Snippets
or it is available as an option in
bbp style pack
once activated go to
dashboard>settings>bbp style pack>Topic/Reply Form
Ah – I did not have that check box marked for comments needing approval. BUT I believe the problem I’ve been having is due to the Comment Moderation if it contains links! We use links a lot so this is likely the culprit.
Thanks joyridek9! After the recent bbpress and wordpress update I started experiencing this problem. Looks like some settings were reset. Mine were set to moderate if it contained two links or more. Set this number to 0 and poof, problem solved.
(It should be noted that I have a protected forum hidden with bbgroups. If you have a public facing forum, setting this to zero could increase spam posts so tread carefully.)
Shortcodes
Codex Home → bbPress Features → Shortcodes
Since Version 2.0 bbPress support so called Shortcodes. They have been introduced for creating macros to be used in the layout of your forum content on WordPress pages. To use any of the shortcodes simply insert the desired shortcode into any WordPress page.
To get the required numerical ID for $forum_id, $topic_id, $reply_id and $tag_id you will need to visit your /wp-admin/ section and either by editing the post or by hovering your mouse over the applicable forum/topic/reply/tag post type you will see a numeric ID for that post eg. /wp-admin/post.php?post=47
Forums
[bbp-forum-index] – This will display your entire forum index.
[bbp-forum-form] – Display the ‘New Forum’ form.
[bbp-single-forum id=$forum_id] – Display a single forums topics. eg. [bbp-single-forum id=32]
Topics
[bbp-topic-index] – Display the most recent 15 topics across all your forums with pagination.
[bbp-topic-form] – Display the ‘New Topic’ form where you can choose from a drop down menu the forum that this topic is to be associated with.
[bbp-topic-form forum_id=$forum_id] – Display the ‘New Topic Form’ for a specific forum ID.
[bbp-single-topic id=$topic_id] – Display a single topic. eg. [bbp-single-topic id=4096]
Replies
[bbp-reply-form] – Display the ‘New Reply’ form.
[bbp-single-reply id=$reply_id] – Display a single reply eg. [bbp-single-reply id=32768]
Topic Tags
[bbp-topic-tags] – Display a tag cloud of all topic tags.
[bbp-single-tag id=$tag_id] – Display a list of all topics associated with a specific tag. eg. [bbp-single-tag id=64]
Views
[bbp-single-view] – Single view – Display topics associated with a specific view. Current included ‘views’ with bbPress are “popular” [bbp-single-view id=’popular’] and “No Replies” [bbp-single-view id=’no-replies’]
Search
[bbp-search] – Display the search input form.
[bbp-search-form] – Display the search form template.
Account
[bbp-login] – Display the login screen.
[bbp-register] – Display the register screen.
[bbp-lost-pass] – Display the lost password screen.
Please i need your help : No one can sudgest me a good plugin that avoid any wordpress mention (including wordpress email, redirection after registration or set password default wordpress template) ?