errorsAndAlerts and calling dynamic data for the alert ref: membership plugin

12 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: July 6, 2017   (RSS)

By Twocans - July 6, 2017

Thanks Dave,
That works, but, I had to change the name of the error to what the error states, aka the error might be called "username" but I had to replace it with the content of that error thus in this case it is "Please enter a username!"

Were I to say to add password then the error would be Please enter a bla bla bla pass!

// replace messages in $errorsAndAlerts - DO THIS LAST
$errorsAndAlerts = str_replace("password", "bla bla bla pass", $errorsAndAlerts);
$errorsAndAlerts = str_replace("Please enter a username!", "ding dong you forgot the username", $errorsAndAlerts);

anyway thanks very  much and this has been resolved.

see quick test page

http://www.camteach.com/user-login.php

cheers

kenny