Support » Plugin: Newsletter » Change the error message "Wrong email"

  • Resolved desarollo


    I want to change the message that show when you submit a wrong email.
    I suppose that is in:

    #if ($user->status == ‘E’) NewsletterSubscription::instance()-#>show_message(‘error’, $user->id);

    But i dont find where is ‘error’.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Stefano Lissa


    On subscription form panel you’ll find all the messages.

    I change all the fields and the message its the same. I create my own form with an input id nws-input. Other messages like Welcome message or Already subscribed page content works perfect. But when i put a wrong email show me “Wrong email” i want change it (translate to my languaje) and change style. Thanks

    Plugin Author Stefano Lissa


    See the subscription form panel.

    I saw it, and nowhere put a message that say “Wrong email” only this “Email i nos validate” in Error message, i suposse that is a different message.

    I found the line in the code where i suposse that is the problem. In subscription.php in the folder /subscription line #197 the code says:

    ## die(‘Wrong email’)

    If I translate this, the message will be changed, no? But, how i put it css style?

    I have the solution!, i put in the die sentence #die (‘<div id=”error”>Wrong email</div>’)

    And in the code css:
    #error {font-size:XXpx; position:XXXX; font-family:XXXXXX;}

    I wait this can help people with the same problem!
    Thank you for all!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change the error message "Wrong email"’ is closed to new replies.