*

rei

  • ***
  • 24 posts
When registering make name accept 3 characters and above
« on: November 15, 2017, 09:59:35 PM »
how to make name accept 3 characters and above just like when publishing a listing because if you register with 1 character in name you wont be able to publish a listing because it require 3 characters

*

MB Themes

Re: When registering make name accept 3 characters and above
« Reply #1 on: November 16, 2017, 07:56:28 AM »
@rei
It's not so easy. You can try to add validation to user register page, same as is on item-post.php.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rei

  • ***
  • 24 posts
Re: When registering make name accept 3 characters and above
« Reply #2 on: November 16, 2017, 10:24:10 AM »
what do you mean by validation?

*

MB Themes

Re: When registering make name accept 3 characters and above
« Reply #3 on: November 16, 2017, 03:54:20 PM »
@rei
yes
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Loma

  • ***
  • 69 posts
  • Loma
Re: When registering make name accept 3 characters and above
« Reply #4 on: November 17, 2017, 03:32:43 AM »
you can add this code in item-post.php below   // Code for form validation  like picture

 contactName: {
            required: true,
            minlength: 3
          },


regard

*

MB Themes

Re: When registering make name accept 3 characters and above
« Reply #5 on: November 17, 2017, 10:52:34 AM »
You should add also message related to this condition (it's bellow to this code in theme).

you can add this code in item-post.php below   // Code for form validation  like picture

 contactName: {
            required: true,
            minlength: 3
          },


regard
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rei

  • ***
  • 24 posts
Re: When registering make name accept 3 characters and above
« Reply #6 on: November 17, 2017, 02:32:48 PM »
Do you mean add that to user-register.php ? because what i need is when user register the minimum name they can enter is 3 characters and above

*

MB Themes

Re: When registering make name accept 3 characters and above
« Reply #7 on: November 17, 2017, 07:17:19 PM »
Yes to user register. ContactName should be changed to name of input that should be required.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots