This Help forum is for issues relates to the latest release (1.7.10/11/12). For issues related to development versions please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here."

TOPIC: Mobile number in user comment

Mobile number in user comment 2 weeks 13 hours ago #1

  • mrqd
  • mrqd's Avatar
  • Offline
  • New
  • Posts: 27
Hi,
(1) I wanted to make a field of "Mobile Number" in registration form, also realized that it's not a simple thing for me.

(2) Now for simplifying that I want to put an input pattern of 10 digit numbers starting with 6,7,8 or 9 required in user comment box @login.php/ Tried it but failed, can you write a line how to do it?
The administrator has disabled public write access.

Mobile number in user comment 2 weeks 13 hours ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11610
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Mobile number in user comment 2 weeks 12 hours ago #3

  • mrqd
  • mrqd's Avatar
  • Offline
  • New
  • Posts: 27
No it didn't worked..
Tried this way
<textarea required
                            cols="50" rows="5"
                            id="user_comments" name="user_comments"
                            placeholder="Put Your Mobile number and details."
                            pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}"
                        ><?php echo Filter::escapeHtml($user_comments); ?></textarea>

What's wrong?
The administrator has disabled public write access.

Mobile number in user comment 2 weeks 12 hours ago #4

  • kiwi
  • kiwi's Avatar
  • Offline
  • Platinum
  • Posts: 4965
Can’t be done on a text area box. See: stackoverflow.com/questions/13643417/how...matching-in-textarea
Nigel

www.our-families.info

Hosted at:
Follow me at:
The administrator has disabled public write access.

Mobile number in user comment 2 weeks 4 hours ago #5

  • xmlf
  • xmlf's Avatar
  • Offline
  • New
  • Posts: 69
You should visit my website register page:
www.snwsjz.com
Wang Family Website of Suining County, China
https://www.snwsjz.com
A family tree website that is customized, more humanized and convenient for users.
The administrator has disabled public write access.

Mobile number in user comment 2 weeks 1 hour ago #6

  • mrqd
  • mrqd's Avatar
  • Offline
  • New
  • Posts: 27

Your whole website is exactly what that I wanted ever.

Great customization.

But I can't do anything by myself like you, may ask you to share codes?
The administrator has disabled public write access.

Mobile number in user comment 2 weeks 59 minutes ago #7

  • xmlf
  • xmlf's Avatar
  • Offline
  • New
  • Posts: 69
When version 2.0 is stable, I will release the modified code.
Wang Family Website of Suining County, China
https://www.snwsjz.com
A family tree website that is customized, more humanized and convenient for users.
The administrator has disabled public write access.
Powered by Kunena Forum