Plugin notifyMe for Dotclear 2
This plugin display notification in your admin' pages when new comments/trackbacks are posted on the currently selected blog, or if the currently edited post (or page) has been modified elsewhere (other browser, machine, user, …).
By default new comments are checked every 30 seconds and entries' modifications every 60 seconds. Note that spam comments/trackbacks do not fire any notification, neither your own comments or trackbacks. Theses intervals may be changed in "My preferences", tab "My options".
Each kind of notification may be disabled or enabled regardless the plugin is enabled or not.
API
howto display browser notification using this plugin :
- in Javascript
Load (if necessary) /js/notify.js, and call notifyBrowser(msg[,title]):
#!html
<script src="index.php?pf=NotifyMe/js/notify.js"></script>
<script>
notifyBrowser('Hello world!');
</script>
- in PHP
Autoload notifyMe class if necessary :
#!php
$__autoload['notifyMe'] = $path_to_plugins.'/notifyMe/_admin.php';
Call Notify() function :
#!php
notifyMe::NotifyBrowser(msg[,title]);
LICENCE
GPL v2, fork and distribute it freely. You may pay me a
CHANGELOG
0.1 - 2015/07/07 (not public release)
- Initial packaging with new comments event
0.2 - 2015/07/08 (first public release)
- Add currently edited entry survey
0.3 - 2015/07/09
- Add per-notification activation
- Do not notify on own comments/trackbacks (we presume that you know what you have juste done)
0.3.1 - 2015/07/14
- Avoid using same var's name as global's ones
0.4 - 2015/09/27
- Add a 4 seconds timeout for notification
KNONWS ISSUES
⚡ autosave plugin will fire a notification at every save.
IDEAS
May be implemented if necessary and asked for:
- Publication of programmed posts : "N programmed post(s) has/have been published".
- Incorrect user login (for super-admin) : "Incorrect login occurs."