*

kriskoyk

  • *****
  • 315 posts
Required fields when adding new listing
« on: March 26, 2024, 09:15:11 PM »
How can the option for the password of the advertisement be added to the required fields?

*

MB Themes

Re: Required fields when adding new listing
« Reply #1 on: March 27, 2024, 11:11:57 AM »
That will not be supported by plugin, you might edit file with required fields formulas for javascript and just add one for password field.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 315 posts
Re: Required fields when adding new listing
« Reply #2 on: March 27, 2024, 01:21:26 PM »
Which file should I edit?

*

kriskoyk

  • *****
  • 315 posts
Re: Required fields when adding new listing
« Reply #3 on: March 28, 2024, 01:05:16 PM »
Please tell me which file is the one I need to edit and add field for required password

*

MB Themes

Re: Required fields when adding new listing
« Reply #4 on: March 30, 2024, 07:05:12 PM »
You should be able to edit item-post.php and find pattern for required inouts via jquery validation.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 315 posts
Re: Required fields when adding new listing
« Reply #5 on: March 30, 2024, 08:10:03 PM »
I don't know how to do the editing you suggest. This is the end of my own effort, thanks for the replies and I suggest you add such a feature to this plugin in the future.

*

kriskoyk

  • *****
  • 315 posts
Re: Required fields when adding new listing
« Reply #6 on: April 02, 2024, 10:11:11 AM »
In the end it was too easy. I added this word " required/" and "minlength="6"" here:  File oc-content/plugins/backoffice_manager/form/form_passwrd.php

Code: [Select]
<input type="text" style="float:left;" name="bo_mgr_passwrd" id="bo_mgr_passwrd" placeholder="<?php _e('Enter your password''backoffice_manager'); ?>" value="<?php if($item_my['passwrd'] <> ''){echo $item_my['passwrd']; } else { echo Params::getParam('passwrd'); } ?>" size="20" minlength="6" maxlength="20" required />

and it works perfectly.

This message that comes out "Please enter at least 6 characters.", in which file is it? I want to translate it but I can't find it
« Last Edit: April 02, 2024, 10:21:45 PM by kriskoyk »

*

kriskoyk

  • *****
  • 315 posts
Re: Required fields when adding new listing
« Reply #7 on: April 03, 2024, 04:52:32 PM »
Please an answer to the last question

*

MB Themes

Re: Required fields when adding new listing
« Reply #8 on: April 05, 2024, 03:19:47 PM »
It's browser message that cannot be translated and always shown in user browser language.
It's not optimal solution as you mixing HTML5 validation and jQuery validation.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 315 posts
Re: Required fields when adding new listing
« Reply #9 on: April 05, 2024, 03:38:29 PM »
Ok Thanks

*

kriskoyk

  • *****
  • 315 posts
Re: Required fields when adding new listing
« Reply #10 on: April 09, 2024, 12:37:52 PM »
This message: "Please enter at least {0} characters."

located in this file:

oc-content/themes/beta/js/jquery.validate.min.js

If I change it to a different language directly in the file, will it cause a problem?

I want to do this because it doesn't translate automatically.
« Last Edit: April 09, 2024, 12:58:29 PM by kriskoyk »

*

MB Themes

Re: Required fields when adding new listing
« Reply #11 on: April 09, 2024, 03:15:13 PM »
No if you do not change that file on update.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 315 posts
Re: Required fields when adding new listing
« Reply #12 on: April 09, 2024, 04:16:40 PM »
Ok Thanks