1. occfaadm
  2. Support
  3. Wednesday, December 17 2014, 02:14 PM
LOVE this extension!! I'm a total newbie. I apologize in advance. The site (trade union) I am creating needs to exclude emails from a domain "oaklandcc.edu" to be exact. I have implemented another extension to not allow registration with this email domain. However, once a user account is created (using another email) the user can change their email on the profile to anything they want. My users (union members, some older and stubborn) will try and change it back to "oaklandcc.edu" which creates legal problems because in the US, a union cannot send emails to company addresses.

So short question, is there any way to verify at save profile that the email does not contain "oaklandcc.edu"

Related question 1: is there a way to verify at save profile that the phone number contains 10 digits - all numbers?

Related question 2: is there a way to verify that any field contains an exact set of characters?
Accepted Answer
admin Accepted Answer
Admin
Hi,
is there any way to verify at save profile that the email does not contain "oaklandcc.edu"
Yes but not with Easy Profile, to do this you need to write a simple Joomla user plugin

is there a way to verify at save profile that the phone number contains 10 digits - all numbers?

Yes but only with "Text" type field. in options of text field you ca set "Format" parameter on "Custom" and in "Custom Format" parameter set "[0-9]{10}".
In custom format parameter you can use a Regular expression format

is there a way to verify that any field contains an exact set of characters?
same as previous question.
example 5 char + 2 number
[A-Za-z][A-Za-z][A-Za-z][A-Za-z][A-Za-z][0-9][0-9] or [A-Za-z]{4}[0-9]{2}
4 char
[A-Za-z0-9]{4}
email
[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}

these are many example on internet, here some docs http://en.wikipedia.org/wiki/Regular_expression
  1. more than a month ago
  2. Support
  3. # Permalink
cocojoom Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. Support
  3. # 1
cocojoom Accepted Answer
Pro
It was the wrong image
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
Hi,
[A-Z] mean 1 uppercase char. Try to use [A-Z]+
  1. more than a month ago
  2. Support
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.