Mantis Add-On - Time Tracker - Easy to run & install
Moderators: Developer, Contributor
Mantis Add-On - Time Tracker - Easy to run & install
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:
Download:
http://people.freenet.de/coolai/time/modules.zip
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:
Download:
http://people.freenet.de/coolai/time/modules.zip
Mantis 1.0.0
Hi Elmar,
what about Mantis 1.0.0?
I tried but could not enter any times :-(
Bernd
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?
Really great work, any v1.0 compatibillity in your planning?
a few modifications
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!';
?>
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
apparently the database connections do not need to be fetched for the 1.0.0rc2 version of mantis.
deleting the lines with
and for each the corresponding
will make it fully functional.
deleting the lines with
Code: Select all
if( db_connect( config_get('hostname'), config_get('username'), config_get('password'), config_get('database_name') )){
Code: Select all
} else {
trigger_error( ERROR_DB_CONNECT_FAILED, ERROR );
}
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?
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?
Codebase / 1.0.0rc4
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
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?
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.
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.
Hi,
I've managed to develop the report and CSV export feature. Have a look...
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.
I've managed to develop the report and CSV export feature. Have a look...
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.