PDA

View Full Version : I am new to Dotproject. And I figured i would change some things.


shawng
14-01-06, 04:46 PM
Well I am not going to introduce myself as a newbie with a problem. Instead I chose to introduce myself as a newbie who has figured out a simple solution to a common problem.

Ok well, it might not be the best way to do this. But it works, and I think I covered everything that I need to do with it.

Let me start off by explaining what I needed to do. I wanted my projects / task to allow normal users to add there logs of hours and comments to the projects, but I did not want them to be able to edit any logs once they ware added to the system or edit the task it self.

So after shifting around the forums and the DOT Project task module, I located a few areas of interest. I figured that since the only people who have the delet permission on a task are the people who manage the task, not the people who work on the task, they all have edit permission.

So what i did is by editing a few module calls, I managed to change the permission of the task. I made the delete permission on a task allow a user to edit and delete task and logs. I made the edit permission deny the user from editing the task and deny the user from editing the logs on the task, but the user may still add a hour log to the task.

So here the code.
http://www.nemesisstudios.com/public/nse-taskmod.rar

just unzip them into your module/task directory, be carfull if you have changed anything. this was edited from the 2.0.1 version of dot project.

hope this helps out someone.. it helped me.

shawng
14-01-06, 05:30 PM
ok, I am now in the process of trying to add the feature of not updating the user of a task log when editing a task log. So if one of my users puts the wrong hours in for a day. I can modify there entry and retain them as the user and not auto update the uset to my user so that I may still list accurate reports.

My guess is this feature is hidden somewhere in the vw_log_update.php file, I am currently trying to locate a code that checks for user change, or any spot i can manipulate the user of the task log..

any help, I would be greatfull.

thx
shawng

caseydk
01-02-06, 12:44 AM
Shawng,

One of my customers recently pointed this out too. Did you get anywhere on figuring it out?

shawng
01-02-06, 03:59 PM
Shawng,

One of my customers recently pointed this out too. Did you get anywhere on figuring it out?


sorry, I never got to it.. to busy doing other things.

still interested in it. but I figured a way to get around it. by allowing me to manuly delete the hourly task then allowing the user to add it back with the correct information.

I would realy like to just allow the users of a hour log to have options for administrators to chose what user the hours belong to.. but since I am not a dotproject pro. I don't have enough knowledge yet to do this kind of change over night =(

And I been working on getting the dotproject training sessions ready for our team.

good luck, if I manage to get some free time I will let you know. It looks like I will be swoped working on the goon world title..

shawng
10-02-06, 09:00 AM
I noticed the link was bad for the mode. I reuploaded it.

I also released this mode. .. loads anything into dot project.
http://www.dotproject.net/vbulletin/showthread.php?t=4428

caseydk
12-02-06, 06:52 AM
ok, I am now in the process of trying to add the feature of not updating the user of a task log when editing a task log. So if one of my users puts the wrong hours in for a day. I can modify there entry and retain them as the user and not auto update the uset to my user so that I may still list accurate reports.

I believe Cyberhorse has recently fixed this one. Grab the latest code from CVS.