Moodle plugins directory: Stash | Moodle.org
Stash
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:
2/ Install the three following plugins (without exception)
- This plugin (block_stash)
- The availability plugin (availability_stash)
- The filter plugin (filter_shortcodes)
4/ Restore this backup file as a new course
5/ Enrol a student in the new course
6/ 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:- The availability plugin (availability_stash)
- The filter plugin (filter_shortcodes)
- NEW! The tinyMCE plugin (tiny_stash) -- Greatly improves the experience of creating and inserting items and trades.
They are highly recommended.
Debug info: Unknown column 'i.amountlimit' in 'field list'
SELECT i.id AS itemid, i.stashid AS itemstashid, i.name AS itemname, i.maxnumber AS itemmaxnumber, i.detail AS itemdetail, i.detailformat AS itemdetailformat, i.amountlimit AS itemamountlimit, i.currentamount AS itemcurrentamount, i.timecreated AS itemtimecreated, i.timemodified AS itemtimemodified, ui.id AS useritemid, ui.itemid AS useritemitemid, ui.userid AS useritemuserid, ui.quantity AS useritemquantity, ui.timecreated AS useritemtimecreated, ui.timemodified AS useritemtimemodified
FROM mdl_block_stash_user_items ui
JOIN mdl_block_stash_items i
ON i.id = ui.itemid
WHERE ui.userid = ?
AND i.stashid = ? AND ui.quantity IS NOT NULL
[array (
0 => '49034',
1 => '30',
)]
The course is 100% inaccessible, with an "Error reading fro database" message". I'm running the latest Moodle v3.8.3+ and the latest (apparently?) version of Stash. Any assistance is appreciated.
Were you using version 1.3.1 or earlier before upgrading to 1.3.3? I suspect that after uploading stash to the latest version, that the site hasn't run the upgrade code and that is why you are seeing this error. Please log in as the administrator (or contact the administrator) and kick off the site upgrade.
Please let me know if that hasn't fixed your problem.
Your plugin is awesome, adds an interesting gamification to the courses, but now we have a problem, on a test course of our Moodle 3.8 platform. After a student pick-ups all the items, the items don't appear for other students and our admin account, only after change the config of limited item, then appear again.
The only thing that I can think of that would result in the above code not being changed is that the filter has been disabled. As an administrator go to Site administration > Plugins > Filters > Manage filters - and check that "Shortcodes" is active.
Can you also describe what a simple page is? Does it have an editor when you are adding text to it? Is block_stash working in other areas?
. I just copy and paste the code into the page. This is my first block_stash. :'(. The page is available when I mark a lesson as finished. So, it suppossed that student gets in and take the reward. That's all. Is the code right? I saw in the video other instructions in javascript.
Which theme are you using? If you are using Snap, because of the unique way it shows pages in-line, the Stash filter isn't active on the main course page. If you manually create a link to the page (e.g. "Enter HERE to pick up treasure!" and create a hyperlink to the page), then students can pick up the Stash item since the shortcode filter can parse the code.
Hope that helps.
Just a question : I saw a trade option ; I created a trade (a object for an other) but when I test it as a student I don't see where I can trade my objects ?
Regards,
Great plugin.
I set up one item to be picked up once (supplies:1) in one location. It appears when the condition is satisfied. But if the item isn't picked up or one day pass, it "disappears" or doesn't appear until I reset it--what I usually do is to set the interval to any time (10 minutes, 1 hour) and then save it.
The same thing happens if I have a scarce item to be picked once in different locations.
Thank you for any help.
I'm sorry to hear that you're having problems with items that have a limited supply. I haven't been able to replicate the problem. Are you running a standard install of Moodle or do you have some plugins / themes installed? If you list them then I could install them on my machine and see if they are some how interfering with the stash items. Any further information would be most useful.