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.

Bonjour,
J'essaye d'utiliser la balise {ifactivitycompleted id}{/ifactivitycompleted} avec l'id 2740 de l'activité "page" mais cela ne fonctionne pas. Je voudrais afficher un message différents si l'activité 2740 est terminée. Je suis sous Moodle 3.11.6. Cela fonctionne dans une étiquette.
Merci pour votre aide.
I'm trying to use the {ifactivitycompleted id}{/ifactivitycompleted} tag with the id 2740 in a "page" activity but it does not work. I would like to display a different message if the 2740 activity is complete. I use Moodle 3.11.6. This works in a label.
Thanks for your help.
Cordialement,
Thierry VINCENT
Hi Juan,
Since the link works in other places on your Moodle site, I would say that you have determined that the problem is with the Game plugin. In order to get the issue resolved, you will need to report the issue to its developer using the Bug Tracker link on that plugin's page. Provide as much information as you can. It may be helpful to point them to the Moodle Output API documentation, specifically the format_text() and format_string() functions.
In order for FilterCodes tags to work, non-student generated output should always be processed through one of these two functions in order to process through any filters in Moodle. If you have any further questions, I invite you to ask it in the Discussion forum at https://moodle.org/mod/forum/discuss.php?d=359252
If the developer of the Game plugin does not want to fix it, I would be happy to offer my service to fix the problem. Just contact me through my website (the link is in my profile).
Best regards,
Michael Milette
Hi Michael,
The plugin is brillian, congratulations. I have installed the plugin, and it is enabled and set to "Content and Headings" in the Manage Filters page. I have used the code for "Back to course" in any activities and it works fine, but when I put the code in the mod_game (example: millionaire, crossword) in the description, header or foother, it does not direct me to the course page, instead it directs to a page that doesn´t exist with this error message "Not Found The requested URL /mod/game/{wwwroot}/course/view.php was not found on this server". Please can you help me?
Hi Aathithya,
In order to make FilterCodes work in in the custom menu, you will either need to patch the theme or Moodle. Instructions for patching most themes based on Boost since Moodle 3.2 can be found at:
https://github.com/michael-milette/moodle-filter_filtercodes/blob/master/README.md#for-themes-based-on-boost-moodle-32-and-later
To patch Moodle 3.8, use Git to cherry-pick the following patch:
https://github.com/michael-milette/moodle/tree/MDL-63219-M38
If you want to see support for filters like FilterCodes integrated into Moodle's custom menu, please show your support by voting for the following issue:
https://tracker.moodle.org/browse/MDL-63219
If you have any further questions, please join the conversation at https://moodle.org/mod/forum/discuss.php?d=359252
Best regards,
Michael
Hi, Thank you for this wonderful plugin.My moodle version is 8.3 and I am using adaptable theme v3.3. I have installed and enabled this plugin filer for content and heading. I tried to do custom menu {ifadmin}Menu Name{/ifadmin} .But this menu is displaying with tags and visible to everyone not only for admin.So my filter code is not working.Kindly help!
We just discovered that the Front Page setting for Max courses affects the max cards listed with {coursecards id} when it's used on the Dashboard.
Would anyone know a reason that {coursecards id} would only show 10 cards on one site, but more than that on another site? I have a site with 16 courses in a category but the filter is only listing the first 10, based on the sorting of the category. On another site with the same Moodle and plugin versions I get all of the courses in the category and its subs, even if it's more than 10 courses.
Hi Andrew, see answers to your questions at https://moodle.org/mod/forum/discuss.php?d=359252#p1730108
Hello - what a lovely plugin - thank you. I only have one query. I am trying to list course categories using {categorycards}. It seems to display ok but I cannot find a way of replacing the default image with another one. Any help would be appreciated (using the Trema theme). Also, can I list subcategories as cards? Thank you once again.
Andrew
Alexandre, please post your request in the issue tracker at https://github.com/michael-milette/moodle-filter_filtercodes/issues
Hi Peter, that is a very interesting idea. In fact, most of the code is already written for that. You could probably clone the {mycourses} tag and have it call the function that generates a card for each course. It is not clear to me how the multiblock plugin would fit in here. Please submit your suggestion to https://github.com/michael-milette/moodle-filter_filtercodes/issues for further discussion.
Looking forward to working in this with you.
Best regards,
Michael
Hi Michael, we are thinking of developing an additional code to show 'Enrolled courses' i.e. all courses a user is enrolled in. With that code in combination with block_multiblock we can built the custom dashboard the customer wants. Tab with the offering using {coursecards} and tab with {enrolledcourses} only showing enrolled courses. Would you be willing to integrate that code in the plugin after a code review from your side?

Thanks Michael. I installed plugin version 2.2.6 2021052506.
Unfortunately, {coursecontacts} has the same formatting as {courseteachers}. The line feed before each name and one blank line after each name. Here is a screenshot: https://www.screenpresso.com/=6Z6Qe
Is it possible to at least remove blank lines?
Best regards,
Alexandre
Hi Alexandre, the {courseteachers} tag was an ALPHA release feature. In the next release, the tag has been replaced by the {coursecontacts} tag. Besides a new name, it relies on Moodle settings to control which roles are included in the list and makes it possible to format the listing using css thanks to new classes. You can try it out by getting the version of the plugin on GitHub. Please leave your comments and suggestions either as new issues on GitHub or in the discussion forum - links available on the plugin's page.
Hope you find this helpful.
Best regards,
Michael
Hi Michael,
Unfortunately, {courseteachers} adds a line feed before each teacher's name and one blank line after each name. For me, this formatting is unacceptable. Is it possible to display the list of teachers on one line, separated by commas? Or at least remove blank lines between names?
Thanks!