ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Resume Test Link


  • 2009-03-31 00:13:18

    Resume Test Link

    I am still new to ATutor but while using it i had anticipated that clicking the Resume link on a student's "My Start Page" would resume they last viewed page whether that be a content page or a test. As far as i can tell this is not the case. Is there a way to "hack" the code behind the Resume link to include resuming tests or perhaps add a "Resume Test" link?

  • 2009-03-31 09:09:56

    Re: Resume Test Link

    The Resume link does not include tests. It applies to content.

    It would probably be a little more than a hack to add it.

  • 2009-04-02 19:29:31

    Re: Resume Test Link

    Thank you for the response Greg. Could i perhaps create a module which basically uses the same code for the existing "Resume" link and just modify it from there? would it be a matter of just changing database tables or is it a little more complicated then that?

  • 2009-04-03 18:40:16

    Re: Resume Test Link

    Not a module, but you could probably do it with a patch. See the Admin Handbook pages on the Patcher. If its a good patch, we might add it to ATutor.

    No database change should be needed.

  • 2009-04-09 00:20:30

    Re: Resume Test Link

    Greg, I have tried searching through the countless number of files to try and find the one with the code for the "resume" link but was unable to find it. Is there a logical method for locating the in which a particular piece of code is written or could you please give me a hint as to which file contains it?

  • 2009-04-09 00:40:22

    Re: Resume Test Link

    Nevermind, after reading another post (http://www.atutor.ca/view/7/16147/1.html), i realised that all the html rendering was being handled by the files in the themes folder. Anyone else looking for the code for the resume link, it is located in ATutor/themes/default/users/index.tmpl.php

  • 2009-04-14 02:54:00

    Re: Resume Test Link

    I have had a few attempts at getting some code to do this but am unable to find the variable of the last viewed table id ($tid). This is what i have used so far;

    <a href="bounce.php?course=<?php echo $row['course_id'].SEP.'p='.urlencode('tools/take_test_q.php?tid='.$tid); ?>"><?php echo '(Resume Test)'; ?></a>

    I know that when you click "begin test" on the test_into.php page that it automatically resumes the test so i tried to use the code from that file but with no luck. I also looked into the "last_cid" variable but was unsuccessful as well. Does anyone have any suggestions?