Dépôt des plugins › Détails d'un plugin

Browser notifications 5.0

Display notifications in your web browser

Documentation

Plugin notifyMe for Dotclear 2

Release Date Issues Dotaddict License

Notification sample

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, …).

Plugin settings

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

How to display browser notification using this plugin.

in Javascript

Legacy way

Load (if necessary) /js/notify.js, and call notifyBrowser(msg[,title]):

<script src="index.php?pf=NotifyMe/js/notify.js"></script>
<script>
    notifyBrowser('Hello world!');
</script>

Using module

<script>
    import { notifyBrowser } from './index.php?pf=notifyMe/js/notify.mjs';
    notifyBrowser('Hello world!');
</script>

Or:

<script>
    const notifyMe = import('./index.php?pf=notifyMe/js/notify.mjs');
    notifyMe.notifyBrowser('Hello world!');
</script>

in PHP

#!php
use Dotclear\Plugin\notifyMe\Helper as NotifyMe;
NotifyMe::NotifyBrowser(msg[,title]);

LICENCE

GPL v2, fork and distribute it freely. You may pay me a 🍺 or even 🍻 if you find this plugin useful!

Known Issues

  • ⚡ autosave plugin will fire a notification at every save.

Apporter des précisions

Si vous constatez des informations manquantes sur cette page comme :

  • Incompatibilité avec certaines versions de Dotclear (autres que celle indiquée)
  • Hébergement ou configuration incompatible
  • Service web inopérant

Votre message ne sera pas mis en ligne, mais sera revu par les administrateurs.

Attention, nous ne fournissons pas de support technique pour les modules. Pour cela, veuillez utiliser le lien de support ci-dessus.

Haut de page