Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Status Messages Plugin
#1
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
Reply




Users browsing this thread: 1 Guest(s)