Welcome to Geeklog, Anonymous Thursday, April 18 2024 @ 10:36 pm EDT

Geeklog Forums

How to display a message after a plugin upgrade ?


Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
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


I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1468
Location:Canada
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.


One of the Geeklog Core Developers.
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1468
Location:Canada
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.
One of the Geeklog Core Developers.
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
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
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

All times are EDT. The time is now 10:36 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content