drachels / moodle-mod_mootyper

4 stars 18 forks source link

Description is not showing #124

Closed thkwong closed 4 months ago

thkwong commented 4 months ago

Hello, we have started using the plugin and have noticed that the description we set in the activity is not displaying on the page. Could you please take a look and let us know if it's possible to show this description to students? Thank you!

image

drachels commented 4 months ago

It would help to know which version of MooTyper and which version of Moodle you are using.

Note that for current development I am using MooTyper v4.2.8 and Moodle v4.3.3+ (Build: 20240419) and the description does show up as expected, when I am in the activity and ready to type. Also, since your photo seems to show an audio recording media player, I can verify that also worked in my test when I am in the activity and ready to type. I note that the description with audio media player shows, and works, when I view the topic in the course page. description1

thkwong commented 4 months ago

Hello! Thanks for getting back to me! Our Moodle version is 3.11, do you think it's related to the issue we encountered? Thanks!

drachels commented 4 months ago

Yes, and you still did not say which version of MooTyper you are using.

I can say that with Moodle v3.11 and MooTyper v4.2.8 that the description will show up in the course topic, but you will not see it when in the MooTyper activity.

I seem to remember at one time making a change so that the description would show in both places, but Moodle HQ made further changes in the later version of Moodle 3.11 that changed the behavior. At the time I just decided it was not worth my time to keep going back to old versions and fixing things like this. So, I will probably quit listing MooTyper as compatible with Moodle 3.11.

For the life of me, I cannot understand why people will go years without updating their Moodle which makes them miss out on so many new capabilities. But, if you must keep what you have, you will need to add the three lines of code shown in the following picture, into the MooTyper view.php file. description2tomakev428showdiscriptioninm311

thkwong commented 4 months ago

Hello,

We have updated the provided code to our system and it's not working for Moodle 3.11. We've tested the plugin in the latest vers and it's working fine there. Thanks!

drachels commented 4 months ago

Thanks for the information.