For uploading files, the 3 products I know of are ‘GD bbpress Attachments’ (as Robin indicated), ‘Image Upload for BBPress’ and ‘bbPress Multi Image Uploader’. Have a look if it would fit your needs.
If you use BuddyPress as well, then there is also ‘BuddyPress Forum Editor’.
Pascal.
Sorry for the late reply, got sick.
Guys I think you missed the main point. Uploading images is not a problem. I do use GD bbpress Attachments. The problem is that when you don’t type anything int he text field, the upload is not allowed.
And this is exactly what I need – I need to upload images without adding any text to the text filed. I think it is actually a bbPress limitation.
Please let me know if there is anything that can be done here.
Thanks.
Elijah.
@elovkoff
Use an inline image uploader, so at least the html of the image would be present in the post content box. GD bbPress attachments may have something for inline image uploading, but I think in the pro version.
This plugin is a good and simple inline image uploading plugin.
https://wordpress.org/plugins/image-upload-for-bbpress/
Thanks Rob, but I can’t do it for the simple reason I have to explain to users and place the message on the page that says ‘if regular upload doesn’t work, please use the inline one’.
Ideally just need to know how to lift the restrictions so I would be able to click on the upload button and upload the image even if there is no text in the bbpress text field.
Thanks.
Elijah.
Yeah you do not need to run both plugins at the same time. I meant just use one instead of the other.
This php snippet will allow empty posts which is kind of not a good idea. Also I cannot seem to find the code in the bbPRess plugin responsibe for the no redirect to post after submit after using using this code.
function rkk_remove_content_error_check( $reply_content ) {
if ( !empty( $_POST['bbp_reply_content'] ) && empty( $_POST['bbp_reply_content'] ) )
$reply_content = $_POST['bbp_reply_content'];
}
add_filter( 'bbp_new_reply_pre_content', 'rkk_remove_content_error_check' );
Thanks Rob. I’m sorry, I’m quite ok with html/css but now close to nothing about php. Can you let me know where would I pace this code?
Thanks.
Elijah.
You can put any of these codes into your functions.php of your (child) theme.
Thanks a lot for all your replies. I’m not a huge fan of child themes – they cause more trouble then good in a lot of cases, but I will consider it.
Thanks.
Elijah.
@elovkoff
You do not have to create a child theme just for custom code snippets, you can also use a custom plugin, this plugin below will give you an area to add custom php code snippets.
https://wordpress.org/plugins/functionality/
I still rather suggest you just stick with an inline image upload plugin instead of gd bbPress attachments(unless you are using pro), instead of removing the error notice and allowing empty replies.
Hi Rob, thanks for the advice. And thanks to everybody else who took the time to chime in.
You said: “Also I cannot seem to find the code in the bbPRess plugin responsibe for the no redirect to post after submit after using using this code.”
Anny pointers where would I look for it, or should I hire a dev to do that?
When you refer to inline image upload – is that something that would require users to know how to use img html tags? Will it allow multiple image upolads too?
Thank you.
Elijah.