I tried out this plugin a bit ago locally and seemed to work, my email did go into the spam/trash folder; but that could have been because I was testing locally.
Check your trash/spam folder and see if the mention replies are ending up in there.
The below should update the “Topic” page and the main “Forum” page.
Once you add the code, you’ll have to add a reply to a topic for it to update. Or run the forum repair Robin W mentioned above.
Add the below code to your functions.php
file of your theme (preferably child theme), or use the code snippet plugin.
if(!function_exists('ticket3297_bbpress_update_latest_activity')){
function ticket3297_bbpress_update_latest_activity( $reply_id, $topic_id, $forum_id ){
$new_time = get_post_field( 'post_date', $reply_id );
if ( ! empty( $new_time ) ) {
update_post_meta( $forum_id, '_bbp_last_active_time', $new_time );
}
update_post_meta( $forum_id, '_bbp_last_active_id', $reply_id);
update_post_meta( $forum_id, '_bbp_last_reply_id', $reply_id );
$forum_obj = get_post( $forum_id );
if( $forum_obj && $forum_obj->post_parent !== 0 && bbp_is_forum_category( $forum_obj->post_parent ) ){
update_post_meta( $forum_obj->post_parent, '_bbp_last_active_id', $reply_id );
update_post_meta( $forum_obj->post_parent, '_bbp_last_reply_id', $reply_id );
if ( ! empty( $new_time ) ) {
update_post_meta( $forum_obj->post_parent, '_bbp_last_active_time', $new_time );
}
}
}
add_action( 'bbp_new_reply', 'ticket3297_bbpress_update_latest_activity',10,3 );
}
if(!function_exists('ticket3297_bbpress_delete_update_latest_activity')){
function ticket3297_bbpress_delete_update_latest_activity(){
$reply_id = bbp_forum_query_last_reply_id();
ticket3297_bbpress_update_latest_activity( $reply_id, bbp_get_reply_topic_id( $reply_id ), bbp_get_reply_forum_id( $reply_id ) );
}
add_action('bbp_deleted_reply','ticket3297_bbpress_delete_update_latest_activity');
add_action('bbp_trashed_reply','ticket3297_bbpress_delete_update_latest_activity');
}
That should run when replying, deleting, and trashing replies.
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, 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.
Then come back
Hmm!
I’m planning on having the Bot grant forum moderation over 1 topic after receiving X amount of GamiPress points from a User.
The context: it’s an author/writer forum and people might get interested in testing their own skills by submitting texts, that’s where having moderation power over this single topic would come in play; they would control whatever happens inside their “test-post”.
ok, I can only suggest that you revert to the standard tests
Themes
As a test switch to a default theme such as twentyfifteen, 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.
Then come back
Buongiorno,
ho un problema con il forum: alcuni utenti che appaiono iscritti non riescono a fare login utilizzando i dati da loro impostati, pur facendo molti tentativi.
Ecco le info sul mio sito:
Mi è stata installata la versione 5.3.2 di WordPress.
Da poco mi è stata installata la versione 2.6.4 di BBpress.
Il link al forum nel mio sito è questo: https://www.nuovicontesti.com/forum/forum/
Sto usando il tema Twenty Twenty di WordPress.
Grazie,
Federica
My php is 7.3.15. Latest stable.
@ajtruckle split works fine on my test sites for 2.5.x and 2.6.x, hence why I am suggesting site for database issue for your site.
Hi,
I seem to be experiencing this behaviour in 2.6.4. Not sure where to go from here…? I have a test site set up with only bbpress 2.6.4, theme Twenty Twenty v1.1, and an example forum exhibiting the problem, protected behind SeedProd’s Coming Soon plugin (though still get the problem if this is deactivated too). A number of other plugins from the live site are installed but deactivated. I would be delighted if an expert could take a look, and can provide login plus info on where to see the problem… First time you reply to the test reply, it bounces to the bottom; second time, it works… Odd.
Thanks for your time.
Neil
probably theme specific – try changing a theme as a test. Then contact theme provider
I’ve just been testing this on my sites and I can’t get it to fail. Are there any more details in the server error log, do you have any custom code or bbpress plugins installed?
Also does debugging show any additional info?
I am using the latest WordPress and BBPress as of 2/29/2020
I don’t know if this is intentional or a bug, but I am throwing it out there.
If you go to the WordPress dashboard, all Topics, and post a new topic with no forum, it will actually post but not show up anywhere. It won’t even show in topics.
If another user knows the URL of the topic post, he/she can reply. But, that reply won’t show up in replies in the dashboard.
If you attempt to delete it by going to the URL and clicking Trash, the browser will start processing it but after 45 seconds it says “This page is not working” but it does delete the post.
ok, it is site specific.
so you will need to look at disabling plugins and changing themes to establish where the issue is – I can’t help with how you do that in a live environment.
You should look at getting a test site
Hi
In the process of moving our old forum from SMF (which had some great features, but requires a second login which our users really dislike) to bbpress. It’s a private forum so I can’t post a link, but using latest WP version, Hestia Pro theme, Ultimate Member (and it’s bbpress plugin), bbpress Style Pack.
bbpress Style Pack makes the new forum look a lot more user friendly (many thanks Robin!), and also using it to offer the option of email notifications of new posts (which on our forum is essential – there may be no posts for days, then several all at once!)
Is there any documentation anywhere as to how the new post email notify system works? Couldn’t find any, but perhaps not found the right place yet!
As I’m trying to get my head around how a user controls their settings.
If a user has hit “subscribe” to a whole “forum” (board as I’d have called it in older forum software) – it seems they then get notifications to all topics. But there could be many topics on that forum, and they may not want to be notified of some posts within that board. So how do they selectively unsubscribe from some in that board, but not others?
Going into the forum it seems that individual topics still have a “subscribe” button when the whole forum (board) is subscribed to, which is a little puzzling, if all topics under that forum (board) should now be subscribed to. So if they want to unsubscribe from that topic – do they have to click subscribe, then unsubscribe?
Can anyone point me in the right direction as to how this bit of the plugin is meant to work? Thanks!
No just test data at the moment. I will try that out on the test server first and see if this fixes the problem. If it does I will then do it on the live server.
thanks
so maybe a database corruption, do you have live data in the forums, or just test stuff ?
if just test then go to
dashboard>tools>forums>reset forums and delete all your forum data.
You can then start again
Hi Robin
Yes I have even tried deactivating, then deleteing bbpress and then re-installing. I still, get the same issue.
This is a new site, new problem. It worked OK to start with while testing until we deleted a test post.
I’m thinking, as wer have deleted and reinstalled, something is retained in the settings/post in the DB that causes the issue.
Hi
I have seen quite a few people have this issue. Everythibg in bbpress works apart from when you click replies and then the page shows a Service Unavailable error message. I have tried all the options mentioned in other posts like turning off all other plug-ins, changing the theme to Twenty Twenty and also talking to our hosting company and still cannot get it to work. The hosting company tried changing the php versions but the still gave the error message. Error 500 for php7 and error 503 for php7.2. They also checked the error logs and said there was no errors showing. It was working OK when it was a fresh installation, all we have done is add a few test topics and posts and deleted 1 reply. The it starts to give the error.
Does nyone have a solution to this that I haven’t tried?
Many Thanks
Regards
Colin
I am using WP Sweep and it lists unused tags. It does not test BBPress for using any of the tags.
What steps are involved to detect if a tag is used in the database with forum topics / replies
consistently to certain random users, or occasionally across all users ?
ie do you have a ‘random’ user who is getting this problem all the time that you can test with?
again this could be caching
Hmm…if this was a problem that happened every time, I’d be willing to do that because then we could appropriately test whether the problem persisted with this off. But it’s kinda hard to know if SG optimizer is the culprit. But if you are pretty certain that is the cause, by all means we can try it 🙂 Thanks for the speedy response!
would be worth retesting your issues in this and other posts with that switched off
I confirm that that works. No if no one is logged in it will not show the user statistics.
The only outstanding issue IMHO is that we should somehow test if the user is not “blocked” because I don’t think a blocked user should have the right to see the stats or any log activity.
How do we test if the user is “blocked”?
Look at the function build_html()
:
// Actually build all of this HTML
function build_html() {
$this->sort_users();
$data = $this->stats_builder();
$HTMLOutput = "";
//if (is_user_logged_in()) {
foreach( $data as $key => $html ) {
$HTMLOutput .= "<div class='bbpas-" . $key . "' id='bbpas-" . $key . "'>" . $html . "</div>";
}
//}
return $HTMLOutput;
}
It calls sort_users();
That in turn does a select query to get a list of active users:
private function sort_users() {
// Set the active users
$this->_activeUsers = $this->get_ActiveUsers();
// Work out the longest time possible for a user to be classed as active
$active_timeframe = strtotime( $this->_sqlTime ) - ( $this->parent->option['user_inactivity_time'] * 60 );
At no point can I see anywhere that it checks to see if the active user is logged in and not blogged in the forum. It should be doing these tests because it should not be exposing user names.
You can see it with my site if you use private mode.
This has to be fixable and I don’t understand why it was never implemented in the first place really. I just don’t know how to do it.
I am very sure! Easy to test too. Started Firefox and initiated a private browser. Navigated to my site (where no user is logged in), clicked on the forum (where I have 1 pubic forum with FAQ info) and the stats show.