Progress Bar
Maintained by
Michael de Raadt
A time management tool for you and your students
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
else if ($reader instanceof logstore_legacy\log\store) {
$query = $module['actions']['viewed']['logstore_standard'];
to
else if ($reader instanceof logstore_legacy\log\store) {
$query = $module['actions']['viewed']['logstore_legacy'];
I have created a ticket in the tracker for this.
It appears the latest update (2015051200) on Moodle 2.7.3 breaks progress bar. It looks like you changed your log checks, so courses with the progress bar break, giving an "Error reading from database". Here is the more specific PHP error:
Notice: Undefined index: logstore_standard in /storage/www/mysats/blocks/progress/lib.php on line 812
Any ideas on how to fix it?
Mathieu
If you are able to add a new translation for the Progress Bar block, you can do so at https://lang.moodle.org/
Once a translation is written there, it is shared with all the community using your language who download the relevant language pack.
Michael
how to add new language?
https://tracker.moodle.org/browse/CONTRIB-5728
New version uploaded to GitHub and the Plugins directory. Get it while it's hot.
I haven't checked the plugin with Moodle 2.9 yet. I'll have to do that soon.
This is a great tool that I have been using for years. Just upgraded to Moodle 2.9 from 2.7.1 and for courses that include the progress bar I am getting the following error - Error reading from database. When I turn debugging on I get : Notice: Undefined variable: query in /home/xxxx/public_html/xxxx/blocks/progress/lib.php on line 811. When I view that file the line reads: $attempts[$uniqueid] = $DB->record_exists_sql($query, $parameters) ? true : false;
I'm using Moodle 2.9 (Build: 20150511) and PHP 5.6.3. Is it something to do with the Progress Bar block? The courses without it are working fine. I am reluctant to uninstall the Progress bar and lose all my history from the courses that use Progress bar. Do you know of any fix that avoids data loss and makes these courses accessible?
Unfortunately the Progress Bar block can only go where blocks can go. That is governed by the theme and how you set up a page.
The My home (now Dashboard) page can have blocks in the centre and I recall some theme having blocks at the top, but I can't give you more than that (except that it is possible).
Michael.
How can i change the block left/right into an content area? As i don't want to in the left or right pane view.i need in between these means at the top of the content area.
I think it might be possible if we avoid generating any overview stats on the My home (Dashboard) page. Perhaps you could create an improvement issue on tracker.moodle.org and we can discuss this further there.
Michael
Thanks for the prompt reply.
What I think, the overview for the teacher will always be seen as course level - in case there are 2 roles within the same course for the same user, the permission will be given on the higher role (For example, a student has role of student and teacher, the the view is provided as teacher). But in this case, I cannot think that a user would be assigned role both as teacher and student, in case within the same course, the quiz / assessment is provided with recommended answer, then the student role would have access to the answer of the assessment. (Unless grouping and access to resources conditioning have been used heavily).
I can see the problem with gathering abundant information will overload the system, but if the summary (percentage) calculation is the only info provided on the overview page, along with the link to direct the user to go to the details of the overview of the progress, will it work?
Just throwing some ideas that might be worthy to run brain storming?
Regards,
Riady Santoso
The Progress Bar does work with activity completion. Be sure that activity completion is enabled on your site and completion settings are set for the relevant activities, then you should see a completion option for activities shown in the Progress Bar.
Hi, Riady.
I can see where you're coming from. Feel free to post an improvement issue in the tracker for your idea. I will mention two potential barriers. One is that it is difficult to determine who is a teacher, particularly at a site level; it's possible at course level, but even there someone can be both a teacher and a student. Also, gathering overview information requires the generation of progress bars for all students in a course. Doing this for multiple courses would cause significant load on the system.
Michael