How to add module in field in Timetrex

Discussion for TimeTrex open source community developers.
Locked
moatazmoussa
Posts: 7
Joined: Thu Jun 07, 2012 7:00 am

How to add module in field in Timetrex

Post by moatazmoussa »

Dear All,
I'm a php developer and I have certain custom requirements using the community version. however, after creating a new menu item nothing reflect in the system. I tried to edit in the menu template but nothing appeared.

How to add module with a simple CRUD operation for a new table and a custom requirements?

I hope anyone can help me.

Moataz Moussa
moatazmoussa
Posts: 7
Joined: Thu Jun 07, 2012 7:00 am

Re: How to add module in field in Timetrex

Post by moatazmoussa »

Dear community,
I appreciate any help here. I need to contribute on TimeTrex, and make my contributions available for the community, as I believe in the open source concept.
for example; I can add Taxes rules of Egypt and some Middle east countries. I can add some modules related the performance appraisal, in addition, some HR rules , loan management module.

However, I just need help to start, as I have already started developing these ideas but I cannot add it to TimeTrex as I explained in the previous post.

I appreciate any help.

Moataz Moussa
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: How to add module in field in Timetrex

Post by shaunw »

You will need to be much more specific in your question if we are to have any chance in helping you. Some of the things you mentioned are likely already handled in TimeTrex already, or will be in the next version.
moatazmoussa
Posts: 7
Joined: Thu Jun 07, 2012 7:00 am

Re: How to add module in field in Timetrex

Post by moatazmoussa »

Many thanks Shaunw for your reply.

Sorry, If I wasn't specific. My main need is to create new module tap in the menu bar named 'training'. This module has sub-sections include the following;
1) admin section that defines courses for level of positions.
2) transaction section that record which employee get certain training from his list. when the employee get all the training of his position he can be qualified to promote to the higher position.

all other modules I need has the same concept.

My issue is that when I created this taps and when I debug I could't find any effect on the interface.

Moataz Moussa
moatazmoussa
Posts: 7
Joined: Thu Jun 07, 2012 7:00 am

Re: How to add module in field in Timetrex

Post by moatazmoussa »

to be more specific.

I tried to edit in the menu.class.php and menu.tpl but nothing appeared in the interface.
do I need to add anything in the database or is there another file needed to be edit.

In other words, I just need the steps of creating new menu item and link it to new page or sub-menu.

Moataz Moussa
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: How to add module in field in Timetrex

Post by shaunw »

The functionality you are looking for along with a full HR module is currently in beta testing and will be released with the next major version of TimeTrex.
moatazmoussa
Posts: 7
Joined: Thu Jun 07, 2012 7:00 am

Re: How to add module in field in Timetrex

Post by moatazmoussa »

thanks Shaunw for your reply.
good news about the next version.
However, can you advise me related the issue that I posted
moatazmoussa wrote:to be more specific.

I tried to edit in the menu.class.php and menu.tpl but nothing appeared in the interface.
do I need to add anything in the database or is there another file needed to be edit.

In other words, I just need the steps of creating new menu item and link it to new page or sub-menu.

Moataz Moussa
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: How to add module in field in Timetrex

Post by shaunw »

Again, you need to be more specific, what are the exact changes that you made?
moatazmoussa
Posts: 7
Joined: Thu Jun 07, 2012 7:00 am

Re: How to add module in field in Timetrex

Post by moatazmoussa »

I am trying to make a new module in timetrex. I succeeded in make a new menu with all it's sub menus. but when i request my newly created file i got (500 internal error then an empty page).
steps:-
1. adding the new menu items and links to menu.tpl
2. adding my php files in "interface/<My Module>"
3. adding my template files in "templates/<My Module>"
4. adding the factory files in "classes/modules/<My Module>"
5. adding my class mapping "includes/ClassMap.inc"
6. adding my table mapping "includes/TableMap.inc"
7. create my new table in the database.

I am trying to make a very simple module with only one field like "User title". I actually copied user title files and changed the names and refrences.
first I got 500 internal error after that an empty page

I cleared the cache directory and templates_c more than once but nothing changes.
when i debug it stops in "global.inc.php" line 275 "return new $class_name();"

if you need any further info please tell me.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: How to add module in field in Timetrex

Post by shaunw »

Whats the exact error message that PHP is giving you? Have you checked the PHP error logs for more information?
moatazmoussa
Posts: 7
Joined: Thu Jun 07, 2012 7:00 am

Re: How to add module in field in Timetrex

Post by moatazmoussa »

httpd/error_log

[Tue Jun 12 11:12:14 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jun 12 11:12:14 2012] [notice] Digest: generating secret for digest authentication ...
[Tue Jun 12 11:12:14 2012] [notice] Digest: done
[Tue Jun 12 11:12:15 2012] [notice] Apache/2.2.17 (Unix) DAV/2 PHP/5.3.8 configured -- resuming normal operations
[Tue Jun 12 11:12:15 2012] [warn] ./mod_dnssd.c: No services found to register

httpd/access_log


127.0.0.1 - - [12/Jun/2012:11:20:41 +0200] "GET /timetrex/interface/images/arrow.gif HTTP/1.1" 200 825 "http://localhost/timetrex/interface/index.php" "Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0"
127.0.0.1 - - [12/Jun/2012:11:20:41 +0200] "GET /timetrex/interface/images/tab_menu.gif HTTP/1.1" 200 112 "http://localhost/timetrex/interface/index.php" "Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0"
127.0.0.1 - - [12/Jun/2012:11:20:41 +0200] "GET /timetrex/interface/images/tab2.gif HTTP/1.1" 200 67 "http://localhost/timetrex/interface/global.css.php" "Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0"
127.0.0.1 - - [12/Jun/2012:11:20:41 +0200] "GET /timetrex/interface//send_file.php?object_type=copyright HTTP/1.1" 304 - "http://localhost/timetrex/interface/index.php" "Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0"
127.0.0.1 - - [12/Jun/2012:11:20:43 +0200] "GET /timetrex/interface/probation/ProbationItemList.php HTTP/1.1" 200 - "http://localhost/timetrex/interface/index.php" "Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0"
Attachments
access_log.txt
apache access_log
(5.54 KiB) Downloaded 591 times
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: How to add module in field in Timetrex

Post by shaunw »

I don't see any PHP errors in the logs you provided, so unfortunately they aren't any good to us. When you stated:
I cleared the cache directory and templates_c more than once but nothing changes.
when i debug it stops in "global.inc.php" line 275 "return new $class_name();"
How did you know it stopped on line 275? Did it report an actual error? Its the error message itself that tells us what the problem is, without that you are on your own as there isn't anything we can help with.
jhoeforth
Posts: 5
Joined: Mon Jul 09, 2012 9:06 am

Re: How to add module in field in Timetrex

Post by jhoeforth »

shaunw wrote:The functionality you are looking for along with a full HR module is currently in beta testing and will be released with the next major version of TimeTrex.
Was the HR module ever released? :D
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: How to add module in field in Timetrex

Post by shaunw »

It is scheduled to be released near the end of the summer.
jhoeforth
Posts: 5
Joined: Mon Jul 09, 2012 9:06 am

Re: How to add module in field in Timetrex

Post by jhoeforth »

shaunw wrote:It is scheduled to be released near the end of the summer.
Awesome! Can't wait! :)
Locked