You're welcome. I think that the short tags would just work fine if you added a space after them. But now since they often stick the following instruction, it does work.

By the way there another issue I just discovered: The first project backlog cannot be created.
Indead in your install.php you create the tables as:

        CREATE TABLE IF NOT EXISTS `gadiv_productbacklogs` (
          `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
          `name` varchar(255) CHARACTER SET utf8 NOT NULL,
          `description` text CHARACTER SET utf8 NOT NULL,
          `user_id` int(11) unsigned NOT NULL,

Note the not nullable instructions for the columns description and user_id WITHOUT default values.
But when creating a product_backlog newProductBacklog(){}, you try to insert in that table (l.52)
INSERT INTO `gadiv_productbacklogs` SET `name` = 'test PBL 1', description = '';
without user_id, which makes MySQL complain about, because user_id is not defined!

This is one issue I just discovered, I wonder how many more I will get.

If I may, I would suggest you to make a clean install of your plugin in another mantis for tests, in order to detect all what you've missed when developping your plugin on your current installation.

Regards,
AlainD.



On Thu, Jun 5, 2014 at 8:58 AM, Koch, Jan <J.Koch@gadiv.de> wrote:

Hallo Alain,

 

thanks for your response to my question.

 

the custom_strings_inc.php is used for the translation of the custom fields.

 

Nearly a year ago I wrote with one guy of the support chat and he gave me the advice to create this file and save all mantisbt custom field translations in it.

Additionally we put the custom field translation in every language file from the plugin. It may be better only to have one source for this.

 

Thank you again for having a look at the source again and looking for the positions of the shorttags. I thought that I replaced all short tags…

We will replace all findings.

 

Best Regards

 

Jan Koch

Junior Software Engineer


gadiv GmbH
Bövingen 148
53804 Much

Tel.:

+49 (0)2245 / 9160-32

Fax:

+49 (0)2245 / 9160-21

E-Mail:

j.koch@gadiv.de

Web:

www.gadiv.de


Vertreten durch die Geschäftsführer:
Walter Jenauer, Axel Heuchmer, Werner Mauelshagen

Gesellschaftssitz: Much
Amtsgericht Siegburg HRB 2487
USt-ID DE123109137


 

Von: Alain D'EURVEILHER [mailto:alain.deurveilher@gmail.com]
Gesendet: Donnerstag, 5. Juni 2014 08:38


An: developer discussions
Betreff: Re: [mantisbt-dev] Adding agileMantis as a new plugin

 

That's not the purpose of the custom_strings_inc.php. The translations of the plugins labels must be handled directly in the plugin's 'lang' directory which you already did by the way. It's just that you still use lang_get() instead of plugin_lang_get() in your config.php page.

For instance instead of "lang_get( 'RankingOrder' )" you should used "plugin_lang_get( 'RankingOrder' )" instead, etc...

The same thing for the other options: 'Presentable', 'Technical', 'InReleaseDocu' and 'PlannedWork'. The strings are already defined in your strings_english.txt file.

Second,

Here is so far what I needed to manually modify in the v1.3 in order to make it work, by replacing all the <? by <?php:

1) agileMantis.php: l.154:  <?foreach => <?php foreach($pbl AS $num => $row){ ?> (with a space also between the "{" and the closing tag "?>" )
2) agileMantis.php: l.156:  <?}?> => <?php }?>
3) agileMantis.php: l.157:  <? => <?php

4) agileMantisCustomFields.php: l.114:  $row){?> => $row){ ?>
5) agileMantisCustomFields.php: l.115:  added a space or a ; before all the ?>: $row['name']?> => $row['name'];?>
6) agileMantisCustomFields.php: l.116:  <?}?> => <?php }?>
7) agileMantisCustomFields.php: l.117:  <? => <?php

8) capacity.php: l.285:  <? => <?php

9) config.php: l.127:  <?if(plugin_config_get => <?php if(plugin_config_get
10) config.php: l.213, l.218, l.223, l.228, l.233:  echo lang_get( => echo plugin_lang_get(

11) sprint_backlog_actions.php: replace all "<?if(" by "<?php if("

Best regards.
AlainD.

 

 

On Wed, Jun 4, 2014 at 12:58 PM, Koch, Jan <J.Koch@gadiv.de> wrote:

Hallo AlainD,

 

thanks for your response to our request.

 

Could you tell me where you found these errors?

 

Regarding the missing Ranking Order string:

 

Do you have a file called custom_strings_inc.php in your MantisBT main directory?

 

If not create that file and put the following lines in it:

 

<?php

                switch( lang_get_current() ){

                               case 'german':

                                               $s_Presentable = "Präsentabel";

                                               $s_InReleaseDocu = "In Freigabedoku";

                                               $s_PlannedWork = "Planaufwand";

                                               $s_RankingOrder = "Rangfolge";

                                               $s_Technical = "Technisch";

                                               $s_PlannedWorkUnit = "Aufwandseinheit";

                               break;

                               case 'english':

                                               $s_Presentable = "Presentable";

                                               $s_InReleaseDocu = "In Releasedocu";

                                               $s_PlannedWork = "Planned Work";

                                               $s_RankingOrder = "Ranking Order";

                                               $s_Technical = "Technical";

                                               $s_PlannedWorkUnit = "Planned Work Unit";

                               break;

                }

                $s_ProductBacklog = "Product Backlog";

                $s_BusinessValue = "Business Value";

?>

 

Best Regards

 

Jan Koch

Junior Software Engineer


gadiv GmbH
Bövingen 148
53804 Much

Tel.:

+49 (0)2245 / 9160-32

Fax:

+49 (0)2245 / 9160-21

E-Mail:

j.koch@gadiv.de

Web:

www.gadiv.de


Vertreten durch die Geschäftsführer:
Walter Jenauer, Axel Heuchmer, Werner Mauelshagen

Gesellschaftssitz: Much
Amtsgericht Siegburg HRB 2487
USt-ID DE123109137


 

Von: Alain D'EURVEILHER [mailto:alain.deurveilher@gmail.com]
Gesendet: Mittwoch, 4. Juni 2014 12:45
An: developer discussions
Betreff: Re: [mantisbt-dev] Adding agileMantis as a new plugin

 

Hi Jan Koch,

I'm a user of your plugin (and not part of the Mantis dev team), but I've been testing your plugin v1.3 with Mantis 1.2.17.

It appears that you still have syntaxt issues in your source code, such as opening php tags <? without the php (instead of <?php)

for instance <?if (...)

or <?echo (...)

which makes it fail when installing.

Also, some of your custom string are undified in the manage settings page. For instance:
APPLICATION WARNING #300: String "RankingOrder" not found.

I'm just saying, but maybe it could be wise to fix these before puting it in the mantisBT list no ?

best regards,
AlainD.

 

On Wed, Jun 4, 2014 at 11:21 AM, Koch, Jan <J.Koch@gadiv.de> wrote:

Hi MantisBT-Dev Team,

 

we would like to commit our new plugin to the MantisBT plugin list.

 

Our plugin is called agileMantis and enables the scrum framework to an existing MantisBT installation.

 

The repository can be found on github and sourceforge:

-          Github: https://github.com/jako87/agileMantis

-          Sourceforge: http://sourceforge.net/projects/agilemantis/

 

The following people should have access to the repository:

-          jazsch

-          jssw

-          jako87

 

If you want to see a demo version of this plugin, you can go to http://agilemantis.sourceforge.net

 

I would be glad hearing from you.

 

Best Regards

 

Jan Koch

Junior Software Engineer


gadiv GmbH
Bövingen 148
53804 Much

Tel.:

+49 (0)2245 / 9160-32

Fax:

+49 (0)2245 / 9160-21

E-Mail:

j.koch@gadiv.de

Web:

www.gadiv.de


Vertreten durch die Geschäftsführer:
Walter Jenauer, Axel Heuchmer, Werner Mauelshagen

Gesellschaftssitz: Much
Amtsgericht Siegburg HRB 2487
USt-ID DE123109137


 


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
mantisbt-dev mailing list
mantisbt-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mantisbt-dev




--

AlainD.


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
mantisbt-dev mailing list
mantisbt-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mantisbt-dev




--

AlainD.


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
mantisbt-dev mailing list
mantisbt-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mantisbt-dev




--

AlainD.