Blocks: Sharing Cart

block_sharing_cart
Maintained by Picture of Don Hinkelman Don Hinkelman, Picture of VERSION2 INC VERSION2 INC
The Sharing Cart is a block that enables sharing of Moodle content (resources, activities) between multiple courses on your site. Sharing Cart 3.0 was submitted to Remote Learner for independent vetting and passed May 2016. Updated and tested OK for Moodle 3.3, 3.4 on 10 January 2018. Includes new 'Section Copy' feature and Postgres compatibility.
1627 sites
855 downloads
83 fans

*Tested OK for Moodle 3.4*  The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site. With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data--similar to the "Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators. Tested on Moodle 3.3, 3.4 and earlier versions. SC Version 3.3, release 3 fixes the version.php which incorrectly allowed Moodle 3.2 and lower users to install it.

Screenshots

Screenshot #0
Screenshot #1

Contributors

Picture of Don Hinkelman
Don Hinkelman (Lead maintainer)
Picture of VERSION2 INC
VERSION2 INC: Programming Team for Sharing Cart
Picture of Tomonori Maruyama
Tomonori Maruyama: Original author
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Andrew Walding
    Tue, 21 Nov 2017, 11:23 PM
    I use Adaptable and whenever I enable the Sharing Block I get the following errors on Moodle 3.3:
    pix_url is deprecated. Use image_url for images and pix_icon for icons.
    line 267 of /lib/outputrenderers.php: call to debugging()
    line 126 of /blocks/sharing_cart/block_sharing_cart.php: call to renderer_base->pix_url()
    line 110 of /blocks/sharing_cart/block_sharing_cart.php: call to block_sharing_cart->get_header()
    line 288 of /blocks/moodleblock.class.php: call to block_sharing_cart->get_content()
    line 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
    line 1197 of /lib/blocklib.php: call to block_base->get_content_for_output()
    line 1249 of /lib/blocklib.php: call to block_manager->create_block_contents()
    line 579 of /lib/outputrenderers.php: call to block_manager->ensure_content_created()
    line 177 of /theme/adaptable/layout/includes/header.php: call to core_renderer->standard_head_html()
    line 31 of /theme/adaptable/layout/course.php: call to require_once()
    line 1162 of /lib/outputrenderers.php: call to include()
    line 1092 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
    line 244 of /course/view.php: call to core_renderer->header()

    I checked with the Adaptable devlopers, and they say it is not the theme...help??
  • Picture of Regis Smith
    Thu, 23 Nov 2017, 5:41 PM
    Sharing Cart does not work at all on my Moodle 3.3 install with the default Boost theme. Nothing shows up in the Edit menus for activities. I also get errors in my Postgresql log related to Sharing Cart.
  • Picture of Don Hinkelman
    Wed, 13 Dec 2017, 8:42 PM
    Thanks for the feedback! We heard from Alex and Kathrin that the Sharing Cart does not work with Postgres and are fixing it now. We will also have a Sharing Cart 3.4 available in the next two weeks. As always, contact me directly with detailed error messages or descriptions of your environment.
  • Picture of Jürg Hoerner
    Mon, 15 Jan 2018, 5:21 PM
    Moodle 3.3 and postgres DB The following error
    Debug info: ERROR: syntax error at or near "'coursefullname'"
    LINE 3: `fullname` AS 'coursefullname'
    ^
    SELECT
    mdl_block_sharing_cart.*,
    `fullname` AS 'coursefullname'
    FROM mdl_block_sharing_cart
    LEFT JOIN mdl_course
    ON mdl_block_sharing_cart.`course` = mdl_course.`id`
    WHERE `userid` = $1
    [array (
    0 => '3',
    )]
    Error code: dmlreadexception
    Stack trace:
    line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
    line 242 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
    line 776 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
    line 71 of /blocks/sharing_cart/classes/controller.php: call to pgsql_native_moodle_database->get_records_sql()
    line 80 of /blocks/sharing_cart/block_sharing_cart.php: call to sharing_cart\controller->render_tree()
    line 288 of /blocks/moodleblock.class.php: call to block_sharing_cart->get_content()
    line 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
    line 1200 of /lib/blocklib.php: call to block_base->get_content_for_output()
    line 1252 of /lib/blocklib.php: call to block_manager->create_block_contents()
    line 579 of /lib/outputrenderers.php: call to block_manager->ensure_content_created()
    line 167 of /theme/adaptable/layout/includes/header.php: call to core_renderer->standard_head_html()
    line 30 of /theme/adaptable/layout/columns2.php: call to require_once()
    line 1162 of /lib/outputrenderers.php: call to include()
    line 1092 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
    line 244 of /course/view.php: call to core_renderer->header()
  • Picture of Don Hinkelman
    Mon, 15 Jan 2018, 11:57 PM
    Dear Jurg and other Sharing Cart users:
    Postgres compatibility is now fixed on the Sharing Cart 3.3, release 2. Now featuring whole Section Copy feature. Thanks very much to Alex Bias of Ulm University for design collaboration, user testing, and funding support.
  • Picture of Johnny Lo
    Thu, 18 Jan 2018, 2:15 AM
    Installed the previous release on Moodle 3.2.6+ with PHP 5.6.33 on IIS 7 which worked fine. However the latest release 3.2 breaks the page whenever user tries to turn edit on. When it happens, it is causing a PHP Fatal error: Call to undefined method theme_clean_core_renderer::image_url() in myMoodlePath\blocks\sharing_cart\block_sharing_cart.php on line 126. Switching to different themes only make it worse. Rollback to previous version failed so I had to disable it now. The download I got is said to be tested OK with 3.2, 3.3 and 3.4. Tried rolling back to PHP5.6.8, no help.
  • Picture of Meir Kirshner
    Thu, 18 Jan 2018, 1:30 PM
    using moodle 3.2.1+ , updating the block to version - 2017122000 cause editing error : "Exception - Call to undefined method theme_aardvark_core_renderer::image_url()" , Meir
  • Picture of Don Hinkelman
    Thu, 18 Jan 2018, 1:48 PM
    Thank you for your error reports, Johnny and Meir, and apologies for your trouble--we thought we had all problems solved. This is urgent, and we are working on it right now.
  • Picture of Don Hinkelman
    Thu, 18 Jan 2018, 5:20 PM
    Kathrin, our colleague at Ulm University, reports that Moodle 3.3 has some significant changes, so that the new Sharing Cart release should only apply to sites with Moodle 3.3 or above. For now, I will remove the notes that say this version has 3.1/3.2 compatibility, and later reupload the Sharing Cart 3.3, new release, with the version.php file adjusted to say only for Moodle 3.3+. Initial test show that this Sharing Cart is good for Moodle 3.4 as well.
  • Picture of Emil Due-Christensen
    Wed, 31 Jan 2018, 6:32 PM
    First of all: Thanks for a great and highly useful plugin we surely appreciate it.
    We have some problems when we try to copy H5P-activities to the sharing cart that it takes several minutes, often more than 5 minutes, for it to complete the copying. This is also an issue after the upgrade per January 10th. We use Moodle 3.3 with the Boost theme.
    Do you have suggestions to why that is?
    Thanks!
  • Picture of Don Hinkelman
    Thu, 1 Feb 2018, 8:05 AM
    Yes, Emil. This is most likely related to a long-standing issue with the Moodle core Question Bank. The whole question bank is copied whenever you include a quiz in a Moodle backup or in the Sharing Cart, which uses the core Moodle copy/import/backup system. Your workaround is to either tolerate the 5 minute wait, or make your Question Bank smaller by: a) not keeping the questions in System or high level categories, and b) only keeping the questions you need at the Course Level category. If this problem is new to you, it may be too difficult to manage, because you will have to read a lot about the Question Bank in the Moodle Docs. I also recommend you vote for these three issues: (if you vote, Moodle HQ might be encouraged to fix this problem).
    - MDL-12403: Minimize questions in Question Bank-original “Backup/Import of single quiz includes all questions in database” Bug—critical
    - MDL-41924: Minimize questions in Question Bank-new
    - MDL-19721: Put Sharing Cart into core.
  • Picture of Michael Gerszewski
    Thu, 15 Feb 2018, 11:36 PM
    I'm wondering what the timeline is on updating the Github source to the latest version? It looks like it is still at version 3.2 release 1, and we use Git as a source for all of our plugins when upgrading our multi-node cluster. Thanks for all of your work on this plugin!
  • Picture of Michelle Melton
    Mon, 12 Mar 2018, 10:08 PM
    Same comment as Michael Gerszewski about GitHub. Thanks!
  • Picture of Jay Nayagan
    Sat, 14 Apr 2018, 11:51 PM
    Which version can I use with Moodle 3.1?
  • Picture of Roman Galperin
    Sat, 28 Apr 2018, 11:19 PM
    Hi Don, if I understand correctly the latest version has the capability of copying a whole section into the cart at once , correct ?
    If so, I'm super excited about this development - been waiting for it!
    But, I'm using Moodle 3.1 and made quite a lot of customization to it, so it's not possible for me upgrade. Is there a way to upgrade sharing cart still? Or at least get the 'copy section' functionality into Moodle 3.1 ? It would be amazing!
    Thanks!
    Roman.
1 2 3 4 5 6
Please login to post comments