Adds a new item to the navigation block allowing you to create QR code that directly links to the page.
This is best used when enabling guest access to a course. After printing the QR code helper page that is generated, it allows anyone to use a smart-phone or other device to scan the QR code and gain direct access to a specified course.
Extract the plugin to /local/qrlinks
Run the Moodle upgrade.
In Administration > Course administration > Users > Enrolment methods
, first ensure that you have added guest access
as an enrolment method, and that it has its eye open.
In Administration > Course administration > Edit settings
, scroll to Guest access
Set the drop down to Yes
For more information about guest access, read the Moodle documentation for guess access.
If the current user has the local/qrlinks:manage
capability then a link in the navigation block will appear.
At any time you can click Create QR link
and it will take you to an editing form to create a QR link for that page.
The creation form is divided into two sections, public and private.
The public fields will be visible in the helper page, and the description field can contain html.
The private fields are used with the management page to identify the QR links internally.
In Administration > Site administration > Plugins > Local plugins > QR Links
you will see a list of all the QR links created.
You can manually create a new QR link via the Add new QR Link
button.
Each link has an options field where you can delete, preview or edit the link.
Scan the QR code and access the content.
Regarding the Create QR link/Edit QR link item in the global navigation, create intermediate page that if more than one QR link has been assigned to that URL.
qrlinks_edit, if editing the qr link, change submit button from Create QR link to Edit QR link.
Clean up unused cid/cmid that was not part of the implementation.
UI/UX layout update in index.php