plugin:message
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:message [2009-10-06 14:31] – tag cleanup laynee | plugin:message [2024-01-23 13:43] (current) – Aleksandr | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== message | + | ===== Message |
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : emauvaisfr@yahoo.fr | email : emauvaisfr@yahoo.fr | ||
type : action | type : action | ||
lastupdate : 2009-08-04 | lastupdate : 2009-08-04 | ||
- | compatible : 2008-05-05 | + | compatible : Lemming, Anteater, Rincewind, Angua, Adora Belle, Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Elenor of Tsort, Frusterick Manners, Greebo, !Hogfather |
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : | + | tags : |
+ | |||
+ | downloadurl: | ||
+ | bugtracker : | ||
+ | sourcerepo : | ||
+ | donationurl: | ||
---- | ---- | ||
- | ^ Download | http://emauvaisfr.free.fr/dokuwiki/message.tar.gz | + | :!: Two corrections are needed in **action.php** to make this old plugin work again: |
+ | - on line 38 replace\\ **'' | ||
+ | - on line 42 replace\\ **'' | ||
+ | |||
+ | |||
+ | Also you can add this free plugin' | ||
===== Description ===== | ===== Description ===== | ||
- | | + | |
+ | | ||
* The messages appear on every page, for all users. | * The messages appear on every page, for all users. | ||
===== Example ===== | ===== Example ===== | ||
- | {{http://emauvais.multimania.com/ | + | |
+ | {{http://emauvaisfr.free.fr/ | ||
===== Version history ===== | ===== Version history ===== | ||
+ | |||
* 2008-10-07: first one! | * 2008-10-07: first one! | ||
* 2009-03-11: manage the messages in the admin section. | * 2009-03-11: manage the messages in the admin section. | ||
Line 29: | Line 42: | ||
===== Discussion ===== | ===== Discussion ===== | ||
+ | |||
+ | * It says above that the message files are named e.g. '' | ||
* Tell me... | * Tell me... | ||
* It would be great to know where to put this in the DokuWiki directory structure. Sorry, I have a problem with the plugin manager not installing this plugin correctly. | * It would be great to know where to put this in the DokuWiki directory structure. Sorry, I have a problem with the plugin manager not installing this plugin correctly. | ||
Line 34: | Line 49: | ||
* It would be great to be able to manage these messages in the admin section. Not very friendly to edit the text file directly. Especially remotely. | * It would be great to be able to manage these messages in the admin section. Not very friendly to edit the text file directly. Especially remotely. | ||
* This will be possible in a upcoming new version. --- //Etienne M. 2009/03/09 14:12// | * This will be possible in a upcoming new version. --- //Etienne M. 2009/03/09 14:12// | ||
+ | |||
+ | ==== Make message dismissable ==== | ||
+ | |||
+ | It would be nice to make the messages dismissable. Perhaps a checkbox besides each message in the admin section to toggle this function on/off. I personally see many use cases for this, but realise it is a long shot, considering that the developer hasn't updated his plugins in several years. Anyways, I am still happy with the plugin as it is now. Thanks! | ||
+ | |||
+ | ==== Display based on time ==== | ||
+ | |||
+ | While I'm at it, why not ask for time based messages as well? For instance, I'd like a message to appear only on a set date, and disappear the following day. I'm not expecting recurring messages, as that would likely be grounds for a new plugin, just the possibility to set a start and end time for each message. | ||
+ | |||
+ | ==== Disable when not logged in ==== | ||
+ | |||
+ | To prevent these messages from showing up when not logged in, modify the _display_message function in action.php: | ||
+ | |||
+ | < | ||
+ | function _display_message(& | ||
+ | global $conf; | ||
+ | global $ID; | ||
+ | $perm = auth_quickaclcheck($ID); | ||
+ | if($perm > AUTH_NONE){ | ||
+ | |||
+ | $file=$conf[' | ||
+ | if (file_exists($file) && filesize($file)) msg(@file_get_contents($file), | ||
+ | |||
+ | $file=$conf[' | ||
+ | if (file_exists($file) && filesize($file)) msg(@file_get_contents($file), | ||
+ | |||
+ | $file=$conf[' | ||
+ | if (file_exists($file) && filesize($file)) msg(@file_get_contents($file), | ||
+ | |||
+ | $file=$conf[' | ||
+ | if (file_exists($file) && filesize($file)) msg(@file_get_contents($file), | ||
+ | | ||
+ | } | ||
+ | return; | ||
+ | | ||
+ | </ | ||
+ | --- [[user> | ||
+ | |||
+ | ==== Requested compatibility with Translation Plugin ==== | ||
+ | |||
+ | It would be nice to introduce language divised notes for sites with multilanguage support. | ||
+ | |||
+ | ==== Bell icon for the admin panel ==== | ||
+ | |||
+ | {{https:// | ||
+ | |||
+ | Screenshot: | ||
+ | |||
+ | {{ http:// |
plugin/message.1254832282.txt.gz · Last modified: 2009-10-06 14:31 by laynee