FilterCodes icon

FilterCodes

Maintained by Michael Milette
Transform your Moodle site with the FilterCodes Plugin! Elevate engagement by inserting about 200 dynamic plain-text tags like {firstname} to create personalized learning experiences, customize your site and course content, display progress bars, simplify Contact Form customization effortlessly and much more. FilterCodes empowers educators to revolutionize Moodle into a dynamic, personalized platform. Join the community of FilterCodes enthusiasts to unlock the potential of your Moodle LMS site.
Price option: Free

Supports Moodle 2.7-5.2 See all versions
Latest release: 1 week ago
Installations: 7815
Downloads (last 90 days): 2567

Frankenstyle name: filter_filtercodes
Filters

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

@PE Teacher - I expect that Michael will respond with a better option, but you could add your own CSS to do this - the class you need is img.fc-qrcode - so you could add something like max-width: 250px !important; which would set the max width to 250 rather than the current 480, however this would change all QR codes across the site.
Hi! Is there any way to set the size of the Qr generated with {qrcode}? Default seems too big.
If there is no option, as an idea, it could be done {qrcode X}URL{/qrcode} where X is the pixels for each side.
Thanks in advance!
Thank you, Michael!
It works perfect now.
Hi Alex,
I just released version 2.4.2 which should address the issue you described when rendering course cards in Moodle 3.10 and earlier. If you have any other issues, please report them to https://github.com/michael-milette/moodle-filter_filtercodes/issues
Best regards,
Michael
Hi Alex, what version of PHP are you using?
Hi Michael.
Thank you for great plugin. But I have trouble with new 2.4.1.
When I add {coursecards}, {coursecards id} or {mycoursescards} on Page or frontpage i get this error: "Exception - Argument 1 passed to core_course_list_element::__construct() must be an instance of stdClass, instance of core_course_list_element given, called in [dirroot]/course/classes/external/course_summary_exporter.php on line 172"
(My Moodle ver.3.10.3 with FilterCodes 2.3.6 was OK. no errors)
Hi Bruno,
It really depends on what you are trying to do. FilterCodes is a Moodle filter. Content output by Moodle needs to go through the Output API in order for the content to the filter to be applied. It also depends on which tags you are using and in which context it is being displayed. For example, course related tags only work in courses. So, if you are trying to put the {courseid} tag in a course summary, it will work in the course but not in course listings which are outside the course.
I suggest that your next step be to ask your question in the community discussion/support forum and include specific details about what you are trying to do and which theme you are using:
https://moodle.org/mod/forum/discuss.php?d=359252
Best regards,
MIchael
hi Michael, I tested it, but it doesn't work. do I need to modify a parameter?
Hi Bruno, I have never tried it in Custom Parameters but I use tags all the time in activity names.
hi Michael,
Can we put the shortcode in the "Custom parameters" field of an activity or in the activity name ?
Thanks
hi Tom, No template is available as said, but; you can create individual CSS for it... (at least, that's what I did ;))
FilterCodes 2.4.0 has arrived with over a dozen new tags and many enhancements to help you personalize your learner's experience. It is also compatible with Moodle 4.3. Hope you find it useful.
Best wishes to you all!
Michael Milette
Absolutely. All of the available profile related FilterCodes are listed on this page in the Profile section. You can even create custom profile fields in Moodle and access them using FilterCodes tags.
Best regards,
Michael Milette
Hi,
is it possible to create shortcodes on the User profile fields
Thanks
Hi Nick, please submit a feature request or bug report at https://github.com/michael-milette/moodle-filter_filtercodes/issues as FilterCodes does not currently support the FontAwesome v6 format. Alternatively, you should be able to use the {fab fa-discord} alias as long as you are using Moodle 4.2 or 4.3.