View Full Version : Timecard Module with 2.0 Alpha
Anyone got Timecard working with the lastest 2.0 Alpha? When I try to install it, I just get a blank screen.
yeah me too same thing here (using march 4 CVS) - i guess the timecard module isn't 2.0 - compatible. correct me someone if im wrong
I think you're right - I don't think anyone has made Timecard compatible with 2.0. Any volunteers?
Sorry to step in,
I also got the blank page first time I tried it.
I am using timecard with 2.0 (my csv is from 17/02/2005 this might be important, don't know), only problem is with the reports.
The only thing I remember changing was line 32 of setup.php into:
require_once( $dPconfig['root_dir'].'/modules/system/syskeys/syskeys.class.php' );
Better remove it and install again, after that change.
Pedro A.
jerrysalem
16-03-05, 03:38 AM
On a sumwhat related note.
I have a plain 1.02 install and am using TimeCard.
My tasks on Sundays don't show up on my Weekly Timecard.
All else is fine.
When using TimeCard and dP2.0 do the Sunday tasks show up??
Oh I hope so!
Jerry
My sunday tasks do show up on v2, so I don't have that problem.
As a matter of fact, I forced myself to not have any tasks on sundays, it's the only day I have to invest on the family. But for you i guess it will be ok.
Pedro A.
Hi,
In my case, it says..undefined function getconfig() in vw_timecard.php....so its blank where it should display the contents below the normal tabs..
any help
?
Amit
boardtc
06-04-05, 11:24 PM
I had timecard working with a cvs from october. I upgraded to v2.0 today and it works fine. If anyone wants what I have pm me your email address and I will send it on.
Tom
It would be much appreciated if we could get that updated in the dotmods CVS - if you would like PM me directly and we can get that facilitated.
Hi,
For what I see in the CVS the combo box with the users name would be empty since line 91 of vw_timecard.php:
$sql = "SELECT user_id, user_first_name, user_last_name FROM users WHERE user_id=".$AppUI->user_id." or (".getPermsWhereClause("companies", "user_company").") ORDER BY user_last_name, user_first_name";
Is requesting fields that no longer exist in ver 2 (user_first_name and user_last_name) so we should change that to:
$sql = "SELECT user_id, contact_first_name, contact_last_name FROM users LEFT JOIN contacts AS c ON users.user_contact = contact_id WHERE user_id=".$AppUI->user_id." or (".getPermsWhereClause("companies", "user_company").") ORDER BY contact_first_name, contact_last_name";
Yep, they are now on the contacts table as contact_first_name and contact_last_name, also included a Perms verifier just in case.
Also had to change line 94 to:
echo "<option value=\"".$user["user_id"]."\"".($user["user_id"]==$user_id?"selected":"").">".$user["contact_first_name"]." ".$user["contact_last_name"]."</option>\n";
because of the first problem, you see?
I like the first name first and the last name last (kinda straight foward), if you like it inversed with a comma between:
echo "<option value=\"".$user["user_id"]."\"".($user["user_id"]==$user_id?"selected":"").">".$user["contact_last_name"].", ".$user["contact_first_name"]."</option>\n";
wow, that was hard, hah?
Reports are messed up because of the first problem, changed them a bit but didn't finish it yet.
Task Log is working but only on a one way, insert. Editing does not work.
One step at a time.
Pedro A.
dumarjo
08-04-05, 12:24 AM
pedora, i thing we work on the same thing. I have done the exactly the same this to my file, and updated the mantis bug report. I have made a report that is much better to the report that come with the timecard. So I have to test it with the version 2.0 to see if it work. I make a pdf of the report also ...
give you some news today or tomorow.
Hi dumarjo,
I see now that it was on Mantis 444. I am just sorry that I haven't seen it before, kinda would save me some time. Too bad for me.
I'll wait for your news on the report. Thanks.
Pedro A.
dumarjo
08-04-05, 05:08 AM
ok i get my report working again ... look at:
http://www.dotproject.net/mantis/bug_view_page.php?bug_id=0000444
for the zip file with the modded file
Hope this help
regards
Jonathan
michelan
28-02-08, 10:13 PM
Hello Guys!!
I did all modifications suggested but continue with some problems like this:
Fatal error: Call to undefined function: getconfig() in /var/www/dotproject/modules/timecard/vw_timecard.php on line 13
Could any one tell me where I can download the updated module (full)?
I'm not using CVS ... Or only how solve this problem?
Thank you.
Best Regards!
vBulletin® v3.6.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.