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.

Hi friends. I'm trying to use the filtercode to populate font-awesome icons. This, for example, will work: {fa fa-video-camera}
When I try to use this, however, it does not {fa fa-brands fa-discord}. Any suggestions on using the filtercode for font-awesome 6.0?
https://fontawesome.com/icons/discord?f=brands&s=solid
Thanks for the response Michael.
Thanks for the response Michael.
Hi Tom, there is no mustache template for this.
Hi everyone, if you use {coursecards} it displays a list of cards, does anybody know if there is a mustache template available somewhere? Thanks in advance. Tom
Hi Francesco, Unfortunately, Moodle does not have a place to store category icons. When I work with clients who really want a custom list of categories on the Home page, I usually end up creating custom HTML and css instead of using FilterCodes but then it becomes a manual process to keep it up to date which is not too much work if they don’t change very often.
If you are displaying the descriptions with the categories, you could embed an icon in the category description.
Hi Juan, would this create privacy issues for you? If not, please submit a feature request at https://github.com/michael-milette/moodle-filter_filtercodes/issues
Best regards,
Michael Milette
Hello there, amazing plug-in!
Is it possible to get in some way the list of students. Something like {coursecontacts} but populated with students in place of teachers.
Thx in advance
How can I use css fc-categorycards to display category icons?
thanks
Hi Tariq, you would need to modify the send message in bulk user actions in order to make it use the recipients info instead of your information.
You could also try alternative solutions such as Quickmail or an Announcements forum to see if they work any better for you. If you have PHP programming skills, you could clone the bulk user action and create a custom version that works the way you want it to.
Sorry that it isn't going to be as simple as you might have hoped but I hope you find something helpful in my suggestions. Feel free to DM me if you need to hire someone to do custom development for you.
Best regards,
Michael Milette
Hi Michael
I see in the code that $u = $USER (the logged in user) as below, so it will be replaced with the current logged in user's full name.
Are there any improvements you could think of to do to the plugin to accomodate for use in the messaging module. I think it would be anice addition to your already excellent plugin which I use a lot.
$u = $USER;
if (!isloggedin() || isguestuser()) {
$u->firstname = get_string('defaultfirstname', 'filter_filtercodes');
$u->lastname = get_string('defaultsurname', 'filter_filtercodes');
}
// Tag: {fullname}.
if (stripos($text, '{fullname}') !== false) {
$replace['/\{fullname\}/i'] = $u->fullname;
Thanks.
Kind Regards
Hi Michael
I am using Moodle's messaging module using "Bulk user actions" and then sending a message which then gets recieved as an email. For example I used the {fullname} and {username} filtercodes but when send, it gets recieved by the student with the System Administartor's (who sent the message) full name and username.
Any guidance would be appreciated. Am also trying to look at some of the plugin code to see if there is a fix I could suggest.
Thanks
Hi Tariq, how are you sending the email?
Hi Michael,
I'm using Moodle 4.1
I tried sending a message from the administrator to a user using the {fullname} and {username} filtercodes.
However, when I recieved the message it replaced the filtercodes with the sender (admin's) details, rather than the recipient's details. Am i doing somehting wrong?
Thanks. Kind Regards
Hi Tomas,
I only speak English and French, not Spanish, so I am not clear on your question/statement. Are you asking how to use the {coursecontacts} tag in a label? These are plain text tags. Just create a label and type it in.
Best regards,
Michael Milette