Giter Site home page Giter Site logo

academic-moodle-cooperation / moodle-mod_offlinequiz Goto Github PK

View Code? Open in Web Editor NEW
31.0 21.0 58.0 12.25 MB

The Offline Quiz activity allows the creation of multiple choice tests with questions from the question bank of a Moodle course, which are handed out to students in printed form. After completion, the answer forms are scanned and can be automatically evaluated online directly in Moodle.

Home Page: https://academic-moodle-cooperation.org/mod_offlinequiz/

License: GNU General Public License v3.0

PHP 93.88% JavaScript 1.26% CSS 2.76% TeX 0.40% HTML 0.12% Gherkin 0.80% Mustache 0.78%

moodle-mod_offlinequiz's Introduction

Offline Quiz

This file is part of the mod_offlinequiz plugin for Moodle - http://moodle.org/

Author: Thomas Wedekind, Juergen Zimmer, Richard Rode, Alexander Heher, Adrian Czermak

Copyright: Academic Moodle Cooperation

License: GNU GPL v3 or later

Description

The Offline Quiz activity allows the creation of multiple choice tests with questions from the question bank of a Moodle course, which are handed out to students in printed form. After completion, the answer forms are scanned and can be automatically evaluated online directly in Moodle. 

Usage

Teachers want to conduct the final examination of a course with several hundred students in a lecture hall. For this purpose, an offline quiz is created in a Moodle course and the quiz is filled with questions from the question bank. To make copying more difficult, the lecturers decide to create several groups in the offline quiz that contain different questions. The forms are then generated, downloaded and printed out.

Two forms are handed out to students during the exam: the questionnaire (contains the questions and answer options) and the corresponding answer sheet (form with boxes to tick the selected answers). After the exam, all answer sheets are scanned and uploaded in the offline quiz of the Moodle course for evaluation. Forms that could not be automatically evaluated by the system, e.g. because the ID number was incorrectly ticked or ticks or crossed out ticks are unclear, must be corrected by the teachers in the offline quiz.  Teachers can now allow students to view their exams online, where they can, for example, see the points they have achieved and check that their ticks have been recognized.

Note: The question types multiple choice, description and all-or-nothing multiple choice are currently supported. Questionnaires can be downloaded in PDF, DOCX or LaTeX format.

Requirements

  • You need to have imagemagick and the relating php module (http://pecl.php.net/package/imagick) installed. It is used for converting the uploaded answer sheets. If you have problems that not all pdf pages are recognized try to increase the memory limit of imagemagick which can be found in the policy.xml (in linux based systems in /etc/ImageMagick-${version}/policy.xml).

  • If you want to use LaTeX formulas in the questions it is necessary to have LaTeX installed. See https://www.latex-project.org/get/ for more information how to install it. You can set your latex path in the admin settings at: Website administration -> Plugins -> Filters -> Manage filters -> TeX Notation -> Settings. Everything should work if the "pathconvert" has a tick symbol.

  • The plugin uses a cron job for evaluating the answer forms. If you didn't configure the offline-quiz cron job, the automated analysis of answer forms is not going work! Information about how to configure cron jobs can be found at https://docs.moodle.org/en/Cron

  • The admin setting useridentification has to be set to a formula describing how the user IDs can be retrieved from the digits marked by the students on the answer forms. Details can be found at the admin settings description.

Installation

  • Copy the code directly to the mod/offlinequiz directory.

  • Log into Moodle as administrator.

  • Open the administration area (http://your-moodle-site/admin) to start the installation automatically.

Furthermore you can use the report Offline Quiz Cronjob Admin, which adds an interface to the Offline Quiz activity to inspect and change pending cronjobs. 

Privacy API

The plugin fully implements the Moodle Privacy API.

Documentation

You can find a documentation for the plugin on the AMC website.

Bug Reports / Support

We try our best to deliver bug-free plugins, but we cannot test the plugin for every platform, database, PHP and Moodle version. If you find any bug please report it on GitHub. Please provide a detailed bug description, including the plugin and Moodle version and, if applicable, a screenshot.

You may also file a request for enhancement on GitHub. If we consider the request generally useful and if it can be implemented with reasonable effort we might implement it in a future version.

You may also post general questions on the plugin on GitHub, but note that we do not have the resources to provide detailed support.

License

This plugin is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The plugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License with Moodle. If not, see http://www.gnu.org/licenses/.

Good luck and have fun!

moodle-mod_offlinequiz's People

Contributors

aczerzuh avatar ahruska avatar cmersinli avatar fwsl avatar geichelberger avatar germanvaleroelizondo avatar jakobunivie avatar jboulen avatar juacas avatar juzi avatar mhughes2k avatar micaherne avatar mkemmerling avatar mwreichel avatar phager-at avatar prigaux avatar stellargela avatar univietw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

moodle-mod_offlinequiz's Issues

Error "User not in course"

I am using Moodle version - 2017051503.06 and OfflineQuiz version 2017081102. Getting the error "user not found" when the answer sheet is uploaded though the user is present in the quiz. This is happening only for a few answer sheets uploaded but not all.

Custom profile fields as ID-Number

It would be a nice feature to use custom profile fields as ID source.
Updating the settingslib.php is simple

// Require more user functions
require_once($CFG->dirroot . '/user/profile/lib.php');
// ... Extend user object
profile_load_custom_fields($testuser); 
// ... Test for profile fields in if-clause and extend settings with a new field 'ID_profile' to indecate field location
    if (isset($testuser->{$field}) || (isset($testuser->profile) && isset($testuser->profile[$field]))) {
        set_config('ID_digits', $digits, 'offlinequiz');
        set_config('ID_prefix', $prefix, 'offlinequiz');
        set_config('ID_postfix', $postfix, 'offlinequiz');
        set_config('ID_field', $field, 'offlinequiz');
        set_config('ID_profile', isset($testuser->profile) && isset($testuser->profile[$field]), 'offlinequiz');
        return true;
}

Add new resolver function in locallib.php

function offlinequiz_get_userid($user, $ID_field = null)
{
    if (null === $ID_field) {
      $settings = get_config('offlinequiz');
      $ID_field = $settings['ID_field'];
    }

    if (isset($user->{$ID_field})) {
        return $user->{$ID_field};
    }

    // Load profile fields if missing
    if (!isset($user->profile)) {
        global $CFG;
        require_once($CFG->dirroot . '/user/profile/lib.php');
        profile_load_custom_fields($user); 
    }

    if (isset($user->profile[$ID_field])) {
      return $user->profile[$ID_field];
    }

    throw new \Exception('Offlinequiz: User ID-Field not found');
}

The more tricky part is to update all the DB statements. Have you ever thougt about this feature?

Missing version file

Warning: include(/warehouse/lampp/htdocs/moodle/mod/offlinequiz/report/regrade/version.php): failed to open stream: No such file or directory in /warehouse/lampp/htdocs/moodle/lib/classes/plugin_manager.php on line 294

Warning: include(): Failed opening '/warehouse/lampp/htdocs/moodle/mod/offlinequiz/report/regrade/version.php' for inclusion (include_path='/warehouse/lampp/htdocs/moodle/lib/zend:/warehouse/lampp/htdocs/moodle/lib/pear:.:/opt/lampp/lib/php') in /warehouse/lampp/htdocs/moodle/lib/classes/plugin_manager.php on line 294

Warning: include(/warehouse/lampp/htdocs/moodle/mod/offlinequiz/report/regrade/version.php): failed to open stream: No such file or directory in /warehouse/lampp/htdocs/moodle/lib/classes/component.php on line 1105

Warning: include(): Failed opening '/warehouse/lampp/htdocs/moodle/mod/offlinequiz/report/regrade/version.php' for inclusion (include_path='/warehouse/lampp/htdocs/moodle/lib/zend:/warehouse/lampp/htdocs/moodle/lib/pear:.:/opt/lampp/lib/php') in /warehouse/lampp/htdocs/moodle/lib/classes/component.php on line 1105

TeX issue

Hi,
I've got problem while creating pdf (and latex) question forms that contain latex code eg. $$\mathbf{x}^{i+1}=(0,1)$$. Everything looks fine in the Create forms Preview tab, but there is additional new line before and after each $$TeX$$ when pdf form is created. This may be because $$TeX$$ is the way moodle recognizes when to use TeX filter, but in latex $$ is a new line symbol.

Logo streching issue

Plugin settings page has info about the logo: The maximum allowed size is 520x140 pixels
Plugin stretches the logo to 520 if the width is less than that, eg. if the logo is 80x140, the it will be stretched to 520x910 and will overlap the ID Number section.

Error while uploading files

When we upload the answers form we getting this error "Notice: A non well formed numeric value encountered in \mod\offlinequiz\report\rimport\report.php on line 219

When uploading the list it occurs in
\mod\offlinequiz\participants.php on line 584
refer screenshot

image

moodle version - moodle 3.3.2+ ( 20170915)
offline quiz - version 2017081100
PHP 7.1
windows 2012, IIS 8.5

Error in scanning

If we upload the scanned copy of the answer paper to the Offline quiz,it gives an error while scanning and does not allow to regrade also. It is saying "Error writing to database"

Fatal error: Call to a member function is_extra_row() on a non-object in

Hello, I very want to use this mod for Moodle, but I can't.
When I install module, i can't to modify any questions. "Group Questions" doesn't work for me.

My moodle is 2.8.5.

Fatal error: Call to a member function is_extra_row() on a non-object in /var/www/webapps/moodle/question/classes/bank/view.php on line 191

I very want to find any solution for this error.

Verschiedene Fragetypen mit ETH-Plugin: kprime

Die ETH Zürich hat einen Fragetyp entwickelt, der die Multi-Choice Antworten (mehrere Antworten sind richtig) gültig auswertet.
All-or-nothing ist oft (zu) hart.
Es handelt sich um den Fragetyp: qtype_kprime
Mit diesem Fragetyp sind drei verschiedene Auswertungsvarianten (u.a. auch all-or-nothing) möglich.

Ich bitte Sie, diesen ETH-Fragetyp mit Ihrem Offline-Plugin zu unterstützen.
(Bieten Sie allenfalls eine detaillierte Anleitung an, wie man den Code verändern kann, um den ETH-Fragetyp einzubinden?)

Vielen Dank für Ihre Bemühungen und Ihre wertvolle Arbeit.
Stephan Romer

error creating forms after upgrading to v3.3.0

Just after upgrading to offline quiz v3.3.0 I get a database writing error. It seems that possible causes are either limited max exec packet size or db table format. I run moodle 3.3+ and I still have db tables in Antelope but till the plug in upgrade I did not experience any problem with offline quiz (v3.2.2
2017020202).

In Debug I get: Notice: Undefined index: id_digits in /var/www/vhosts/mysite/httpdocs/lib/dml/mysqli_native_moodle_database.php on line 1544

Hyphen (-) not recognized in idnumber

Hi,

My id numbers are made of letters, hyphen and numbres, for example apo-452187. When I try to change it in the params I get an error.

For example I try this : apo-[6]=idnumber and it's not working neither on the Moodle 3 or Moodle 2.9 version of the plugin. But it works for the Moodle 2.6

Do you have any idea what's going on ?

Thanks

Positions of the corner markings

Is it possible to change the default positions of the corner markings? I would really appreciate that you indicate me where I can make this change on the php files.

Due to different paper sizes; for instance, A4 vs US Letter, I think that many people would appreciate for you to consider the possibility to allow to set different paper sizes

Thanks
capture

English language strings

Hi,
Great plugin!
When I was translating it in AMOS I noticed some minor typos and some german words in the English strings.
I'd suggest to replace the current contents of some strings as follows:

$string['imagickwarning'] = 'Missing imagick: Ask your system administrator to install the image magick library and check the path to the convert binary in your TeX notation filter settings. You cannot import TIF files without image magick!';

$string['matrikel'] = 'student number';

$string['offlinequizwillopen'] = 'Offline-Test opens on {$a}';

$string['totalpointsx'] = 'Total of marks: {$a}';

And, in the 'Group Questions > Grades' tab page, could you please change the currently used [grade] variable (from Moodle core) to [markedoutof](from question.php), so that the page will have 'Marked out of' instead of 'Grade', and be more similar to the page of the Moodle core Quiz ?

I think that these changes will make your great plugin easier to use in English and easier to translate.

Thanks in advance for your help

German words in English language string

Hi,
When I was translating your offline quiz plugin in AMOS I noticed many German language words (eg, für) mixed with the English language words.

Can you please check questionsheetlatextemplate | offlinequiz and replace the german language words with English words, so that the many Moodle translators at AMOS can easily translate this great plugin into many languages?

Thanks in advance for your help.

wrong ms sql query

offlinequiz/report/statistics/report.php - 1034 string.

1,
COUNT(1) AS countrecs,
SUM(sumgrades) AS total
FROM mdl_offlinequiz_results offlinequiza 
WHERE offlinequiza.offlinequizid = '2' AND offlinequiza.status = N'complete' AND offlinequiza.sumgrades IS NOT NULL
GROUP BY 1

exception:
Each GROUP BY expression must contain at least one column that is not an outer reference.

No indication of difference between MC questions with one respectively multiple right answers.

Students need to know whether they can mark one answer only or several. In case of a MC question with one right answer only, the student answer become invalid if she/he marks an additional answer. This is not OK.

Moodle also distinguishes MC questions with one right answer from questions with multiple right answers. While MC with one right answer may result in negative points, MC with multiple answers cannot result in less than 0 points. Thus, students need to know whether they can mark just one or multiple answers.

In CBA this is usually indicated by using circles for one right answer and squares for multiple right answers. Maybe the same convention could be used on the question and answer sheets.

Add customization to user identification

We have a problem with the current version of Offline Quiz, that renders it unusable in our environment.

While we do have numeric identification for students at our school, the main mode of authentification are alphanumeric student IDs, which also serve as usernames for all our systems including Moodle, and are the only identification I can use inside Moodle.

The letters serve as identification for the study program, so they would always be the same for all users taking a specific exam, however, they would differ between exams if multiple departments are using the Offline Test plugin.

Would it be possible to make the User identification configuration on a per-activity basis instead of only configurable for the whole site by the admin? This way, I could give information to our teachers on how to configure the field for their respective exams, and we could use the plugin at our site.

Alternatively, would it be possible for us to configure the plugin to include certain letters in the matrix for the identification on the answer sheet?

answer forms pending evaluation

Congratulations for this excellent component! Its features seems to be very useful. Unfortunately I cannot proceed to automatic grading of answer forms. I upload the problem free but there is a message stating that the evaluation is pending. The cron job seems to be executed without problems. I run Moodle 3.1.2. I have experimented with Tif and PNG uploads. No success. Presence forms are uploaded and processed without problems.

There is no indication whether a MC-question is "one answer only" or "multiple answers allowed".

Moodle distinguishes MC questions with "one answer only" and "multiple answers allowed". If MC-questions are answered within a Moodle Quiz, Moodle doesn't allow to mark a second answer in a question of type "one answer only". Moodle quiz also generates text for each MC-question indicating whether it is a one or many question.

Unfortunately, this distinction isn't indicated on the question sheet in Offline Quiz. Of course, on paper one can mark any number of answers. However, there should be an indication whether one only or many answers should be marked, otherwise students in Offline Quiz have a big disadvantage compared to students taking a Moodle Quiz.

I reported this issue in #16 already and wonder why it became closed. The issue is still there.

Add new question don't work with my theme (fordson)

Hello,

When I'm on the interface for edit offline quiz and I want add a new question this option don't work with my theme (fordson). I have a error message "You must select a question type" but I can't select a question type.
I tried with other theme and it works.

Do you know where this problem can come from ?

Thanks,
Jonathan.

MCQ Breakdown

The plugin is excellent. I need to export in excel the breakdown of the results (i.e. a list with the answers of each candidate to each question). This is possible in online quiz and there is also a plugin but does not work with offline quiz. Any help would be strongly appreciated.

Offline quiz (2015060902) for Moodle 2.8 does not open question bank for adding questions

Hi,
I just downloaded your offline plugin (2015060902) for Moodle 2.8 in a clean Moodle 2.8.7 server and sadly, I can not add questions from the question bank when i click add ' from question bank' nothing happens.

offline quiz edit offline quiz

Adding n random questions and adding a new question both work OK.

The Moodle 2.7 version of this plugin works OK in a 2.7 server with the same question bank.

scan Answer sheet not working

I am trying to scan a answer sheet and I am getting the list of errors on server as this code is part of batch job process.

offlinequiz\report\rimport\scanner.php

global $CFG;

//if ($x >= imagesx($this->image) or $x >= imagesy($this->image)) { // point is out of range

if ($x > imagesx($this->image) or $x > imagesy($this->image)) { 
    return false; 
}
$rgb = imagecolorsforindex($this->image, imagecolorat($this->image, $x, $y));
$gray = $rgb['red'] + $rgb['green'] + $rgb['blue'];

if ($gray > $this->papergray) {
    return false;
} else {
    return true;
}

the error is in line:

$rgb = imagecolorsforindex($this->image, imagecolorat($this->image, $x, $y));
And error is:

Notice: imagecolorat(): 1520,-416 is out of bounds in C:\inetpub\wwwroot\elms\mo d\offlinequiz\report\rimport\scanner.php on line 1090

Notice: imagecolorat(): 1520,-415 is out of bounds in C:\inetpub\wwwroot\elms\mo d\offlinequiz\report\rimport\scanner.php on line 1090

Notice: imagecolorat(): 1520,-416 is out of bounds in C:\inetpub\wwwroot\elms\mo d\offlinequiz\report\rimport\scanner.php on line 1090

(Cont ....)

The initial check is not checking all conditions and is also wrong. When x,y are out of range the code should return false and not even try to call imagecolorat().

Quiz report similar to moodle core

Firstly, thank you to you and your team for the offline quiz plugin. It's really fantastic and so valuable.

I am wondering if it is possible to list/export a cohort with a breakdown of the marks allocated to each individual question. Like what you get on the standard moodle quiz report.

Willing to contribute to dev/support costs for this.

Missing display of points for each question item

Each questions within a quiz has assigned points. This is important information for students while taking the exam. However, Offline Quiz does not display the points for a question neither on the question nor on the answering sheet.

Cron + Latex

The plugin is awesome. I'm almost getting it to work swiftly (what is unfortunately that easy).
UBUNTU 16.04 + Apache2 + PHP7 + Moodle. 3.2.2 + Offline quiz 3.2.1 (from moodle.org) + Minor fix in styles.css

I still have the following problems:
1. Latex equations doesn't show in PDF. (apache log shows an error running dvips: "no such file") I'm using $$ delimiters and mathjax disabled and obviously it works file in screen preview mode.

Using texdebug the images are created in moodledata/temp/latex, offlineQuiz creates the images in moodledata/filter/tex. The pdf generated has black blobs instead of the equation but they are linked to the correct text output (texexp).

2. Importing the scanned images shows pending information forever. If I run moodle cron.php from the console the import succeds.

3. Opening the imported image for edition has no save button enabled, the operations works if I run moodlequiz cron from console)

My crontab is
*/1 * * * * /usr/bin/php /var/www/html/moodle/admin/cli/cron.php >/dev/null */10 * * * * DATE=date +%Y%m%d; /usr/bin/php /var/www/html/moodle/mod/offlinequiz/cron.php --cli=1 >> /var/log/moodle/cron-olq.log.$DATE 2>&1

I am almost certain this is not a bug issue, but some tricky configuration which a user would really like some help.

thanks.

Inline Answers

Hi,

would it be possible to provide a single pdf with inline answers? That's easier to handle for students and stuff but for sure more difficult to scan. However, do you think such an approach would be possible? Have you ever thought about this?

br

Harald

offlinequiz/cron.php is not running

Every time the the cron is showing the following error.

No log handling enabled - turning on stderr logging
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)

Cannot find module (SNMPv2-TM): At line 0 in (none)

what this is related to? Also on cron.php

the following if condition is not true any time so the function is not called any time.

list($options, $unrecognized) = cli_get_params(array('cli' => false), array('h' => 'help'));

if (array_key_exists('cli', $options) && $options['cli'])
{
echo date('Y-m-d-H:i') . ': ';
offlinequiz_evaluation_cron();
echo " done.\n";
die();

}

allow custom user profile fields for user identification

would it be possible, to allow custom user profile fields for user identification?

our main IDs are alphanumeric and thus not suited for this plugin. We added a secondary numerical identification as a custom user field to Moodle, however, if I want to configure our custom user field as user identification in the plugin settings, I get: "Invalid field of the user table used."

Export offlinequiz content equation

I'm using your plugin on a real website, when I download pdf form I got this "Image file: /home/kythiquo/moodledata/temp/offlinequiz/14787846252806_71853.gif not found! "
instead of my equation. When I run in localhost, It work! Please help me!

Multiple Quiz Sheets - not recognized.

Hi,
We use Moodle 3.0 and I've installed your plugin but it's impossible to use a Quiz with several pages. When I upload the zip file, only the first page is recognized. The remaining pages are considered as copies of the first. I think there is a problem with the barcode on the bottom right.
I've talked about this problem with a colleague from another university. They upgrade their Moodle installation from 2.7 to 2.9 and now they have the same problem.
If you could have a look please.
Best regards.

cron try to set non-existant field info

Cron.php attempt to set field info in table offlinequiz_queue, which field does not exist.

$DB->set_field('offlinequiz_queue', 'info', 'offlinequiz not found', array('id' => $job->id));

This line make the cron.php script failed and stop :

`PHP Notice: Undefined index: info in /var/www/moodle/lib/dml/mysqli_native_moodle_database.php on line 1457
Default exception handler: Erreur d'écriture vers la base de données Debug: Unknown column 'info' in 'field list'
UPDATE mdl_offlinequiz_queue SET info = ? WHERE id = ?
[array (
0 => 'offlinequiz not found',
1 => '10',
)]
Error code: dmlwriteexception

  • line 477 of /lib/dml/moodle_database.php: dml_write_exception thrown
  • line 1472 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 1749 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->set_field_select()
  • line 107 of /mod/offlinequiz/cron.php: call to moodle_database->set_field()
  • line 302 of /mod/offlinequiz/cron.php: call to offlinequiz_evaluation_cron()
    `

This problem can be reproduce by creating a quizz, importing response so that they are added to the queue with status "new", and deleting the quizz before the response are computed. Script will enter in first if condition :

if (!$offlinequiz = $DB->get_record('offlinequiz', array('id' => $job->offlinequizid)))

Falsche User in der "Potential Members"-Liste

Guten Tag Frau Karall

Ich bin ein Fan von Ihrem Moodle Offline Quiz und wir haben das Modul an unserer Hochschule installiert. Nun werden aber leider in der «Potential Members» Liste neben den in dem betreffenden Kurs eingeschriebenen Teilnehmenden auch User mit einer System-Rolle angezeigt:
participants list

Die im Attachment markierten User sind nicht in dem betreffenden Kurs eingeschrieben, haben bei uns aber eine System-Rolle (https://docs.moodle.org/30/en/Assign_roles#System_context). Aus meiner Sicht sollten diese User nicht in der «Potential Members» Liste gelistet werden. Lässt sich das allenfalls ändern? Vielen Dank für Ihre Hilfe und ein Feedback, falls dann eine geänderte Version zur Verfügung steht.

Mit Gruss, Frank Koch
~~
Prof. Frank Koch, Dozent für Wirtschaftsinformatik
HSR Hochschule für Technik Rapperswil (FHO)
Fon: +41 79 342 89 91, Web: http://www.hsr.ch

OfflineQuiz crashing theme

Hello All,

My setup is:
Moodle 3.2
Apache/2.4.18 (Ubuntu)
Versão do PHP: 7.0.15-0ubuntu0.16.04.4

As soon as I install offlinequiz plugin the theme crashes and I go back to 1990 web navigation. I tryed original Boost, Roshnilite, Rocket, crisp and waxed themes with the same result. The problem starts when I hit the install button in my moodle, when it comes back with sucess it also brings me these problems.

Is there a way to overcome this problem?

wrong encoding for scanned files

Scanned files with cyrillic names save with incorrect encoding on windows, resulting in garbage names that do not correspond to database entries.

Length of ID-number field

We are just starting to use this plugin. It is great. Congratulations!

We have an issue that we don't know how to deal with. Most of our users have 8-digit IDs in the Moodle user table. But some earlier ones have only 6 digits. If we set up the formula as a[8]=username, the 8-digit students are identified correctly but not the 6-digit ones (Error: User does not exist).

Is there a workaround or are will we need to normalise the length of our ID-Number field data?

Any help appreciated.

Problem at Question Bank Contens

Hallo
have tested the offlinequiz in moodle 2.7 and deteckted a problem.
The Question Bank Contens is not correctly displayed.
runns until ./editlib.php: print_qtype_to_add_option(question_bank::get_qtype('multichoice'));

found out, that the print_qtype_to_add_option() not exists any more.

Regards
Adolf Rieger

handle TIFF subfiles

If you upload a multi-pages TIFF, it will fail with error "tiffnotsupported".
This is because report/rimport/scanner.php uses "convert" to convert to png. For multi-pages TIFF, "convert" will generate "xxx-1.png", "xxx-2.png" and no "xxx.png".

Possible solution : handle multi-pages TIFF similar to ZIP

Cannot add questions under Boost theme (Offline Quiz 3.2.2 and Moodle 3.3)

Hello

After creating a new Offline Quiz I cannot add questions to the quiz under Boost theme. The questions bank doesn't open and the error "You must select a question type" pops up when I try to create a new questions. However, both functionalities become available again when switching to More theme.

I tested Offline Quiz 3.2.2 on Moodle 3.3 with Chrome and Edge. Since 3.2.2 was tested under Boost, I'm surprised about this observation. Do you have any idea?

Kind regards, Frank

Problem with tiff format

Hello,

We have successfully installed the mod on a Moodle 3.1 instance, on Debian Jessie, with PHP 5.6 and ImageMagick.

It works with PNG images, but not with TIFF image.
We have tried 24bits and 1bit (black and white) TIFF format.

It doesn't auto-correct, and when we click on "Correct", a pop-up opens, but in the left of the pop-up we have only a white panel with the icon of a broken file.

I can provide a screenshot or one of the TIFF images, if necessary.

Thank you.

Custom answers form

Hi,
I tried to customize answers form. I 'd like to display 100 questions per page with 4 choices (4 box).
I've edited pdflib.php on lines 853 & 854 like that :
$pdf->formtype = 5;
$pdf->colwidth = 7 * 5;

It's ok for the display when I print answers form but it doesn't work when I scan them.
Could you tell me what I need to change please?
Kind regards.
capture d ecran 2017-02-07 a 16 03 20

Questions assigned to Offline Quiz become "zombies" when course is deleted

There is a strange behaviour of Offline Quiz. I created a course and added questions to the questionbase. Next I assigned some of these questions to an Offline Quiz. With the deletion of the entire course questions become deleted as well, however, only the Offline Quiz assigned questions remain within Moodle. They show up in other courses of the same course category under "Questions saved from context Course: nameOfDeletedCourse". I tried to delete these questions manually but they just become greyed-out and keep on being visible and editable. In fact I cannot delete these questions at all.

I tried the same with an ordinary Moodle quiz. With the deletion of the course all quizzes and questions become deleted as well. I would expect the same from Offline Quiz, however, Offline Quiz doesn't seem to clean up the question base at time of deletion. Given the nature of exam questions this seems to be a severe security issue.

I'm working on Moodle 3.1.2. and hope that you can rebuilt this scenario.

Add enroll all users button

Hello,

It would be nice to have enroll all(users) button on the import page.
Currently teacher needs to open each scanned page and click on "Enrol user" button.

Cheers

display: questionpage 1\n

Moodle and plugin update to the latest version.

On create forms (tab preview) after reassortment questions - display questionpage 1\n between questions.

Error creating PDF forms, after upgrading from 2016072301

At Create forms / PDF forms I get this error message: "Error writing to database".

This is a new moodle installation (Moodle 3.3.1+ (Build: 20170810)) and the latest version of mod_offlinequiz (v3.3.0, 2017081100).

I have tried with previous versions of mod_offlinequiz, and PDF form generation works only with version 2016072301 (I have forced the installation of the old version with: moosh plugin-install -f mod_offlinequiz 2016072301)

With developer debug mode I get these error messages:

Notice: Undefined index: id_digits in /var/www/moodle/lib/dml/mysqli_native_moodle_database.php on line 1559
Debug info: Unknown column 'id_digits' in 'field list'
UPDATE mdl_offlinequiz SET id_digits = ? WHERE id = ?
[array (
0 => '7',
1 => '9',
)]
Error code: dmlwriteexception
Stack trace:
line 489 of /lib/dml/moodle_database.php: dml_write_exception thrown
line 1574 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1780 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->set_field_select()
line 416 of /mod/offlinequiz/createquiz.php: call to moodle_database->set_field()

I upgrade Moodle by first making a dump of the database, then installing the new version, then a restore of the database:

Then I run php admin/cli/upgrade.php --non-interactive:

Maybe this process fails to upgrade the DB structure correctly (hence the missing column)?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.