Error Messages with Pines Notify

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
kendo451

Error Messages with Pines Notify

Post by kendo451 »

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
Post Reply

Return to “Tips and Tricks”