+ Post New Thread
Results 1 to 3 of 3
Virtual Learning Platforms Thread, Moodle: programming help needed in Technical; Hi all! I only registered here a couple of days ago, after using the help on this forum silently for ...
  1. #1

    Join Date
    May 2011
    Location
    Brussels
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Moodle: programming help needed

    Hi all!

    I only registered here a couple of days ago, after using the help on this forum silently for a while . I'm fairly new to Moodle, and to php, which is of course the ideal combination for some foolish bravery. The project that I'm working on does language teaching in a hospital environment, and to cut the story short, our trainers need an adaptive test to check new students' language level.

    I knew about the 'random question type' in Moodle, and figured it shouldn't be hard to condition the rendering of questions in that qtype so it could become an adaptive qtype. So, this is what I want the qtype to do:
    Given that I have a category in the question bank with 3 subcategories, named "1", "2", and "3": The first questions should be rendered from subcat 1. If the student answers correctly, the questionid is stored in an array ($arrgood). If the student's answer is wrong, the questionid is stored in another array ($arrbad). If $arrgood has 3, or a multiplication of 3, entries, the next question is rendered from the subcategory one higher than the current one. Similarly, if $arrbad has 3, or a multiplication of 3, entries, the next question is rendered from the subcategory one lower than the current one. In all other cases, questions from the same subcategory are rendered.

    Unfortunately, I'm stuck already in the get_usable_questions function (I am altering the random qtype), where I want to select the appropriate subcategory. I added my questiontype.php (as a txtfile) to this thread, so if anyone would want to take a look at it, and give me some hints, I would be very grateful. Of course, you'll need to forgive me my noobishness as well

    Thanks in advance!
    Fleur
    Attached Files Attached Files

  2. #2

    Join Date
    Dec 2007
    Location
    Preston
    Posts
    362
    Thank Post
    14
    Thanked 84 Times in 77 Posts
    Rep Power
    30

    moodle.org

    Hi there and welcome. Sorry I am not a coder so I can't help with your question but have you asked (and apologies if you have) on the quiz forum of Moodle.org: open-source community-based tools for learning It is here Quiz module
    The main quiz man , Tim Hunt, is on there even more often than I am and so with luck you should get some pointers.

  3. #3

    Join Date
    May 2011
    Location
    Brussels
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Hi there, and thanks for your reply!

    I will try immediately and post my question there as well, see where we get.

SHARE:
+ Post New Thread

Similar Threads

  1. Moodle died - help with PHP/MYSQL needed
    By mattjporter in forum Coding
    Replies: 16
    Last Post: 17th May 2011, 11:53 AM
  2. Sharepoint / Moodle advice needed
    By pooley in forum Virtual Learning Platforms
    Replies: 12
    Last Post: 2nd March 2010, 08:11 PM
  3. Moodle Ldap help needed
    By pooley in forum Virtual Learning Platforms
    Replies: 7
    Last Post: 20th January 2010, 04:38 PM
  4. Moodle - overview needed
    By Simcfc73 in forum Virtual Learning Platforms
    Replies: 6
    Last Post: 26th November 2008, 11:33 AM
  5. Moodle Designer Needed...
    By Antp in forum Web Development
    Replies: 4
    Last Post: 24th November 2008, 08:20 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •