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
200 sites
29 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 Adrian Greeve
    Thu, 15 Jun 2017, 9:27 AM
    Hello Joseph,

    About being able to "cash in" your stash for "rewards", I have been working on this feature. It's currently being reviewed by Fred. It should be released very soon.
    Thank you for your feedback. Your comments help keep us motivated to work on this plugin in our spare time.
  • Picture of Frédéric Massart
    Thu, 15 Jun 2017, 10:55 AM
    Hi Joseph,

    To me understanding it already is possible to "tie Stash into Moodle's built-in conditionals". Have you had a look at Although, as Adrian mentioned, swapping items for other ones will be released soon, you can already limit the access to activities/sections based on student's collected items.
  • Picture of Joseph Liaw
    Mon, 19 Jun 2017, 11:19 AM
    Hi Fred & Adrian:

    Thank you for your hard work on Stash--can't wait until the swap feature is implemented, and I completely forgot about the availability plugin already made for Stash! I poked around and it is wonderful! Thank you for sharing your great work with the Moodle community!
  • Picture of Joseph Liaw
    Mon, 19 Jun 2017, 11:19 AM
    Hi Fred & Adrian:

    Thank you for your hard work on Stash--can't wait until the swap feature is implemented, and I completely forgot about the availability plugin already made for Stash! I poked around and it is wonderful! Thank you for sharing your great work with the Moodle community!
  • Picture of Stuart Jones
    Fri, 21 Jul 2017, 10:57 AM
    My "secret hope" is that the swap feature will be implemented before the start of the next school year :D
  • Picture of Adrian Greeve
    Thu, 27 Jul 2017, 1:02 PM
    Just an update. The main swap feature is complete, but the interface for creating these elements was not very intuitive. I've since gone and re-written this to make it more user friendly. I still have a few things that need to be completed. Hopefully I'll have this ready for the next school year. I'm not sure when that is. I trust that the new school year starts soon.
  • Picture of maude vuille
    Wed, 2 Aug 2017, 6:39 PM
    Hi there, the cp refused to upload the blocks_stash file with the following message: The file you uploaded,, contains a virus so the upload was canceled: Sanesecurity.Foxhole.Zip_fs186.UNOFFICIAL FOUND

    Thanks for any additional info. Haven't tried the filter or availability.
  • Picture of Adrian Greeve
    Fri, 4 Aug 2017, 10:49 AM
    Hello Maude Vuille,

    We take the security of our plugin very seriously and so would like to clear up any possible problem that has been found. Can you provide any information about the anti-virus software that you are running? The zip file is an upload of the file created by clicking the download link (and then renamed to follow plugin guidelines) provided by github. I think that it's extremely likely that the report is a false positive.
  • Picture of Adrian Greeve
    Wed, 9 Aug 2017, 2:02 PM
    New version just released! I will provide a video for the new changes soon.
  • Picture of Joseph Liaw
    Thu, 10 Aug 2017, 10:45 AM
    Hi Adrian:

    New version sounds exciting! I installed the upgraded block and filter, but then when I tried to load my course it wouldn't show up and I got an error: "This page isn’t working _____________ is currently unable to handle this request. HTTP ERROR 500". Any ideas on how to troubleshoot? I tried to turn on debugging but nothing loads and no other error messages show up.

    Thanks for your help and keep up the great work!
  • Picture of Adrian Greeve
    Thu, 10 Aug 2017, 10:57 AM
    Hi Joseph,

    That is disappointing to hear. Can you possibly tell me what version of Moodle and php you are using? I'll try and get it fixed today if possible.
  • Picture of Joseph Liaw
    Fri, 11 Aug 2017, 5:19 AM
    Hi Adrian:

    Thanks for your quick reply--talk about responsiveness!!

    Good news: your new update loads courses correctly now! Thank you!

    The Trading feature is GREAT!!!!

    Bad news: more weird bug--I can get the Stash snippet to show up when I am logged in as a teacher / admin, but when I login with a test STUDENT account the Stash does not show up!! I even forced running a cron job to see if that needed to be done to process the filter...

    This is unfortunate because then it defeats the whole purpose of using Stash!

    Any ideas?

    We are getting very close! Thanks Adrian!
  • Picture of Joseph Liaw
    Fri, 11 Aug 2017, 5:33 AM bad!!!!

    All is well--the Stash plugin and trading feature works PERFECTLY!

    I had forgotten I had set a test "Gold Coin" to only appear every hour, and once I went back and changed it then of course it showed up!!! This plugin is very cool for gamification and has a HUGE potential!

    Thank you Adrian and Frederic for your great work on this in time for a new school year!!
  • 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!
1 2 3 4
Please login to post comments