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.

Brannon - please could you make sure you have the latest version of the code from Github - https://github.com/davosmith/moodle-navbuttons
If you have, could you copy & paste the line of code that is causing the error, as line 258 in my version couldn't possibly produce that error.
Love the navigation buttons. I'm running Moodle 2.4.2, tested in Moodle 2.4.1 and was having the same issue. Everything works fine until I add a custom image to any of the navigation buttons.
With debugging turned on, I am getting the following error (I am running php vs 5.3.3):
'Strict Standards: Only variables should be passed by reference in /home/leader/public_html/moodle/blocks/navbuttons/footer.php on line 258 Strict Standards: Only variables should be passed by reference in /home/leader/public_html/moodle/blocks/navbuttons/footer.php on line 258 Strict Standards: Only variables should be passed by reference in /home/leader/public_html/moodle/blocks/navbuttons/footer.php on line 258'
Any thoughts? Thanks.
Thanks for the quick reply. Works great now.
When you installed the plugin you should have been shown all the settings from 'Site admin > Plugins > Blocks > Navigation buttons' - if you selected 'Always show' for the quiz module at that point (the default action for all activities) then the navigation buttons will always be shown for quiz modules.
If you want to change the navigation button display settings for any activity type, then go to the global settings page listed above and change it.
I am having a problem where the Previous and Next buttons are showing up on Quizzes. Is this default behavior for this Block?
If so, is there a way to have them not appear on pages that are designed to not allow users to navigating around the site? Thanks.
Thanks, I see now what I have to do.
Paul - I suggest you look at altering the 'instance_create()' function in blocks/navbuttons/block_navbuttons.php
One of these days I'll find time to make a global settings page to set the defaults, but I've not done it so far.
Hi Davo.
The powers that be that I report to have asked me to change some of the default settings, so that when the block is installed in a course, it's already set up exactly as we would like. This has been generally achieved through changing defaults in db/install.xml, however one of the options (which we're using the 'extra1' option for) is a link to /my/, and although I can set 'extra1show' and 'extra1openin' values appropriately, I cannot set a default for the URL or the title (Moodle complains about not allowing defaults for those columns). Any idea how this might be accomplished?
What I could do for our situation is simply edit the defaults for those two columns directly in MySQL after the block has been installed, but this is a bit hacky and I would prefer not to do it like this. Any change we can make to our code, which is preserved in the repository, is preferable.
Thanks, and keep up the good work.
Paul. smile
Thanks Davo, I've confirmed now that the Settings is now accessible ;)
@German - I'm a bit mystified about this. The last couple of times I've updated this plugin, it's failed to pick up any of the automatic data from version.php, the README file or the English language strings (even though it works fine for all my other plugins).
I've opened a tracker issue to see if anyone can figure out what is going wrong - https://tracker.moodle.org/browse/MDLSITE-2072
Hi Davo,
I am afraid the navigation buttons plugin does not have the English strings available for translation in AMOS. Could you please check the code for a cause and/or ask David Mudrak about it?
Thanks in advance for your help.
@Rangga - that should now be fixed. Not sure why it was ever working in 2.3 (must have been a bug!), but should work fine in all versions now.
Ragga - the code for that part has not changed in the Moodle 2.4 and should be working exactly as before. If it isn't, then it is a bug that I need to investigate, when I am back at my computer again next week.
Nice block, been using it for the past 6 months. But since upgrading to Moodle 2.4, the Site Administration>Plugins>Blocks>Navigation Buttons link is missing. How do I manage the global setting for NavButtons now?
@Nicolas - that is a possible solution, however it is only relevant to sites using a custom theme (if they are using a core theme, it is still a core hack), needs doing for every theme used on the site (especially if you allow users to choose 'per course' or 'per user' themes) and, potentially, requires slightly different instructions for every theme edited.
Basically, if you know enough to have a custom theme on your site, you are probably capable of doing the necessary modification to make the navigation buttons work without further instructions. If you are not able to do this, then I've made the instructions as straightforward as they can be.