(semi) automatic checking for plugin updates.

General discussion about MantisBT Plugins

Moderators: Developer, Contributor

Post Reply
cas
Posts: 1718
Joined: 11 Mar 2006, 16:08
Contact:

(semi) automatic checking for plugin updates.

Post 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:
Starbuck
Posts: 221
Joined: 14 Feb 2006, 02:53
Location: USA
Contact:

Re: (semi) automatic checking for plugin updates.

Post 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!
If you want Mantis to work differently, use or create a plugin. Visit the Plugins forums.
Ask developers to create a plugin that you need - and motivate them to help you!
amphetamine
Posts: 118
Joined: 05 Jun 2019, 00:17

Re: (semi) automatic checking for plugin updates.

Post by amphetamine »

Not Found
The requested URL was not found on this server.
colivarez
Posts: 16
Joined: 03 Feb 2020, 20:38

Re: (semi) automatic checking for plugin updates.

Post 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;
cas
Posts: 1718
Joined: 11 Mar 2006, 16:08
Contact:

Re: (semi) automatic checking for plugin updates.

Post by cas »

I have adjusted the page in error, please download /pages/config.php (or the plugin in total) and it should work.
cas
Posts: 1718
Joined: 11 Mar 2006, 16:08
Contact:

Re: (semi) automatic checking for plugin updates.

Post by cas »

Please install the plugin in total again after downloading version 1.03
Post Reply