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
32 stars 43 forks source link

Filters are not applied to messages within a course #223

Closed atrolex closed 2 years ago

atrolex commented 2 years ago

Hi again @michael-milette :)

I am trying to send message from a course to selected users: image

Email comes as: image

If a send a message via site administration / user / bulk user actions everything works fine.

michael-milette commented 2 years ago

Hi @atrolex ,

Unfortunately that is a limitation of Moodle, not FilterCodes.

FilterCodes is just a filter which gets applied in Moodle as long as Moodle passes content through the filters. In this case, unfortunately, it does not.

The only way to enable that functionality would be to develop a patch to the Moodle core code. Then, you will need to remember to re-apply the patch each time you update or upgrade Moodle.

You can develop the patch yourself or you can hire someone like me to do it for you. If you are interested in hiring me, please contact me through my website at https://www.tngconsulting.ca/contact to make arrangements.

Best regards,

Michael Milette

atrolex commented 2 years ago

Thank you @michael-milette ! we have solved it via a workaround. Now we do not need any variables.