Advertisement:

Author Topic: Telephone required in register user  (Read 122 times)

JAVIERSL70

  • Newbie
  • *
  • Posts: 7
Telephone required in register user
« on: December 04, 2018, 01:11:27 am »
Hello, how can I make a telephone register required when registering a user?

digitalsense

  • Jr. Member
  • **
  • Posts: 84
  • Hello there!
Re: Telephone required in register user
« Reply #1 on: December 04, 2018, 08:06:30 am »
Add this line in user-register.php of your current theme and change label and class according to your theme

<label for="phone"><?php _e('Mobile Phone', 'yourtheme'); ?></label> <span class="input-box last"><?php UserForm::mobile_text(osc_user()); ?></span>

Also check out my plugin works with sms notifications for users to give alert

https://market.osclass.org/plugins/messaging/sms-notification_936

JAVIERSL70

  • Newbie
  • *
  • Posts: 7
Re: Telephone required in register user
« Reply #2 on: December 04, 2018, 12:27:28 pm »
the telephone field already appears in my template, what I want is that it must be obligatory to fill in the field of the telephone.

digitalsense

  • Jr. Member
  • **
  • Posts: 84
  • Hello there!
Re: Telephone required in register user
« Reply #3 on: December 04, 2018, 07:43:03 pm »
for your requirement please check this plugin

https://sourceforge.net/projects/osclass/files/Plugins/required-fields/plugins_requiredreg_1.0.1.zip/download

This should solve the problem :)

JAVIERSL70

  • Newbie
  • *
  • Posts: 7
Re: Telephone required in register user
« Reply #4 on: December 06, 2018, 04:38:57 pm »
The plugin does not work
 :(