So it calls:
private function section_latestuser() {
// Grab the latest registered user on the site
return $this->tag_replace( $this->parent->option["title_text_latestuser"] );
}
Which in turn calls:
function get_latestuser( $html ) {
$latest_user = get_users(
array(
'number' => 1,
'fields' => array("user_login", "ID", "display_name"),
'orderby' => "registered",
'order' => "DESC"
)
);
$latest_user = reset( $latest_user );
// Default display is the full name
$name = $latest_user->display_name;
if( $this->parent->option['user_display_format'] == "display_as_username" ) {
$name = $latest_user->user_login;
}
if( $html == true ) {
return "<a href=\"" . bbp_get_user_profile_url( $latest_user->ID ) . "\">" . $name . "</a>";
} else {
return $name;
}
}
I think, if “WP Approve User” is installed then we need to somehow modify the array returned to only include those where the are approved (as per my previous email).
Some… but not all… users are reporting that they are logged into the forum but the site is not showing that they are online
Offline
Topics: 136
Replies: 15303
I’ve tried to repro the issue but it’s not occurring for everyone. We recently upgraded the bbpress to the latest and still working through some oddities.
Hey @sbask, I see that you use my GD bbPress Toolbox Pro, and the view it creates. I have not noticed that it has the issue you describe, but I will check it out. It would be beneficial if you can open the topic in the official support forum, and share more details about the problem so we can debug it.
Also, you are using a fairly outdated version (5.6) that might be having issues with bbPress 2.6, while the latest one is 6.3. bbPress 2.6 has made changes to the way it handles subscriptions, and old GD bbPress Toolbox Pro most likely was still using the old subscriptions method.
ok, no idea what is causing that
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
Hi!
And thank´s for great plugin!
I have tried to change my forum page to be my site´s homepage using shortcode [bbp-topic-index]. I can make my forum index come up in a box in my homepage, but it is missing all the extra´s in the forum pages (ie. latest posts, latest topics, etc.). Is there a way to really set a forum page to be homepage of my site?
I have the newest versions of WP and bbPress, and I´m running on newest version of Customizr theme.
My homepage is http://www.maltaasta.fi (a Finnish homebrewing site) and I would like the visitors to get straight to my forum in http://www.maltaasta.fi/keskustelupalsta
Hi,
Looks like, I have been able to pin-point error which was related to the “Fastest Cache” Plugin. It was interfering with the login.
Is there any safe cache plugin which can be used along with BBPRESS. If there are any settings specifically to prevent login/logout issues, then please let me know.
Please guide on Cached Plugins interfering with the bbpress login and how to avoid it.
regards
BS
you are right ! Looks like it change on 2.6.
It now does it on register
so to change back to how it used to work
in
dashboard>settings>forums untick Automatically give registered visitors…etc
Then 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
add_action('wp_login', 'rew_add_role');
function 'rew_add_role' () {
$user_id = $user->ID ;
$role = bbp_get_user_role( $user_id );
if (empty($role)) {
bbp_set_user_role( $user_id, 'bbp_participant' );
}
}
This code is untested, but should work, if not come back
I have rolled back style pack to v4.5 and issue remains.
I also created a test forum on another site I own and the style pack works as it should do 😉
It just does not work for my forum and alas I do not know why ?
forum
ok, so can you give me a hierarchy that does not work eg
category x has 2 sub forums y and z and z does not show
ie something I can build on my test site
I was curious if anyone has or knows of any function or shortcode that I can use that pulls the first topic from a specific forum and shows it on a page?
@robin-w , does your bbpress shortcode plugin do this?
I basically want to create a section on my homepage called “Announcements” and have the latest two topics from my forums with the Title and an excerpt from the post body included.
I’m not sure why you are not working – it works both on this forum and on my test site.
I disabled the theme and plugins. They are all out of the question.
That’s what it seemed to me, they are all out of the question.
In addition, here I did the test, the error also exists. The error is therefore linked to the bbpress plugin.
I just tested, it’s the same, knowing that with version 2.5 I never had this problem.
Well, we’ll stop here, I’ve bothered you enough, I’ll go back to version 2.5 which runs without any problem, thank you again.
when you restore it, it then becomes a draft – so you need to go into the topic in the tableau de bord and approve it – can you test this please
re,
I have just tested the manipulation,
whether we go through WordPress as you told me or try to restore directly from the topic it doesn’t work.
I redid the test on a clone of the site and the problem recurred.
both the top and bottom login links are the default login, they were there to start with
which probably suggests they are theme related.
bbpress just passes details to WordPress login, and if the theme is also using WordPress login, it may well be that on a single page you have 3 things sending info to WordPress authorisation, so any one might send an ‘after login’ redirect, and it might be different dependant on which is completed.
If you also have membership plugins active, then these might also catch a login and do a redirect.
computers are consistent (often annoying so!) so it might be either different logins, or other changes you are making to membership that are affecting.
I’d start by stripping back and working out what is doing what.
so
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see what changes.
Plugins
If that doesn’t work, also deactivate all plugins, and see what the login at the top and bottom do. Then add bbpress and see what changes.
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
ok, I can only suggest you look at possible conflicts
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
2.5 should upgrade quite easily, so either your upgrade has failed, or you have another issue.
new versions of bbpress are unlikely to help, as tens of thousands of bbpress users are already at 2.6.6 without problem.
I can only suggest that you create a copy of your site that you can test in and then
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.
You can use the ‘troubleshooting’ features of this plugin to let you test without affecting needing to deactivate lots of plugins
Health Check & Troubleshooting
I’m creating my own custom forum view using the register_views code. The function works but for some reason the url isn’t working. What am I missing?
function my_custom_register_views() {
// Latest Replies Custom View
bbp_register_view(
'latest-replies',
__( 'Latest Replies', 'my_custom_register_views' ),
apply_filters( 'bbp_register_view_latest_replies', array(
'orderby' => 'meta_value',
'order' => 'DESC',
'meta_key' => '_bbp_last_active_time',
'post_status' => array(bbp_get_public_status_id(), bbp_get_closed_status_id()),
'post_type' => bbp_get_topic_post_type(),
'show_stickies' => false
)
) );
}
Yes, but look below:
PREMIUM PERFORMANCE OPTIMIZATION The free version is enough to speed up your site but in the premium version there are extra features such as Mobile Cache, Widget Cache …
Also seen the difference by Page speed test my website – between desktop(highest mark) and mobile(middle bottom) pages.
Of course, I can to convince my client to buy this premium, but first I would like to understand: is there a more simpler plugin for mobile cache (in this case a lot of redundant unnecessary features). What else can to see?
the plugin says it does
WP Fastest Cache
Features :
…
8. Enable/Disable cache option for mobile devices
Thank you for your time.
It seems that making copy-paste from Libre Office to Bbpress editor brings the format data with the text.
I tested and the result in the editor is:
<b>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt</b>
I wonder, why the editor can not handle the format data in the paste text.
But if you do the text formatting in the editor with the text you are typing, then there is no problem.
It only happens to my account as keymaster. I tested with another as participant and it logs in just fine.
suspect this is what you need – untested !!
$user_id = bbp_get_displayed_user_id() ;
$last_login = get_user_meta($user_id, 'last_login', true);
so if you go down the route you have, you’d add a second shortcode
function rew_lastlogin () {
$user_id = bbp_get_displayed_user_id() ;
$last_login = get_user_meta($user_id, 'last_login', true);
$the_login_date = date_i18n(get_option('date_format'), $last_login);
return $the_login_date;
}
add_shortcode('bbp_lastlogin','rew_lastlogin');
and then use
<?php echo ‘Last seen: ‘. do_shortcode(‘[bbp_lastlogin]’) .’ ago’; ?>
No, that didn’t work either. I’m configuring here on my Computer and we tested it with my husband’s phone, that had no contact to the site before.
I can also test it by moving the “Align Default Max Width” adjuster in the General Options Menu of the Theme’s customizer.