Skip to:
Content
Pages
Categories
Search
Top
Bottom

Uploading images without placing the text


  • elovkoff
    Participant

    @elovkoff

    Hi, sorry if this has been asked a lot of times, but I couldn’t find relevant information.
    I need to be able to upload images without placing any text at all in the text field. Just need to upload images. Please let me know how to achieve this.

    Wordpress 4.1.10
    BBPress Version 2.5.8

    Please let me know.
    Thank you!

Viewing 13 replies - 1 through 13 (of 13 total)

  • Robin W
    Moderator

    @robin-w

    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.


    elovkoff
    Participant

    @elovkoff

    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.


    Robkk
    Moderator

    @robkk

    @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/


    elovkoff
    Participant

    @elovkoff

    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.


    Robkk
    Moderator

    @robkk

    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' );

    elovkoff
    Participant

    @elovkoff

    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.


    Robin W
    Moderator

    @robin-w


    elovkoff
    Participant

    @elovkoff

    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.


    Robin W
    Moderator

    @robin-w

    your choice 🙂


    Robkk
    Moderator

    @robkk

    @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.


    elovkoff
    Participant

    @elovkoff

    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.

Viewing 13 replies - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.
Skip to toolbar