Function require to upload picture before post

This topic contains 12 reply and 2 voices, and was last updated by towhid 8 years, 11 months ago
Viewing 12 Posts - 1 through 12 (of 12 total)
Author Posts
May 17, 2015 at 5:37 pm 44255
towhid 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
May 18, 2015 at 8:18 pm 44407
Alexandre Alexandre

Hi

Any idea about this

This code should work, what should i change ?

Tx !

May 19, 2015 at 11:30 am 44438
towhid towhid

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.

May 19, 2015 at 5:37 pm 44496
Alexandre Alexandre

Hi

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

Tx

May 20, 2015 at 4:39 pm 44644
towhid towhid

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.

May 20, 2015 at 7:47 pm 44688
Alexandre Alexandre

ok thank you as this is very important for us

Tx

Alex

May 24, 2015 at 4:04 pm 45061
towhid towhid

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

May 26, 2015 at 12:31 am 45135
Alexandre Alexandre

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

May 26, 2015 at 4:33 pm 45197
towhid towhid

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.

May 27, 2015 at 3:39 am 45261
Alexandre Alexandre

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

May 27, 2015 at 10:27 am 45288
towhid towhid

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

May 27, 2015 at 4:33 pm 45344
Alexandre Alexandre

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

May 30, 2015 at 4:09 pm 45681
towhid towhid

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 12 Posts - 1 through 12 (of 12 total)