Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

eMember – Custom validation error messages?

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Tweaks › eMember – Custom validation error messages?

  • This topic has 1 reply, 2 voices, and was last updated 9 years, 6 months ago by wzp.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 5, 2016 at 6:48 pm #12873
    Tim
    Member

    I’d like to customize the messages generated by emember_validator.php:

    function __construct() {

    $this->fields = array();

    $this->addRule(‘user_required’, array(‘rule’ => ‘required’, ‘message’ => EMEMBER_USERNAME_NOT_EMPTY));

    $this->addRule(’email_required’, array(‘rule’ => ‘required’, ‘message’ => EMEMBER_EMAIL_NOT_EMPTY));

    $this->addRule(’email’, array(‘rule’ => ’email’, ‘message’ => EMEMBER_INVALID_EMAIL));

    $this->addRule(‘user_minlength’, array(‘rule’ => ‘minlength’, ‘length’ => 4, ‘message’ => EMEMBER_USERNAME_4_CHARS));

    $this->addRule(‘user_unavail’, array(‘rule’ => ‘user_unavail’, ‘message’ => EMEMBER_USER_NAME_TAKEN));

    $this->addRule(’email_unavail’, array(‘rule’ => ’email_unavail’, ‘message’ => EMEMBER_EMAIL_TAKEN));

    $this->addRule(‘pass_required’, array(‘rule’ => ‘required’, ‘message’ => EMEMBER_PASSWORD_EMPTY));

    $this->addRule(‘pass_mismatch’, array(‘rule’ => ‘mismatch’, ‘message’ => ‘Password does’t match!’));

    $this->addRule(‘alphanumericunderscore’, array(‘rule’ => ‘alphanumericunderscore’, ‘message’ => EMEMBER_ALPHA_NUMERIC_UNDERSCORE));

    $this->addRule(‘user_name’, array(‘rule’ => ‘user_name’, ‘message’ => EMEMBER_USER_NAME_VALIDATION_MESSAGE));

    }

    Where are these messages stored? I can change it in the code if that’s the solution, but was hoping for a user-editable spot as the person I’m doing the work for knows nothing about code.

    The goal of this is to tweak wrong password and invalid user messages on the login page like “Wrong username or password.”

    January 5, 2016 at 8:43 pm #72220
    wzp
    Moderator

    Where are these messages stored?

    In the language files.

    https://support.tipsandtricks-hq.com/forums/topic/how-to-customize-various-textmessages-displayed-by-the-plugin

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ