Navigation buttons icon

Navigation buttons

Maintained by Davo Smith
Add customisable navigation buttons (next/prev/etc.) to the bottom of each activity page (Moodle 1.9/2.0+)
Price option: Free

Supports Moodle 1.9-5.2 See all versions
Latest release: 3 months ago
Installations: 850
Downloads (last 90 days): 348

Frankenstyle name: block_navbuttons
Blocks

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

Hi, as I write the latest available version appears to be an empty zip file.
Not sure what has happened - I've pulled the code in as usual from github. You can still download it yourself directly via the 'source control url' link. I'll try importing it again.
Hi,
I am unable install/download latest version 2.2+ (Build: 2017051200) for moodle 3.2.3. .zip contains another zip, and that contain 1st zip. Please fix this issue.
Hi Davo,
I have been trying to install the navigator plugin in moodle 3.1, but when I tried to install this, the activity_modules and activity_results is missing in disk. And the plugin don't installed.
Check this error message:
The plugin "block_activity_results" is mistakenly installed in "$CFG->dirroot/blocks/navbuttons", The correct location is "$CFG->dirroot/blocks/activity_results"
Debug info:
Error code: detectedmisplacedplugin
Stack trace:
line 812 of /lib/upgradelib.php: plugin_misplaced_exception thrown
line 429 of /lib/upgradelib.php: call to upgrade_plugins_blocks()
line 1641 of /lib/upgradelib.php: call to upgrade_plugins()
line 677 of /admin/index.php: call to upgrade_noncore()
Can you help me about this problem?
Thank you!
Regards.
Sarah - there's certainly not any built-in functionality to do what you are asking. The option to disable the next button if the next activity is unavailable might be possible to implement (but it would need to be an option, as other sites might use availability settings to provide different students with different resources - so having the navigation stop just because the next activity is unavailable would be undesirable).
For the other part, making the next button detect that the next activity was not available, the only way I can think of working that would be to have each of the buttons call a special re-routing script that would take the current activity and then work out the next activity to go to at the point where the button was clicked - but that would have the problem that I wouldn't ever be able to remove the next / previous buttons when I didn't think there was a next / previous activity to go to.
Anyway, either of these will require extra development, something I'm can discuss if you have a budget for me to undertake during my day job, but which is unlikely to be done in my spare time.
Is there a way to get the button to update when a requirement has been met? Currently we have modules that are not accessible until the student has passed a quiz on the previous module.
The student enters a module. The next button does not point to the next module since they don't yet have access to it. Instead the next button skips the module. (We'd ideally like an option to just gray out the next button so that the student knows that they need to accomplish something before moving on).
Once the student has passed the quiz in the scorm module, we would ideally like the button to update. Now the student has met the requirements for the next module, but the 'next' button still skips the next module since it was created when the module was not available.
Are there any settings that fix this that I'm missing?
Hi Ishani,
I've not re-checked recently, but I am not aware of any hook that would avoid the core change (otherwise I would have used it, instead of the core change).
If you have a custom theme, you could make a change there, instead of in outputrenderers.php
Hi Davo,
Thanks for the plugin, it works brilliantly on 3.1. Haven't tried on 3.2 but should work hopefully.
Just a thing I was wondering, is there any way the core code change for outputrenderes.php could be hooked as part of a plugin instead of doing it post installation?
(This is just to make it upgrade-safe and avoid doing code change for every install we do)
Let me know, thanks!
Thanks for the quick response @Davo Smith, appreciate it.
I will give it a go and see how it turns out. All we need is for students to scroll through activities using "Prev/Next" links from within the activity and not go to the Course front page every now and then to move to the next activity.
Ishani, I'm not aware of any problems with running this plugin on Moodle 3.2 (although I've not tested it with that version). It certainly works with 3.0 & 3.1 (as indicated at the top of this page).
This block only works on a per-course level, in theory it would not be that hard to extend it to work across the entire site, but I've never sat down and rewritten the code to work that way.
Davo
Hi Dave,
Firstly good job on the plugin.
We have various Moodle installs, all v3+ (3.0, 3.2, etc). Would your this plugin work for these versions?
If it will work for v3+, then in order to have previous/next buttons across activities of all course, would we need to the block for each course/activity or is there a setting that could be configured for all activities across all courses?
Your earliest response is greatly appreciated.
Thanks!
I have successfully installed the plugins and everything works just fine. I have replaced the default icons with my own but there is a blue colored background behind them and I would like to remove it. Do you have any ideas about how I could do that?
Davo, as people have mentioned this working with Moodle 3.0, can you as well update the plug-in showing Moodle 3.0+ supported?
There are no database files affected by this plugin, as the database does not have any files in it.
The table the plugin stores its data is defined here: https://github.com/davosmith/moodle-navbuttons/blob/master/db/install.xml
Hi anyone knows Which database files will get affect with this plugin?