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): 2421

Frankenstyle name: filter_filtercodes
Filters

Comments

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

Hello,
I’m really glad I came across this very interesting plugin. We needed to display the name of the group each student belongs to, and the {mygroups} tag worked perfectly for that.
However, I was wondering if it would be possible to create another tag, something like {mygroupsdescriptions}, which would display the description of the groups. I understand this might not be very ergonomic in cases where students belong to multiple groups, but in our situation each student only has one group. Such a feature would be extremely useful for us.
What do you think about this idea?
Thank you so much,
@John Nicholson - assuming that the teacher is marking the final completion, via the course completion mechanism, then there won't be an activity URL that you can use here.
But - what you could do, is make use of the Pulse plugin, https://moodle.org/plugins/mod_pulse - what you would do is add a pulse activity into the course, that has a restriction set so only available once the course is completed. You then use the URL of this pulse activity in your filter code. The pulse activity can be set to be 'availble but not visible' so the students don't actually have to see it, you are just using it as a way of turning some other activity (in this case course completion) into a trackable activity. I do this all the time for various reasons.
Very handy plugin Thank you for providing and maintaining it.
We have Course Completion enabled. After all the activities are completed, the teacher must also indicate final completion. I would like to use Filter Codes to display an alert to the student that the teacher has not yet indicated final completion. Assuming it must be something similar to the code below. But where can I find the id value for the teacher indication of completion?
Thanks, John
{ifnotactivitycompleted id}{/ifnotactivitycompleted} : Will only display the content if the activity module specified by the id (see the activity's URL id=value), has NOT been completed.
Hi Levgenil,
The answer is - it depends. The fact that you are seeing the tag instead of either nothing or some text tells me that the email plugin that you are using is not passing its output through Moodle filters using the format_string function. This would need to be fixed first.
Next, it depends on the context in which the email is being sent. If the plugin is being sent within a course, the tags should work. However, if it is being sent in a system context or by a scheduled task, you will see the site summary/description instead of the course summary.
Unfortunately, I cannot predict how it will work without diving into your plugin's code.
Best regards,
Michael Milette
Hi Douglas,
There isn't anything right now in FilterCodes that will enable you to achieve your goal. However, it is an interesting idea, especially the idea of having a list of courses in which you are a teacher. Please submit your feature request for further discussion at:
https://github.com/michael-milette/moodle-filter_filtercodes/issues
Best regards,
Michael Milette
Hi Michael. Congratulations on the plugin. It is really very useful. One question: is it possible to use them to create menus or pages for a user to see which courses they are enrolled in as a student and which ones they are enrolled in as a teacher?
Hi,
Good plugin. Can its variables be used in email templates?
For example, I want to customize the emails users receive after self-enrolment. The plugin is enabled. I've tried adding {coursesummary} at the courses Enrollment settings, and at Language Customization (core_enrol - customwelcomemessageplaceholder), but the variable is not substituted with value, instead it shows a variable name in an email body.
Thanks,
Genii
Hello Michael,
Actually I don‘t have a GitHub account.
We have courses for each student where he/she can find their own learning-portfolio with different content that are in different tiles. So a course for every single student is usefull.
For a mobile view we are looking for a possibility, that on the frontpage is a picture that is the same for all students but the link behind the picture will be individual.
It could look like:
ifuserid 13 - then the pic source, then the course link (for the student with the id 13) - then /ifuserid
ifuserid 14 - then the same pic source, then the course link for student 14 - then /ifuserid … and so on
And this will be created for every student - so that everybody gets the same view on the frontpage of his mobile view but will guide her/him to the own course.
In the desktop view we are working with the boost-union navigation.
If there is an other possibility to link courses on the frontpage with the filtercodes please let me know, but actually I don‘t know which one to take.
Best regards
Wolfgang
Hi Wolfgang,
There isnt an ifuserid tag yet. I am not sure what the usecase would be for something like that but if you have one, feel free to submit a feature request at https://github.com/michael-milette/moodle-filter_filtercodes/issues
Best regards,
Michael Milette
Hi Michael, we are using the filtercodes for different things on our moodle page. Especially on the frontpage, where we use f.e. {ifmobile}{/ifmobile}. There are different roles which can be used. But is there a code exisiting, that can visible content in relation to the user id? f.e. {ifuserid 254}content only visible for the user with the id 254{/ifuserid}?
Thanks for your advice and best regards!
Wolfgang
HI Mary,
There isn't a courseenrolmentenddate tag yet. However, please feel free to create a feature request by going to https://github.com/michael-milette/moodle-filter_filtercodes/issues
Best regards,
Michael
Hi Michael, I found the filtercode {courseenrolmentdate dateTimeFormat}. Is there also one to display the courseenrolment end date?
Best regards
Is it possible to add additional course fields under {coursecards}?
Thanks
Is it possible to add additional course fields under {coursecards}?
Thanks
@Dave Foord, thanks for giving me another option. I was testing enrolment duration https://moodle.org/plugins/block_enrol_duration, which isn’t bad. Filter codes are a huge help—I just wish enrolment duration was part of it. I really want control over the formatting, appearance, and wording.