Moodle plugins directory: Trail format | Moodle.org
Trail format
Trail Course Format
Trail format was developed based on the Grid format plugin. He distributes the grids on a trail. Some features were designed to meet some aspects of gamification, being able to change the background style and transparency for grids. In addition to having the responsibility for mobile equipment.
Required version of Moodle
This version works with Moodle 3.8 version 2019111704 (Build: 2019111704) and above within the 3.8 branch until the next release.
Please ensure that your hardware and software complies with 'Requirements' in 'Installing Moodle' on 'docs.moodle.org/38/en/Installing_Moodle'.
Free Software
The Trail format is 'free' software under the terms of the GNU GPLv3 License, please see 'COPYING.txt'.
You have all the rights granted to you by the GPLv3 license. If you are unsure about anything, then the FAQ - http://www.gnu.org/licenses/gpl-faq.html - is a good place to look.
All images used in the plugin are under the Creative Commons license.
If you reuse any of the code then I kindly ask that you make reference to the format.
Installation
- Ensure you have the version of Moodle as stated above in 'Required version of Moodle'. This is essential as the format relies on underlying core code that is out of my control.
- Put Moodle in 'Maintenance Mode' (docs.moodle.org/en/admin/setting/maintenancemode) so that there are no users using it bar you as the administrator - if you have not already done so.
- Copy 'trail' to '/course/format/' if you have not already done so.
- Go back in as an administrator and follow standard the 'plugin' update notification. If needed, go to 'Site administration' -> 'Notifications' if this does not happen.
- Put Moodle out of Maintenance Mode.
- You may need to check that the permissions within the 'trail' folder are 755 for folders and 644 for files.
Uninstallation
- Put Moodle in 'Maintenance Mode' so that there are no users using it bar you as the administrator.
- It is recommended but not essential to change all of the courses that use the format to another. If this is not done Moodle will pick the last format in your list of formats to use but display in 'Edit settings' of the course the first format in the list. You can then set the desired format.
- In '/course/format/' remove the folder 'trail'.
- In the database, remove the row with the 'plugin' of 'format_trail' and 'name' of 'version' in the 'config_plugins' table and drop the 'format_trail_icon' and 'format_trail_summary' tables.
- Put Moodle out of Maintenance Mode.
By default the sections come without an image, you need to activate editing and click on the "Change image" option to send the desired image.
Você tem planos de inserir a opção para mostrar um tópico por página?
Parabéns pelo projeto.
Grato.
We have recently upgraded to 4.x but get an error when using PHP 8 (similar to that in your 3.x branch):
Exception - imagejpeg() expects at most 3 arguments, 4 given
Is there an easy fix for this?
Many thanks
Moodle Core supports PHP 8.0 - but not all plugins work with PHP 8.
You should use PHP 7.4!
Regards
Jean-Pierre
Hi, thanks for this however PHP 7.4 is no longer in support. In fact 8.0 only has security updates until November this year!
https://www.php.net/supported-versions.php
We shouldn't really be running versions that no longer receive security updates.
I have added code that passes one less param for imagejpeg() as a temporary fix. There are other issues I suspect when you check the warnings so possible issues when we move to 8.1 and above later this year.
Are there any plans to tweak this great plugin or shall I continue to patch?
Best regards
Ritchie
1. ¿Cuando sale la version para moodle 4.1?
2. ¿ Es posible personalizar las rutas (los fondos), y si se puede ¿Cómo se hace?, Mucahs gracias
I'm on Moodle 4.2.1+ and PHP8.1.
Same problem with the message "Exception - imagejpeg() expects at most 3 arguments, 4 given".
As a workaround, I have replace de line 2851 of the file /course/format/trail/lib.php
Old line : if (!$imagefnc($finalimage, null, $quality, $filters)) {
New line : if (!$imagefnc($finalimage, null, $quality/*, $filters*/)) {
It would be great if the whole plugin could be corrected to be php 8.1 compatible.
Thanks a lot,
Steve.
Como faço pro vídeo parar de ser executado após fechar o popup?
Desde já agradeço qualquer ajuda!
Thanks for the great plugin. I'm having a hard time. I placed a label with YouTube video within a section. When I click the X to close the popup, the video continues playing. It is noticeable through the audio.
How do I stop the video from playing after closing the popup?
Thanks in advance for your help!
Versão do Moodle 4.2
Att,
Leles