Error Messages with Pines Notify
Posted: Mon May 31, 2010 2:45 pm
If you have a site with FrontEndUsers and other modules that use CGExtensions, you can set up your error messages to work with JQuery's Pines Notify plugin.
The only problem is that you need a consistent error message class, and FrontEndUsers doesn't use the error class from CGExtensions.
The solution to this is:
1. Set the error class in CGExtensions preferences.
2. Find the language files in FrontEndUsers ( example en_US.php ), and find the error messages that are used for login mistakes and add around the error message. "Foo" is whatever error class you use in CGExtensions.
Then save this file in module_custom/FrontEndUsers/lang/
3. Now add jQuery to your page templates ( or use the JqueryTools module) and call the Pines Notify plugin for the error class that you use.
Pines Notify can be found here:
http://pines.hg.sourceforge.net/hgweb/p ... index.html
The only problem is that you need a consistent error message class, and FrontEndUsers doesn't use the error class from CGExtensions.
The solution to this is:
1. Set the error class in CGExtensions preferences.
2. Find the language files in FrontEndUsers ( example en_US.php ), and find the error messages that are used for login mistakes and add around the error message. "Foo" is whatever error class you use in CGExtensions.
Then save this file in module_custom/FrontEndUsers/lang/
3. Now add jQuery to your page templates ( or use the JqueryTools module) and call the Pines Notify plugin for the error class that you use.
Pines Notify can be found here:
http://pines.hg.sourceforge.net/hgweb/p ... index.html