• Hello,

    I would like to edit one of the default registration form error messages. Currently, when the new customer tries to register with a blocked email address, the plugin generates the message: “We do not accept registrations from that domain.” I would like to edit this message, but am unable to locate the messages being used in the plug in interface. The closest thing I can find to a possibility is in this article: http://docs.ultimatemember.com/article/94-apply-custom-validation-to-a-field

    However, I don’t want to rewrite existing code since the plugin already handles this.

Viewing 6 replies - 1 through 6 (of 6 total)
  • How did you block a domain name on Ultimate Member?

    Thread Starter chromausa

    (@chromausa)

    Using the “Settings: Access: Blocked email addresses” list.

    The message for that setting is:
    “This will block the specified e-mail addresses from being able to sign up or sign in to your site. To block an entire domain, use something like *@domain.com”

    The message above is the message provided by the plugin on the registration page (I tested using a gmail address after setting it to block using “*@gmail.com” in the list.)

    Go to /wp-content/plugins/ultimate-member/languages/ultimatemember-en_US.po

    Approximately at line 1899.

    Let me know if that helps,

    Thread Starter chromausa

    (@chromausa)

    Thanks, that led me to the line that allowed me to change it.

    Lines 1898- 2000:

    #: core/um-actions-misc.php:107
    msgid "We do not accept registrations from that domain. Please use your company email address."
    msgstr ""
    

    Under core/um-actions-misc.php, at line 107 is the error used, within a switch/case structure.

    I’m glad that solved your issue.

    What exactly did you do the core/um-actions-misc.php?

    Also after editing, did you clear your cache at all?

    Let me know

    Thread Starter chromausa

    (@chromausa)

    Just added the extra text I wanted to the message, saved, and cleared my site cache.

    Tried cache clearing after altering the .po file, but no luck there.

    Thanks again!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Using um_submit_form_error for custom error display’ is closed to new replies.