-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Add option to specify maximum size of QR Code #291
Comments
Could it be important that Moodle 4.3 runs with php 8.2.7 and Moodle 4.1 runs with php 7.4.6? |
Hi @ralf-krause , Thank you for reporting this issue. It is unrelated to PHP 8.x. It was the result of a bug inadvertently introduced while I was optimizing FilterCodes performance for the release 2.4.3. If you would be so kind, I would be thankful if you could try the dev release 2.4.4 here on GitHub and let me know if that solves the problem for you. If it does, this fix will be included in the next release of FilterCodes. Best regards, Michael |
Hi Michael, yes, the new dev version works for my. I tested two different qr codes … the first one was the qr code for "Hello World!" and the second one was the qr code for a Moodle course link "https://mysite.org/course/view.php?id=45". Both escape tags are looking fine in Moodle 4.3.2+ (20240202). Best regards, |
I also tested the FilterCodes plugin 2.4.4dev with Moodle 4.4dev (20240202). The escape tag works fine. |
Thanks for the feedback @ralf-krause . Glad I was able to resolve the issue for you. Much appreciated. I will leave this issue open as a reminder to me for your request to have the option to specify a size. Best regards, Michael |
Prerequisites
What happened?
I wanted to show the FilterCodes for a QR-Code. The first line should show the FilterCode because I added the [brackets] around. The second line should show the QR code. The error is that both lines are showing the QR code and a documentation is not possible in Moodle 4.3. It works fine in Moodle 4.1.
[{qrcode}] https://mysite.org/course/view.php?id=45 [{/qrcode}]
{qrcode} https://mysite.org/course/view.php?id=45 {/qrcode}
What do you think should have happened?
The documentation says the following:
Creating FilterCodes Documentation
[{ }] : You can escape tags so they are not processed by adding [brackets] around the tag. Can be disabled in the plugin's settings if it causes you problems.
[%7B %7D] : You can escape %7Bencoded%7D tags too so they are not processed by adding [brackets] around them.
Steps to reproduce
X
Screenshots
No response
Moodle version
Moodle 4.3.2+ (20240202)
Installed Moodle UI Language packs.
If other language(s), please specify
de, de_kids
Workaround
No response
Additional information
No response
System information
ipadOS 17.3, Safari browser
Linux Debian 12 (Bookworm), Firefox browser 112
macOS 13.6, Safari browser, Chrome browser
Code of Conduct
The text was updated successfully, but these errors were encountered: