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
30 stars 42 forks source link

Bug: ifingroup ID does not work #297

Closed olemde closed 2 months ago

olemde commented 2 months ago

Prerequisites

What happened?

Hi Michael. i can not make the {ifingroup ID} running and tried many options. Could you please check if it is working on moodle 4.3 or give me a hint. many thanks already for the plugin in general :-) br Ole

For this text only the third line is not working {coursename} {ifeditmode}EDITMODE !!!!{/ifeditmode}  {ifingroup 'US1'}USgruppe {/ifingroup 'US1'} {mygroups}: image

What do you think should have happened?

I expected a hint if i used the plugin not correct

Steps to reproduce

  1. Login as 'admin/trainer/student
  2. verified on two different moodle installation

Screenshots

No response

Moodle version

4.3

Installed Moodle UI Language packs.

If other language(s), please specify

No response

Workaround

No response

Additional information

No response

System information

Client Device type: (e.g. Desktop, iPhone or iPad, Android phone or tablet, Other - specify) Client Operating System: (e.g. Windows, Linux, Mac OS, Android, iOS, Other - specify) Client Web Browser: (e.g. Chrome, Edge, Firefox, Safari, Safe Exam Browser, Moodle Mobile App) Server Operating System: (e.g. Windows, Linux, Mac OS, Other - specify) Server Webserver: (e.g. Apache, Nginx, IIS, Other - specify) Server PHP: (e.g. 7.4, 8.0, 8.1, 8.2, 8.3, Other - specify)

Code of Conduct

michael-milette commented 2 months ago

Hi @olemde ,

Try this...

{ifingroup us1}USgruppe {/ifingroup}

No quotation marks and no name in the closing tag. The specified group name needs to be the group's shortname and be in lowercase (not sure if uppercase will work).

I am travelling today from Moodlemoot Canada 2024 so I can't test this for you at the moment.

Let me know how it works out. Hope you find this information helpful.

Best regards,

Michael Milette

olemde commented 2 months ago

Hello Michael.

hope you had a save trip home.Thank you for your fast reply. With your help i could manage it:

  1. the closing tag
  2. my selected group was hidden. I am not sure if this is somewhere described. may it could help others if so.

best regards

Ole Messing

michael-milette commented 2 months ago

Hi @olemde ,

Thanks for letting me know. Glad to hear that you got it working.

Please note that I edited your message. When you reply using email, it includes the original message as well as a link to unsubscribe. I suspect this was not your intention.

I am closing this ticket as it sounds like it has been resolved. Feel free to create another Issue if you have any further questions.

Best regards,

Michael