This Help forum is for issues relates to webtrees 1.7. For issues related to webtrees 2.0, please use that forum.
Before asking for help please read "Requesting Help and Suggestions" by clicking on that tab above here."
  • Page:
  • 1

TOPIC:

Mobile number in user comment 1 year 6 months ago #1

  • mrqd
  • mrqd's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 50
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?

Please Log in or Create an account to join the conversation.

Mobile number in user comment 1 year 6 months ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14515
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Mobile number in user comment 1 year 6 months ago #3

  • mrqd
  • mrqd's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 50
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?

Please Log in or Create an account to join the conversation.

Mobile number in user comment 1 year 6 months ago #4

  • kiwi
  • kiwi's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 4986
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:

Please Log in or Create an account to join the conversation.

Mobile number in user comment 1 year 6 months ago #5

You should visit my website register page:
www.snwsjz.com
Wang Family Website of Suining County, China
www.snwsjz.com
A family tree website that is customized, more humanized and convenient for users.

Please Log in or Create an account to join the conversation.

Mobile number in user comment 1 year 6 months ago #6

  • mrqd
  • mrqd's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 50

www.snwsjz.com


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?

Please Log in or Create an account to join the conversation.

Mobile number in user comment 1 year 6 months ago #7

When version 2.0 is stable, I will release the modified code.
Wang Family Website of Suining County, China
www.snwsjz.com
A family tree website that is customized, more humanized and convenient for users.

Please Log in or Create an account to join the conversation.

Mobile number in user comment 5 months 1 day ago #8

  • mrqd
  • mrqd's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 50
Hello,

When version 2.0 is stable, I will release the modified code.

Any update regarding this?

Please Log in or Create an account to join the conversation.

Last edit: by mrqd.
Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

Mobile number in user comment 5 months 1 day ago #9

  • hermann
  • hermann's Avatar
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 295
... just one minor remark @xmlf: your mobile phone field is too short for my mobile number! I would need two more characters: +4917122...... (3 country + 3 mobile network in Germany + 7 personal numbers = 13 characters).

Your registration form looks great!
webtrees 2.0.16 (all available custom modules installed, php 7.4.15, MySQL 5.6) @ ahnen.hartenthaler.eu/
and webtrees 1.7.18 (many custom modules) @ ahnen1.hartenthaler.eu/

Please Log in or Create an account to join the conversation.

Mobile number in user comment 3 months 1 week ago #10

  • Bogie
  • Bogie's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Life is good!
  • Posts: 544
I my eyes the registration form could be an improvement for the webtrees standard - may be except for the grand parents.
Bogie
webtrees 2.0.16 | PHP 7.4.14 | MariaDB 10.5.4 | Apache on Ubuntu 12.5

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum