michael-milette / moodle-filter_filtercodes

FilterCodes filter for Moodle enables content creators to easily customize and personalize course and site content using plain text tags (no HTML). For premium support, contact us at https://www.tngconsulting.ca/contact
https://moodle.org/plugins/filter_filtercodes
GNU General Public License v3.0
30 stars 42 forks source link

Feature request: Add option to specify maximum size of QR Code #291

Open ralf-krause opened 5 months ago

ralf-krause commented 5 months ago

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

ralf-krause commented 5 months ago

Could it be important that Moodle 4.3 runs with php 8.2.7 and Moodle 4.1 runs with php 7.4.6?

michael-milette commented 5 months ago

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

ralf-krause commented 5 months ago

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, Ralf

ralf-krause commented 5 months ago

I also tested the FilterCodes plugin 2.4.4dev with Moodle 4.4dev (20240202). The escape tag works fine.

michael-milette commented 5 months ago

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