Skip to:

Opened 12 months ago

Last modified 5 months ago

#3284 new enhancement

"Replies" are not informing the user about going in to moderation queue

Reported by: ajtruckle Owned by:
Milestone: 2.7 Priority: high
Severity: major Version: 2.6.1
Component: General Keywords: reporter-feedback


I started this discussion here:

When a user creates a new topic, and bbPress decides it shoudl go to moderation, it provides the user with information by way of the status area at the top of the window:

This is from template.php:

// Get the topic status
switch ( $topic_status ) {

	// Spam notice
	case bbp_get_spam_status_id() :
		$notice_text = esc_html__( 'This topic is marked as spam.', 'bbpress' );

	// Trashed notice
	case bbp_get_trash_status_id() :
		$notice_text = esc_html__( 'This topic is in the trash.', 'bbpress' );

	// Pending notice
	case bbp_get_pending_status_id() :
		$notice_text = esc_html__( 'This topic is pending moderation.', 'bbpress' );

	// Standard status
	default :
		$notice_text = '';

As you can see, there is are several responses given to the user which is most beneficial. For example:

But, when we look at replies this whole concept has been overlooked. The author of the reply is told nothing. This needs to be improved and my suggestion is in two ways:

  1. As a minimum the same feedback need to be provided to the user when a reply goes into moderation, just like it does for a new topic.
  1. Ideally, the information should be posts just after the most recent entry in the discussion (just before the now empty editor). You see, if you are making a reply on page 3 you won't see the moderation message (unless the system takes you to the very start of the topic to ensure you can see it).

I have given this a high priority because bbPress should have consistent behaviour when authoring new topics and replies. Infact, your own support forum suffers this issue. We must show the feedback message to the author when a reply goes to moderation.

Side point: I have written messages on your forum that I know have gone to moderation and they have not been approved. I do not know how many other users there are who have written valid posts only to see them completely vanish and not show up again.

Change History (8)

#1 @johnjamesjacoby
12 months ago

  • Milestone changed from 2.6.2 to 2.6.3

#2 @ajtruckle
12 months ago

I just noticed that there is already a placeholder for error messages on the reply form. For example, I had typed the same message 3 times so it triggered an error saying I had already typed that message or something. So this same location needs to be used for the moderation related messages.

#3 @johnjamesjacoby
11 months ago

  • Milestone changed from 2.6.3 to 2.6.4

This needs more work than will happen before 2.6.3 ships, so bumping to 2.6.4.

#4 @johnjamesjacoby
9 months ago

  • Milestone changed from 2.6.4 to 2.6.5

Moving open issues from 2.6.4 to 2.6.5, for 2.6.4 release today.

#5 @Clivesmith
9 months ago

I find this a problem too, I get people posting multiple times the same thing, as I am sure they think their reply has got lost. My site relies on guest posters.

Last edited 9 months ago by Clivesmith (previous) (diff)

#6 @johnjamesjacoby
5 months ago

  • Milestone changed from 2.6.5 to 2.6.6

#7 @johnjamesjacoby
5 months ago

  • Milestone changed from 2.6.6 to 2.7

Shifting this to 2.7.0 to lighten the 2.6.6 load.

#8 @Clivesmith
5 months ago

This problem was solved for me by Robin Wilson.

I allow guests to reply to topics and the moderation notice was not working, as said above.

I also use Moderation Tools by Digital Arm, I do not know if that would make any difference, this is the working code that Robin did for me.
I use a shortcode [mod-return] in a WordPress page with a permalink of ‘/moderation that thanks the person for replying and the shortcode sends them back to the topic.

Works perfectly

//add message if reply help in moderation
add_filter ('bbp_new_reply_redirect_to' , 'rew_pending_check', 30 , 3) ;

function rew_pending_check  ($reply_url, $redirect_to, $reply_id) {
        $status = get_post_status ($reply_id) ;
        $topic_id = bbp_get_reply_topic_id( $reply_id );
        if ($status == 'pending' ) {
                $reply_url = '/moderation/?moderation_pending='.$topic_id ;
return $reply_url ;

add_shortcode ('mod-return' , 'mod_return' ) ;

function mod_return () {
        if (!empty($_REQUEST['moderation_pending'] )) {
        $topic_url         = get_permalink( $_REQUEST['moderation_pending'] );
        echo '<div class="mod-return"><a href= "'.$topic_url,'"><h2 style="color:Tomato;">Return to topic</h2></a></div>';

Note: See TracTickets for help on using tickets.