Announcement

  •  » Engine
  •  » New plugin manager

#1 2011-04-11 21:50:41

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

New plugin manager

We are making some changes on the plugins manager

First there will be only 2 visible states : Active & Inactive, bye bye Uninstalled
[Subversion] r10293
This doesn't ask any modifications on plugins, the state Uninstalled still exists but is merged with Inactive for the displaying.

Second, there will be some changements on the page :
- plugins are displayed in little inline-boxes, like Languages (with an option to switch to the actual view)
- a better visual distinction between active and inactive plugins
- a drop-box to sort plugins by state or by name
- and finnaly a kind of emmergency button to deactivate all plugins in one clic (perhaps this link will be available in dev mode, activated by a $conf parameter)

This is not commited yet but you can see a preview here : http://img1.uploadscreenshot.com/images … 4-orig.png


What about the position of the configuration link of a plugin: should it be placed on the plugin list, near "Activate" ? or should we let the choice to the developper (in the plugin menu or/and in the plugin list) ? or just change nothing ^^

Offline

 

#2 2011-04-11 21:57:04

flop25
Piwigo Team
2006-07-06
7037

Re: New plugin manager

what a good work !

We should not display a config link on that page because they must be on the tabmenu Plugin (the plugin can be integrated to piwigo also, if it doesn't need a config page)
Or if we put a config, it should be the same as on the tabmenu Plugin

Another thing : the pink interrogation point is a little disturbing ... the tooltip can be displayed on the name of the plugin no ?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2011-04-11 21:59:38

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: New plugin manager

ha !
for this I doubted (and still doubt ^^) there is a little conflict with this tooltip and the tooltip of incompatibility (that is currently on the name)

is the pink color that hurts you or the icon itself ? ^^

Last edited by mistic100 (2011-04-11 22:00:57)

Offline

 

#4 2011-04-11 22:02:13

P@t
Piwigo Team
Nice
2007-06-13
4098

Re: New plugin manager

flop25 wrote:

Another thing : the pink interrogation point is a little disturbing ... the tooltip can be displayed on the name of the plugin no ?

I agree.. we should display tooltip on plugin name, or even better, on plugin box.


P@t

Offline

 

#5 2011-04-11 22:05:27

P@t
Piwigo Team
Nice
2007-06-13
4098

Re: New plugin manager

mistic100 wrote:

for this I doubted (and still doubt ^^) there is a little conflict with this tooltip and the tooltip of incompatibility (that is currently on the name)

I'm sure that we can hide main tooltip when displaying warning tooltip with "enter" and "exit" callback function of tiptip plugin.


P@t

Offline

 

#6 2011-04-11 22:16:17

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: New plugin manager

I've put the incompatibility icon in a separate link near the name, so now I can move de description tooltip to the name...

there is still the problem of the with of the tooltip : default value is not adapted for long descriptions but the parameter 'maxWidth' doesn't works...

Offline

 

#7 2011-04-11 23:49:47

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13565

Re: New plugin manager

flop25 wrote:

Another thing : the pink interrogation point is a little disturbing ... the tooltip can be displayed on the name of the plugin no ?

I agree that the pink question mark is far too visible (and even disturbing), but I don't think it should be removed. Maybe another icon or simply a question mark in a different font-family.

Offline

 

#8 2011-04-12 00:14:32

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: New plugin manager

mistic100 wrote:

there is still the problem of the with of the tooltip : default value is not adapted for long descriptions but the parameter 'maxWidth' doesn't works...

So this is a bug of TipTip : one advantage of the plugin is that it generates only one wrap which is moved and modified (it's faster than one wrap for each link), but some datas are note overwrited... including 'maxWidth' https://drew.tenderapp.com/discussions/ … c-scenario

Offline

 

#9 2011-04-13 20:46:15

grum
Former Piwigo Team
Pantin
2007-09-10
1371

Re: New plugin manager

mistic100 wrote:

First there will be only 2 visible states : Active & Inactive, bye bye Uninstalled
[Subversion] r10293
This doesn't ask any modifications on plugins, the state Uninstalled still exists but is merged with Inactive for the displaying.

I didn't look yet on the next release, but can you explain how will works a plugin install ?

Always 3 tabs ?
- plugin list
- updates
- other plugin

If I understand, on the first tab we have :
- activated
- inactivated

When plugin is activated, it call the install and update functions ; when plugin is deactivated it call the inactivate and uninstall function ?
How do you remove completely a plugin ? (If I don't want to see it in inactivated plugin) There is a trigger or a function called when the plugin is definitely removed ?
When you install a plugin from the depositery, a trigger or a function is called ?

I try to understand how the plugin config are managed : for inactivated plugin, we have to remove completely the plugin config or not ?


My pictures with Piwigo, of course !
[ www.grum.fr ]

Offline

 

#10 2011-04-13 20:53:16

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: New plugin manager

I think P@t is the best placed to explain that, but I will try

Imagine you download a new plugin (or directly add it on the folder), the plugin is shown as "Inactivate", in fact he is "Uninstalled", one click on the Activate button will call plugin_install and plugin_activate.

At this state you can click on :
- "Deactivate"... just deactivate the plugin (no change here)
- "Restore" will deativate, uninstall, install, activate

if you deactivate the plugin it's shown as "Deativate" and it's his real state, you can :
- "Activate", once again no change here
- "Delete" will call plugin_uninstall then delete the plugin

one important thing : don't change anything in your plugin workflow ;-)

Last edited by mistic100 (2011-04-13 20:54:58)

Offline

 

#11 2011-04-14 00:32:40

P@t
Piwigo Team
Nice
2007-06-13
4098

Re: New plugin manager

I would not have explain better ;-)


P@t

Offline

 

#12 2011-04-14 09:01:18

rvelices
Piwigo Team
2005-12-29
1960

Re: New plugin manager

Est-il possible de renommer "Restore" dans "Reinitialize" par exemple et/ou rajouter un attribut title au lien?

Avant de venir lire ce post je n'ai pas reussi à me rendre compte ce que ca doit faire

Offline

 

#13 2011-04-14 09:34:35

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13565

Re: New plugin manager

or maybe just "Reset" + tooltip "Restore default configuration". Unfortunately "Reset" is not correctly translated in a few languages ("Reset" was translated as "Cancel")

Offline

 

#14 2011-06-15 22:18:13

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: New plugin manager

there is a bug with the new activation flow made by P@t : at first activation a plugin is firstly installed, then activated, all I the same process, that can cause bugs on plugins that checks their config params in plugin_activate (config updates...)

so I've reloaded the db config adding load_conf_from_db() after line 88 on plugins.class.php
[Subversion] r11389

Last edited by mistic100 (2011-06-15 22:20:01)

Offline

 

#15 2011-08-22 14:36:09

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13565

Re: New plugin manager

I've played with the plugin manager in WordPress recently. There is two interesting features in my opinion:

1) Installing a new plugin from the plugin directory is called "adding a plugin", not "installing a plugin".

2) when you add a new plugin, the confirmation message "the plugin was successfully added..." is followed by 2 simple links : "Activate this plugin" or "Return to Plugin Installer". I think this is smart and better in term of user experience.

Offline

 
  •  » Engine
  •  » New plugin manager

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact