This topic contains 2 reply and 2 voices, and was last updated by Alexandre 6 years, 4 months ago
Viewing 2 Posts - 1 through 2 (of 2 total)
Author Posts
May 17, 2015 at 1:14 am 44172
Alexandre Hi How to require at least one image in a post ? then in case a user doesnt upload an image, a warning message would show up requiring an image Tx Alex
May 17, 2015 at 1:08 pm 44191
towhid towhid

Hello Alexandre,

I am really sorry that we do not have this kind of feature right now. But if you need this feature urgent you can do code or you can hire a developer.

Thank you 🙂

May 17, 2015 at 2:55 pm 44205
Alexandre Alexandre

Hi

In a previous tinymce frontend submitter, i used this to check if there was one image, if the text was more than 200 words, if there were less than 5 links etc :

$nummin = 50;
$nummax = 5000;
if (str_word_count (strip_tags($_POST[‘bondi_submission_content’])) < $nummin) $errors[] = __('Error : You post must be more than 50 words', 'frontend-post'); if (str_word_count (strip_tags($_POST['bondi_submission_content'])) > $nummax)
$errors[] = __(‘Error : Your post must be less than 5000 words !’, ‘frontend-post’);
if (substr_count ($_POST[‘bondi_submission_content’], ‘href’) > 5)
$errors[] = __(‘Error : No more than 5 links’, ‘frontend-post’);
if (substr_count ($_POST[‘bondi_submission_content’], ‘One image at least is required !‘, ‘frontend-post’);

How can i implement this to WPUF, what file is dealing with those checks ?

Tx

Alex

Viewing 2 Posts - 1 through 2 (of 2 total)