When you have to edit course activities in Moodle, you don't want to delete anything accidentally. However the dropdown menu can be confusing sometimes, especially if the developers change the order of the items and the 'Delete' button is not there where it used to be. And you just click on things by force of habit. Let's make it outstanding visually, so you won't miss it.
When a page is really long (for example, because of infinite scrolling), it becomes too tedious to scroll back up through screens and screens of content. Hence the role of the Back to Top button. It is not just very trendy, but also very useful and it is not implemented in Moodle by default (at least not yet, Moodle v3.8.2). You can see/use a similar one on this particular page, it is a yellow circle with a white arrow on the right.
Let's see how we can resolve that issue.
Update: it is a core functionality from v3.9, but not as pretty as my solution ;)
I am sure that I am not the only one who has deleted a user on Moodle by accident. You would think it is very unlikely, but I can assure you, it is not. Especially if you have to maintain a busy environment, lots of tasks and requests, please change this and please change that.
It is a little bit scary, especially if you don't have access to the database directly, you are only a site admin on the front end. As you might know, when you delete a user on the Site administration, you don't really delete the user from the database.
Sometimes it is confusing that the description of the activity is under the title/link on the course main page, and the same text is also visible when you open the activity.
On the course view and on the activity view page you might need a little bit different content. Or you would like to mimic the fancy Show more... or Read more... buttons on modern web pages.
The following solution will show the button on the course view page but not on the activity page, even if the description is visible on both views.
First, we have to add the JQuery code to the usual place:
Dashboard > Site administration > Appearance > Additional HTML
This trick might be useful when you need to add extra functionality to your Moodle site, but you don't want to modify the PHP code because
The course ID is in the BODY tag as a CLASS among other useful information about the course/page.
Filters can be used to create links automatically in your course content, which is a really great functionality, but too many links can distract the student or they can be annoying or confusing.
In the following example, I did't really create the links in the text editor, just let the system does its job.