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 44 forks source link

Feature Request: {coursecount students:active} #260

Closed brunohcury closed 1 year ago

brunohcury commented 1 year ago

Prerequisites

Feature Request - The User Story

Hello Michael! Can you tell me if the filter {coursecount students} can display only the active students of a course? Because I see that he is also bringing the suspended students. If it is possible to include one more filter {coursecount active students} that would be great. Thank you very much

Screenshots / Mock-ups

No response

Alterative you have considered

No response

Additional information

No response

Planning on submitting a solution in a pull request (PR)?

Yes

Code of Conduct

michael-milette commented 1 year ago

Hi @brunohcury ,

The {coursecount students} actually returns the total number of users with a student role in the course regardless of their status. That said, I understand your confusion and will be taking 2 actions:

1) I will update the documentation in README.md to better reflect what the tag actually does; and

2) I will look into creating a better tag to reflect your requirement.

The problem with using "active students" is that I was actually saving that one for another future purpose: students who are active in the course (i.e. started, active, but not finished).

Let me know if you have another suggestion for naming the tag.

Best regards,

Michael Milette

brunohcury commented 1 year ago

Hello Michael,

Thank you very much for the prompt response. So I suggest the following tag: {coursecount active students}

Thank you very much for being able to contribute to this fantastic plugin. Att. Bruno Cury

michael-milette commented 1 year ago

Hi @brunohcury ,

Thank you for the suggestion. I created a new {coursecount student:active} tag which is currently only available here on GitHub. The results will exclude students who have been suspended in the course. I would be thankful if you would be so kind as to try it out and let me know if it meets your requirements. If it does, it will be included in the next release of FilterCodes.

Best regards,

Michael

brunohcury commented 1 year ago

Hello Michael, Once again I want to thank you for your quick response. The new tag {coursecount students:active} worked really well, I was very happy with the quick solution. Thank you very much