and Support, when post ad, the postcontroller php can make description a required field, but how about for img, what code do I need to add to force ad poster post at least 1 img or upload 1 image? please advice, many thanks :)
This requires advanced PHP knowledge. You have to edit /sys/app/controllers/PostController.php file line 274.
Add else statement to if like following
// no image uploaded then display error and prompt upload at least one image
$this->validation()->set_error(__('Please upload at least one image.'));
// delete this ad
Remind you again that changes made to core files will be deleted on script update.
Hi Support I’ve fresh installed latest v1.5 and using above code but it doesn’t work anymore please advice what’s the new code to make upload image at least 1 image compulsory, please let us know? Thanks……….