Back to GD bbPress Attachments Forum

No text with attachment won’t submit

Published on: September 6, 2021 at 9:26 am · By: vortexmonkey


I’m making a site where people reply using an uploaded audio file. The problem is that if there is no text in the reply, then when you click on submit, the form empties but nothing actually gets submitted. At least if there was an error message that would be fine. But if the user doesn’t pay very close attention, they won’t notice that even though it looks like the reply was submitted, it actually wasn’t.

Is there some solution for this? Otherwise, the plugin works great.

Thanks for this free plugin!

PS: here is a cast of what is happening.

Viewing 2 replies - 1 through 2 (of 2 total)
  • #73778


    Reply in bbPress has to have at least some content to submit, there is no way around that, that’s the way bbPress works. And, bbPress shows the error message for that. If you don’t see the error, something is wrong with your setup, or you have some custom code hiding the message. In anyway, it is not related to my plugin. My plugin saves attachments only if the reply/topic were successfully processed by bbPress.


    Dev4Press - Premium plugins for WordPress.

  • #73779

    Thank you so much for the quick response!

    To solve the empty message issue, someone on the bbPress forum gave me this code as a workaround:

    add_filter ('bbp_new_reply_pre_content' , 'rew_allow_blank_content') ;
    function rew_allow_blank_content ($reply_content) {
    	if ( empty( $reply_content ) ) {
    		$reply_content = ' ' ;
    return $reply_content ;
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.