Duplicating Time Module
Page: 1
andrewCharron
on Feb 27. 2008. 2:41 pm
We require something very much like the timetracking module, but for money instead of time. Since we need time as well, I have duplicated all time files and replaced all references to timetracking with moneytracking, and manually added the module into the database.
The money tab shows up. I can successfully enter the values through the form, and they submit to the database correctly. (Same as timetracking, but as Type MoneyRecord and module moneytracking). However, they no longer show on the page.
I had this problem with hiding timetracking from clients as well, but I managed to fix that by changing VISIBILTY_NORMAL to VISIBILITY_PRIVATE in TimeRecords.class.php.
However, since this is a duplicate of timetracking AFTER I had made those changes, the fix is already applied. MoneyTracking shows as inputted in overviews, just not on the page itself.
Where should I be looking? I am attempting to look through the code, but I have very minor experiance in Object Oriented code, and what I do know is mostly related to Java rather than PHP.
The money tab shows up. I can successfully enter the values through the form, and they submit to the database correctly. (Same as timetracking, but as Type MoneyRecord and module moneytracking). However, they no longer show on the page.
I had this problem with hiding timetracking from clients as well, but I managed to fix that by changing VISIBILTY_NORMAL to VISIBILITY_PRIVATE in TimeRecords.class.php.
However, since this is a duplicate of timetracking AFTER I had made those changes, the fix is already applied. MoneyTracking shows as inputted in overviews, just not on the page itself.
Where should I be looking? I am attempting to look through the code, but I have very minor experiance in Object Oriented code, and what I do know is mostly related to Java rather than PHP.
Ilija Studen
on Feb 29. 2008. 2:24 pm
You used a hacked module. If you wish, send your module to support@a51dev.com and we'll see what is happening.
activeCollab team member



