Page 1 of 1

(semi) automatic checking for plugin updates.

Posted: 05 May 2020, 15:47
by cas
On Gitter there was a question to what extend it would be possible to check easily for new updates on plugins. I gave that some corona thoughts nad came up with a possible solution without any changes to core. The only thing required is to add a file version.txt in the root of each plugin. Clearly it should become part of the plugin documentation such that this becomes the standard.
An initial version is available here : http://www.nuy.info/mantisplugins/Check ... latest.zip
Look forward to the comments and more importantly if you believe this is a good way to handle it :mrgreen:

Re: (semi) automatic checking for plugin updates.

Posted: 09 Jun 2020, 19:28
by Starbuck
I haven't tried it yet but I think it's awesome that you moved directly from identifying a problem to a solution using the tools available.
Did I saw awesome? I meant
AWESOME!
I really hope more people see this as inspiration to create plugins that do what they want ... then share with everyone else so that there are more examples of v2+ plugins, and more code bases for people to build upon.
Thanks dude!

Re: (semi) automatic checking for plugin updates.

Posted: 10 Jun 2020, 00:15
by amphetamine
Not Found
The requested URL was not found on this server.

Re: (semi) automatic checking for plugin updates.

Posted: 10 Jun 2020, 12:37
by cas

Re: (semi) automatic checking for plugin updates.

Posted: 16 Mar 2023, 12:58
by cas

Re: (semi) automatic checking for plugin updates.

Posted: 11 Apr 2023, 16:24
by colivarez
Maybe I'm doing something wrong, but when trying to configure the plugin I get:


APPLICATION WARNING #300

String "plugin_CheckPlugin_plugin_format_title" not found. (in 'C:\inetpub\wwwroot\mantisbt\core\plugin_api.php' line 375)
Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.

Looks like it can't get the language?

function plugin_lang_get( $p_name, $p_basename = null ) {
if( !is_null( $p_basename ) ) {
plugin_push_current( $p_basename );
}

$t_basename = plugin_get_current();
$t_name = 'plugin_' . $t_basename . '_' . $p_name;
line 375 => $t_string = lang_get( $t_name );

if( !is_null( $p_basename ) ) {
plugin_pop_current();
}
return $t_string;

Re: (semi) automatic checking for plugin updates.

Posted: 12 Apr 2023, 13:27
by cas
I have adjusted the page in error, please download /pages/config.php (or the plugin in total) and it should work.

Re: (semi) automatic checking for plugin updates.

Posted: 13 Apr 2023, 14:07
by cas
Please install the plugin in total again after downloading version 1.03