Blocks: Stash

Maintained by Picture of Adrian Greeve Adrian Greeve, Picture of Frédéric Massart Frédéric Massart
Add an inventory of items to your course and let your students find items by exploring the activities. #game #gamification
249 sites
35 fans

The stash block is a good way to encourage more interaction with activities and is invaluable for teachers looking to gamify their course.

This plugin introduces a block that shows students items that they have picked up through the course.

The teacher can create items and then place them in activities and resources for students to find.

Items can be set to be collected once and encourages exploration of the course material. It is also possible to set an item to have an unlimited supply from a set location. This could encourage  students to return to specific areas to collect more items. 

You can also check out this video:

Quick start

We've crafted a sample course for you to try, it is the best way to see what this plugin has to offer. Please accurately follow those steps:

1/ Get your hands on a Moodle installation (3.0 or newer preferred)
2/ Install the three following plugins (without exception)
3/ Enable the filter "Stash snippets" you just installed through "Site administration > Filters"
4/ Enable conditional access, named enableavailability under "Site administration > Advanced features"
5/ Restore this backup file as a new course

6/ Enrol a student in the new course
Now, login as that student and try the course

Important note

In order to make this plugin easier to use and fully featured, please also install:

They are highly recommended.


This plugin is part of sets Stash, Gamification.


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4
Screenshot #5
Screenshot #6


Picture of Adrian Greeve
Adrian Greeve (Lead maintainer)
Picture of Frédéric Massart
Frédéric Massart: (The real lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Joseph Liaw
    Sat, 19 Aug 2017, 6:58 AM
    Hi Adrian:

    Wanted to leave some positive feedback--thank you for replying so quickly to my private messages for squashing bugs....I wanted to report that with the latest Stash block, Stash snippet filter, and the Stash availability, everything works wonderful for gaming your courses!!! The Trade widget is brilliantly designed and simple to implement since it uses the same snippet filter and can be placed anywhere in your course!

    Great work Adrian and Frederic--thank you for sharing these tools to help teachers make their courses more engaging and fun for their students! Back to stashing Gold Coins and Keys in my classes!!
  • Picture of Frédéric Massart
    Sun, 20 Aug 2017, 11:57 AM
    Thanks Joseph, it's always nice to read that plugins are appreciated and inherently help in real-life situations! I'll have to admit that Adrian deserves all the credit for this last release, he's the one who invested hours of his time improving the plugin. Good job Adrian!
  • Picture of Serge Fleussu
    Thu, 24 Aug 2017, 4:05 PM
    Hi Adrian and Frederic,
    I would like to thank you first for this very great plugin.
    I encounter an error message (coming from outer space?) :

    Fatal error: Class '\availability_stash\condition' not found in /home/www/ on line 772

    Here are the conditions which lead to the problem :

    I have three separate instance of moodle 3.3.1+ (Build: 20170727), one for production (PROD), one for diffusion (DIFF) and one for development (DEV).
    I installed stash plugins (3 components : block 1.2.2-2017081000, snippets 1.1.1-2017080900, availability 1.1-2017081000 ) in DEV but not in PROD (we always test plugins in DEV for a few months and decide to install it or not in PROD).
    I backuped a module from PROD and restore it to DEV to make some tests (nothing linked to stash) : this module was never in 'contact' with stash because created in PROD.
    Restore was made OK but when entering the course, under the first section name, I got the error mentionned. Other modules worked great after the same restore process (in same conditions). I did not understand why I got a message related to stash in such a module.

    I investigated the problem and found that, by some bad manipulation I presume, the availabilty_stash plugin was deleted at an unknown date (marked 'not present' in plugin list). I reinstall it today and everything seems to be in order with the module.

    This was just to share a problem I can not explain.

    Thanks again for this plugin. Hope to see it 'customisable' (Having the possibility to change the name of the block for localised label in modules... and maybe the possibility to have items accross several modules and exchange between students. OK I stop my shopping list here wink .

  • Picture of Adrian Greeve
    Thu, 7 Sep 2017, 10:56 AM
    Hello Serge,

    Sorry about the late reply. I've been trying to replicate the issue that you have described, but so far I have had no luck. I did however find a bug in the restore of another plugin (block_xp, I highly recommend that plugin). If you come across any further problems then please feel free to tell us, though if you do can you please use the bug tracker url (

    I keep meaning to update stash to allow changing the name of the block. I'll try to get around to that in the next release. Your other ideas are interesting, though trading between students looks like a very big project. At the moment I am working on an atto plugin so that inserting the snippets is a lot easier.
  • Picture of Bas ten Velde
    Mon, 18 Sep 2017, 9:04 PM
    Thanks for all the effort, I really like this plugin and will use it in my educations.

    A nice addition would be to change the size of the dropped items. Right now I'm using coins which are displayed pretty large (50 px wide or so?). Changing the image resolution does not make a difference in how large they are displayed.

    Making them smaller and less vissible would enhance the search effort.
  • Picture of Joseph Liaw
    Tue, 10 Oct 2017, 5:52 AM
    Hi Adrian and Frederic:

    Just wanted to leave positive feedback that the new Stash Block, Stash Availability, and Stash snippet filter works together flawlessly and allows teachers to be quite creative with their courses (e.g. find 3 Gold Coins to trade in for a Gold Key which can than unlock an answer key or a new section of the course)....

    Quick question: I was trying to test out backing up and restoring my course between servers, and it didn't look like the Stash block supported that function yet....or I might be missing a setting...

    Any chance this is already implemented and I missed a checkbox, or can we request this as a future feature?

    Thanks for sharing all your great work with the Moodle community!
  • Picture of Frédéric Massart
    Tue, 10 Oct 2017, 12:05 PM
    Hi Joseph,

    Thanks for the kind messages.

    Backup should be working, we are distributing a backup of one of our demo course in the description of the plugin here above and it seemed to work whenever we tried to restore it in other sites. Note that you must have the same suite of plugins installed on the other sites.

    Could you describe a bit more what you are experiencing?
  • Picture of Joseph Liaw
    Wed, 11 Oct 2017, 9:08 AM
    Hi Frederic:

    Wow--thanks for your quick reply!

    I was testing out seeing if my course would restore to another server with all of my Stash items / swaps / snippets intact, and I double-checked that all 3 of the Stash plugins (block, availability, and snippet filter) were the same versions. However, after performing the restore, my Stash block shows up empty.

    This is a rather large course (over 270Mb) with over 20 Stash items and several trades, so it is pushing the limits!!! I will try again and restore only a small section of the course to a blank course to see if that makes a difference and report back....

    Thank you again for sharing your great work with the Moodle community--I don't think there is any other tool quite like Stash out there for gamification and it's adds some much needed fun to our courses!!!
  • Picture of Frédéric Massart
    Wed, 11 Oct 2017, 12:27 PM
    Hey Joseph. What happens when you restore the backup in the description of this plugin? I tried and it worked. Perhaps you could share your backup file with me at fred at branchup dot tech, and I'll see what happens.
  • Picture of Govind Soni
    Wed, 8 Nov 2017, 12:12 AM
    will it work with moodle mobile?
  • Picture of Joseph Liaw
    Wed, 8 Nov 2017, 10:21 AM
    Hi Frederic:

    Wanted to report that backup and restore worked perfectly on a Moodle 3.2 instance with 2 very large courses (over 250MB) with several hundred activities, many Stash objects, Trades, and conditional access to activities via the Stash availability plugin...AWESOME set of tools for gamification! Can't wait to see what kind of creative things people come up with the Stash set of tools!!
  • Picture of Joseph Liaw
    Thu, 30 Nov 2017, 10:18 PM
    Small bug report:

    Stash currently prevents the non-editing teacher role from working (they will get an error message and can not access your course). There are also small conflicts with the amazing Snap theme from Moodlerooms, but it is not a big deal (I think it is how Snap deals with blocks--menu navigation doesn't work but the breadcrumb trail does--not a big deal once you train teacher).

    Overall, Stash is the BEST plugin for gamification of your course because it is so brilliantly implemented to allow for teacher creativity with the Trade and Availability tools for conditional access! Thank you!
  • Picture of Carlos López Ardao
    Tue, 16 Jan 2018, 8:38 PM
    Fantastic plugin for gamification. Absolutely recommended!!!. It works fantastic in Moodle 3.4 with Adaptable Theme. The only problem is that non-editing teachers can not see the stash and all the elements that include stash snipets does not work (it appears a message error). Any solution or patch?
  • Picture of Carlos López Ardao
    Tue, 16 Jan 2018, 8:54 PM
    Problem solved. In order for a non-editing teacher to be able to view the inventory, you must access as Administrator and go to Site administration => Users => Permissions ==> Define roles. You must enable the 3 permissions related to the stash plugin (search for stash). Fantanstic plugin. Thanks
  • Picture of Frédéric Massart
    Wed, 17 Jan 2018, 5:16 AM
    Hi Carlos,

    Thanks for sharing your enthousiasm! I believe that Adrian and I already discussed the complexity for non-editing teachers to use the plugin. I'm confident that we will simplify this in a future release.

    Thanks for sharing your solution!
1 2 3 4
Please login to post comments