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+)
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
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.
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.
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.
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.
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.
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.
I've opened a tracker issue to see if anyone can figure out what is going wrong - https://tracker.moodle.org/browse/MDLSITE-2072
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.
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.