View Issue Details

This issue affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
04494Bug reportspublic2012-03-13 22:39
Reporternklime Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.87 
Summary04494: Interview time
Description

No possibility to record and export the time spent in the entire survey. Important example - when estimating the rate of survival therefore the number of questions and survey time.

TagsNo tags attached.
Attached Files
counters.zip (242,572 bytes)
nk_functions.zip (470,281 bytes)
Bug heat8
Complete LimeSurvey version number (& build)
I will donate to the project if issue is resolved
Browser
Database type & version
Server OS (if known)
Webserver software & version (if known)
PHP Version
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

nklime

nklime

2010-07-19 13:00

reporter   ~12459

Last edited: 2010-07-20 14:54

Our programmers have a plan to put into buildsurveysession() function a code which saves time spent on the entire survey and save it in save.php file in one table with surveys ID

nklime

nklime

2010-07-21 15:55

reporter   ~12471

We change files and add function to save time spent on the entire survey into table lime_survey_nrankiety. It's a sum of time spent on answering all the questions.
There's a hidden input in group.php, survey.php and question.php files with time of start, in save.php we sum time and send to the table lime_survey_nrankiety

Mazi

Mazi

2010-07-27 00:11

updater   ~12491

nklime, there are some issues which have to be solved until we can take over the changes to the core:

  1. Are your changes based on the "limesurvey_dev" branch of our SVN?
    See http://docs.limesurvey.org/tiki-index.php?page=Accessing+the+Source+Code&structure=LimeSurvey+Development

  2. Can you provide a .diff patch based on the limesurvey_dev branch?

  3. Can you explain what the function does in more detail?

  4. You are talking about the "lime_survey_nrankiety" table. Is this a new table you created? Please tell us more about it.

  5. You wanted to work on other time measurements, did you build your code accordingly so that parts/functions can easily be reused at other time-based features?

  6. Did you add source code comments to the new/changed parts (didn't check yet)? If not, please comment all source code and also take care of
    http://docs.limesurvey.org/tiki-index.php?page=Coding+Rules&structure=LimeSurvey+Development

c_schmitz

c_schmitz

2010-07-27 00:14

administrator   ~12492

Yes, all changes need to be based on limesurvey_dev . There have been huge changes in 1.90 in some areas and a patch based on 1.87 will be very much useless.

nklime

nklime

2010-07-30 14:13

reporter   ~12517

counters.zip:

  • 3 counters (interview time, time spent on the page and one one question)
  • diff patch

I put all 3 counters in this ticket.

Mazi

Mazi

2010-07-30 14:32

updater   ~12518

Thanks for providing .diff patches.

Can you answer my questions above so we know more about the details?

Thanks, have a nice weekend.

nklime

nklime

2010-07-30 14:41

reporter   ~12519

We will write one more patch for one question time (today), I will upload this with specification and FAQ

nklime

nklime

2010-08-04 15:10

reporter   ~12549

set_answer_time:

This functions saves the answer time for question/group and whole survey.

  • [ It compares current time with the time in $_POST['_starttime'] ]
  • The times are saved in table: {prefix}{surveytable}_stats
    Other functions are commented in code.
    counters.zip is final version
c_schmitz

c_schmitz

2010-08-04 23:08

administrator   ~12557

Last edited: 2010-08-04 23:09

nklime, this looks alot better, thank you.
Ground works is all there now.
There are two things left to do:

  • Have a settings in the survey settings to switch this feature on/off - if off the timings table is removed, if on the table (and the table does not exist) it is created. You don't want to capture all data all the time.
  • The table name is somewhat unlucky - there are no 'stats' in the table but timings, so we should name it {prefix}{surveytable}_timings - it would be great if you can change that in your patch.
    The patch in the zip file was based on your own subversion repository - which does not really help us. It needs to be based on our svn repository ;).

Or you just attach the complete files but in that case we always have to know on which revision (or revision) your changes are based - just name the zip file with the revision number.

Thank you!

c_schmitz

c_schmitz

2010-08-11 11:21

administrator   ~12612

Any news on this? THe window for new features for 1.91 will close soon so now is the best time to contribute ;).

nklime

nklime

2010-08-18 22:34

reporter   ~12655

I upload three new functions:

  • corrects for counters
  • dynamic texts
  • filters of answers

In zip file there are also diff patch and english instruction of funtions and usage of them.
I put the same zip into three tickets

TMSWhite

TMSWhite

2012-01-20 18:13

reporter   ~16885

This works in 1.92 via the _timings table.

Issue History

Date Modified Username Field Change
2010-07-19 12:40 nklime New Issue
2010-07-19 13:00 nklime Note Added: 12459
2010-07-20 14:54 nklime Note Edited: 12459
2010-07-21 15:49 nklime File Added: tim_on_page.rar
2010-07-21 15:55 nklime Note Added: 12471
2010-07-21 15:55 nklime Issue Monitored: nklime
2010-07-21 15:56 nklime Issue End Monitor: nklime
2010-07-27 00:11 Mazi Note Added: 12491
2010-07-27 00:14 c_schmitz Note Added: 12492
2010-07-27 00:28 Mazi Status new => feedback
2010-07-30 14:11 nklime File Added: counters.zip
2010-07-30 14:13 nklime Note Added: 12517
2010-07-30 14:13 nklime Status feedback => new
2010-07-30 14:32 Mazi Note Added: 12518
2010-07-30 14:41 nklime Note Added: 12519
2010-08-04 15:10 nklime Note Added: 12549
2010-08-04 23:08 c_schmitz Note Added: 12557
2010-08-04 23:08 c_schmitz Assigned To => c_schmitz
2010-08-04 23:08 c_schmitz Status new => feedback
2010-08-04 23:09 c_schmitz Note Edited: 12557
2010-08-04 23:09 c_schmitz Note Edited: 12557
2010-08-04 23:09 c_schmitz File Deleted: tim_on_page.rar
2010-08-11 11:21 c_schmitz Note Added: 12612
2010-08-18 22:34 nklime File Added: nk_functions.zip
2010-08-18 22:34 nklime Note Added: 12655
2010-08-18 22:34 nklime Status feedback => assigned
2012-01-20 18:13 TMSWhite Note Added: 16885
2012-01-20 18:13 TMSWhite Status assigned => resolved
2012-01-20 18:13 TMSWhite Resolution open => fixed
2012-03-13 22:39 c_schmitz Status resolved => closed
2026-11-20 10:33 c_schmitz Category Statistics => (No Category)