Subject: How to display a message after a plugin upgrade ?

Posted on: 08/04/2013 11:52am
By: ::Ben

Working on a plugin upgrade, I would like the admin check the new config values.
What would be the best way to display a message to this admin after a plugin upgrade ?

Ben


Re: How to display a message after a plugin upgrade ?

Posted on: 08/04/2013 12:16pm
By: Laugh

Hmmmm good question. We don't really have a way anymore I believe.

This would be a useful feature to have. I could see specific messages being displayed after the following events (we could just add the system message):

plugin upgrade (version dependant?)
plugin install
plugin uninstall
maybe even enabling and disabling plugins

I also think have a notes field or something on the plugin info page would also help.


Re: How to display a message after a plugin upgrade ?

Posted on: 10/04/2013 11:41am
By: Laugh

I see for the captcha plugin you did the upgrade notification by using the Admin block.

Interesting idea.

Would the idea I listed above be enough for your needs or do you think we need something that is more noticeable and will keep coming up until it is removed? I was thinking something like a system message using COM_showMessageText that is like the message displayed when the install directory for Geeklog is not removed. Of course this is a little more complicated since some sort of system would be needed to add messages to and remove once the user has indicated such.

Re: How to display a message after a plugin upgrade ?

Posted on: 10/04/2013 12:06pm
By: ::Ben

For important message, like I did in the Captcha plugin update (check the config settings before using the plugin), I think it is a good feature to display the message until it is removed by the user. I used the admin block (and a variable in vars table) because it is a block displayed on almost every page. I could also display message on the plugin admin page but I wanted to test a noticeable area.

Ben

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=94897