GetSimple Support Forum
Status Messages Plugin - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13)
+--- Thread: Status Messages Plugin (/showthread.php?tid=1661)



Status Messages Plugin - roog - 2011-05-05

This plugin can be used to display status messages (update, error) in back-end plugin pages. It is almost trivial, since it is already described here. However, I happen to use it a lot for different plugins, that's why I made it into a separate plugin. Maybe somebody else finds it useful too.

Installation:
Download the plugin here, unzip and copy its contents to your plugins folder.

Usage:
This plugin contains just one function which should only be used in the admin (back-end) section of GS. Call using

Code:
display_message($msg, $success)

Explanation of parameters:
  • $msg (string) - The message to print.
  • $success (bool) - If TRUE, display $msg as update message, else as error message.

That's it, cheers,
Roog