Home Forums Plugin Support WP User Frontend Pro Function require to upload picture before post

This topic is: not resolved

This topic contains 12 replies, has 2 voices, and was last updated by  towhid 4 years, 1 month ago.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #44255

    Alexandre
    Member
    Post count: 73

    Hi

    I saw this function made for WPUF :

    https://wordpress.org/support/topic/plugin-wp-user-frontend-require-to-upload-pictures-before-post

    i tried it but it doesnt seem to work anymore, maybe a field name has changed ?

    Tx for your help

    Alex

    #44407

    Alexandre
    Member
    Post count: 73

    Hi

    Any idea about this

    This code should work, what should i change ?

    Tx !

    #44438

    towhid
    Participant
    Post count: 4505

    Hello,

    Please let me know which type of picture you like to set, feature image or an attachment?
    Can you please let me clear are you wish to attach a picture before post title?

    Thanks.

    #44496

    Alexandre
    Member
    Post count: 73

    Hi

    I would like to have an image attachment to be required before posting

    Tx

    #44644

    towhid
    Participant
    Post count: 4505

    Hello Alexandre,

    I will experiment the line of code you mentioned at the first post in this topic. After then I can make a statement.

    Thanks.

    #44688

    Alexandre
    Member
    Post count: 73

    ok thank you as this is very important for us

    Tx

    Alex

    #45061

    towhid
    Participant
    Post count: 4505

    Hello Alexandre,

    The filter “wpuf_add_post_validation” is not available in WP User Frontend Pro but this is available in Free version. So that you are not obtain the function.

    Thanks

    #45135

    Alexandre
    Member
    Post count: 73

    Hi

    The pro version is supposed to be better that the free version, thats why we paid for it !

    Could you please provide a solution for the pro version

    Tx

    #45197

    towhid
    Participant
    Post count: 4505

    Hello Alexandre,

    In the free version, there was no option to select required field. You can not change any field out of those fixed field.

    But in PRO version you can set any required option in every field. This the option which is the much powerful feature in PRO version.

    In frontend. if any field did not fill up then an error will appear in a browser which will suggest to filling up the required field.

    Thanks.

    #45261

    Alexandre
    Member
    Post count: 73

    Ok Towhid tx for the explanation

    But i need a solution

    So could you please provide the right code

    as the previous code only works for the free version

    Tx so much

    #45288

    towhid
    Participant
    Post count: 4505

    Hello Alexandre,

    Here is the solution:

    Step 1: Assign a Title field in the form and set the field as required.
    Step 2: Assign an Image Upload field and also set the field as required.

    On Submit the form:

    Just leave blank the Image Upload field and click submit button.

    After click the submit button the form will provide you a message “Please fix the errors to proceed” and the required item will be a red mark.

    Which indicates you can not post then the form before fill up every required item.

    Thanks

    #45344

    Alexandre
    Member
    Post count: 73

    Hey

    Tx but this is not exactly what i want

    there is already a button just above the content “insert an image”

    as i dont want people to just attach image to the post, but insert directly to the content

    so im looking to check that the user has inserted an image in the content before posting

    Tx a lot

    #45681

    towhid
    Participant
    Post count: 4505

    Hello Alexandre,

    I will request you to please post this topic in the popular online marketplace and hire a developer to customize this plugin to avail that feature.

    Thanks.

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

The topic ‘Function require to upload picture before post’ is closed to new replies.