Page 1 of 4

Mantis Add-On - Time Tracker - Easy to run & install

Posted: 02 Aug 2005, 11:24
by Guest
Hi Folks,

yesterday, after beeing swallowed up by work for months now, I had the time to program a little time & cost tracker.

It is modularized in such a way that you don´t have to touch the source code of your Mantis Instance at all. Just some includes and one SQL command and you´re set. Based an Mantis User-Concept, some users can only view the list while others can enter expenses and admins (or whoever is stated in the conf file) can even remove entries.

Although this is Alpha release stuff you still might like to use it. I will continue to work on it and post here, when it has matured.

Any comments are welcome! Developed in Mantis 0.19.1.

Screenshot:
Image

Download:
http://people.freenet.de/coolai/time/modules.zip

Posted: 02 Aug 2005, 13:11
by Brokit
Sorry, don´t know why it happened but I posted this as Guest...

bye,
Elmar

Mantis 1.0.0

Posted: 23 Aug 2005, 12:21
by Bernd
Hi Elmar,
what about Mantis 1.0.0?
I tried but could not enter any times :-(

Bernd

Really great work, any v1.0 compatibillity in your planning?

Posted: 25 Sep 2005, 14:52
by onad
Really great work, any v1.0 compatibillity in your planning?

a few modifications

Posted: 13 Oct 2005, 08:39
by tiabarca
Hi,

Great work, very usefull for my company. I made a few modifications, to your code: Current date select boxes don't show dates correctly, I replaced the code for:


file: time_tracking.php

<?php
$current_date = explode ("-", date("d-m-Y"));
?>
<select tabindex="5" name="day">
<?php print_day_option_list( $current_date[0] ) ?>
</select>
<select tabindex="6" name="month">
<?php print_month_option_list( $current_date[1] ) ?>
</select>
<select tabindex="7" name="year">
<?php print_year_option_list( $current_date[2] ) ?>
</select>

Spanish translation:

file: strings_spanish_add.php

<?php
# Time Tracking
$s_time_tracking = '<b>Dedicacion temporal:</b> Si has dedicado tiempo a esta incidencia, indicarlo aqui';
$s_time_user = 'Usuario';

$s_time_expenditure_date = 'Fecha efectiva';
$s_time_hours = 'Horas';
$s_time_information = 'Informacion';
$s_time_mandays = 'Dias';
$s_time_costs_auto = 'Costes (automatico)';
$s_time_entry_date = 'Fecha entrada (automatico)';
$s_time_submit = 'Enviar';
$s_time_sum = 'Suma';

$s_time_tracking_delete = 'Eliminar!';
$s_time_value_error = 'Por favor introduzca un numero correco para el campo horas/dias!';
?>

changes for 1.0.0rc2

Posted: 24 Oct 2005, 13:09
by Tobias Meyer
apparently the database connections do not need to be fetched for the 1.0.0rc2 version of mantis.

deleting the lines with

Code: Select all

        if( db_connect( config_get('hostname'), config_get('username'), config_get('password'), config_get('database_name') )){
and for each the corresponding

Code: Select all

        } else {
              trigger_error( ERROR_DB_CONNECT_FAILED, ERROR );
        }
will make it fully functional.

Posted: 06 Dec 2005, 22:26
by jsanders
Hi,

I am trying to install your plugin. It looks nice by the way! Unfortunatuly your instructons are too short.
I succeeded to add the mysql query. I also added the lines to the language files (English and ducth). You probably mean the files in the "lang" directory?

But where do i actualy add in the html? Where did you put it?

Posted: 08 Dec 2005, 09:20
by jsanders
Anybody help for the post above?

Posted: 12 Dec 2005, 19:58
by webwesen
i have added the table to bug_view_page.php (~line 370)

Codebase / 1.0.0rc4

Posted: 21 Dec 2005, 21:48
by jotango
Hi,

do you think this will end up in the mantis codebase? It looks exactly like something I need.

Does it work with 1.0.0rc4?

Thanks

It works on rc4. Reports?

Posted: 04 Jan 2006, 09:02
by marcg
Hi!

I can confirm it works under RC4, having removed the checks about the DB connection stated earlier.

What I found lacking is some report support. Ideally, a list of reported time by project or by developer (between dates) and some CSV export would be sufficient.

I'd like to know if someone is already doing this or if someone could help me develop it.

Posted: 05 Jan 2006, 16:59
by webwesen
i am also looking into writing the code to do reports/CVS export.

Posted: 07 Jan 2006, 19:48
by marcg
Hi,

I've managed to develop the report and CSV export feature. Have a look...

Image

I've added filters by informer, and start/end date to the list. I've had to change some mantis files (mainly core/html_api.php) and some of the new ones had to be put in the root folder of mantis (instead of modules/time_tracking) for simplicity in the includes and easy linking from the Summary page. If the original developer is interested (I hope he is) I can send him all the changes I made so they get added/improved in new versions.

Posted: 09 Jan 2006, 09:49
by Guest
Looks nice margc (can't read it tho ;)).

So Est (topicstarter), are you gonna continue optimizing it? Its a very nice addon, should not be left Alpha...

Posted: 09 Jan 2006, 09:50
by bitmaster
The guest post above is mine.