aljawaid / PluginManager

Replace the Installed Plugins section with a whole new interface. Plugin Manager provides both users and developers with an improved layout displaying a new section for troubleshooting plugins with a new plugin structure breakdown for each plugin. Install plugins directly or explore new upcoming or untested features from manual plugins.
MIT License
17 stars 3 forks source link

Work Out Last Installed Date #24

Closed aljawaid closed 1 year ago

aljawaid commented 1 year ago

There seems to be no date or information on when any plugin was installed.

Solution: Scan the /plugins folder and the 'last modified' date of the individual plugin folder would be the date it was created (plugin was installed).

I found the scan() but tried using it but got absolutely nowhere. Not much proper information on finding php date modified for directory, everybody talking about files.

Your thoughts? Or if it is easy, can you please create the function etc and tell me how to call it in the template?

for installed plugins, if the date could be worked out, i'd like to fit it in each plugin installed table, probably under the 'up to date' status image

aljawaid commented 1 year ago

@creecros @alfredbuehler Is it worth looking into this?

creecros commented 1 year ago

I dont know.

filemtime(); on the directory will work tho

aljawaid commented 1 year ago

I dont know.

filemtime(); on the directory will work tho

any rough example of how the installed plugin folder would be called for each plugin? or is it just filemtime($plugins);

creecros commented 1 year ago

no.

https://www.php.net/manual/en/function.filemtime.php

you have to do it on each plugin directory.

aljawaid commented 1 year ago

Cool

aljawaid commented 1 year ago

@creecros So I managed to get it done with the installed plugins page. image

Just trying to figure out the same for the directory page for the plugins which are installed

aljawaid commented 1 year ago

Done for installed plugins, cant figure it out for available plugins (matching to installed versions) so will close this as it was more important to show in the installed page which is done.