Advertisement:

Author Topic: photo is required field  (Read 8440 times)

pixelpadre

  • Jr. Member
  • **
  • Posts: 76
Re: photo is required field
« Reply #15 on: December 16, 2018, 11:16:16 pm »
I think a really easy way is create a MANDATORY custom field CHECK BOX that forces the user acknowledge that listings without pics will be deleted. This method is something short of a slap on the back of their heads.

« Last Edit: December 17, 2018, 12:28:55 am by pixelpadre »

Lissandragaren3

  • Newbie
  • *
  • Posts: 2
Re: photo is required field
« Reply #16 on: December 31, 2018, 12:20:55 pm »
devi modificare il file tem.form.class.php che si trova in oc-includes/osclass/frm/Item.form.class.php e cercare la riga

Code: [Select]
<?php if(osc_images_enabled_at_items()) { ?>
                "photos[]": {
                    accept: "<?php echo osc_allowed_extension(); ?>"
                },

e sostituirla così:

Code: [Select]
<?php if(osc_images_enabled_at_items()) { ?>
                "photos[]": {
required: true,
                    accept: "<?php echo osc_allowed_extension(); ?>"
                },

------------------------------------------------------------------------------------------------

you have to edit the file that is located in oc-includes/osclass/frm/Item.form.class.php and look for the line

Code: [Select]
<?php if(osc_images_enabled_at_items()) { ?>
                "photos[]": {
                    accept: "<?php echo osc_allowed_extension(); ?>"
                },

and replace as follows:

Code: [Select]
<?php if(osc_images_enabled_at_items()) { ?>
                "photos[]": {
required: true,
                    accept: "<?php echo osc_allowed_extension(); ?>"
                },
Thank you bro.