Course slider
Maintained by
Jez H, Kevin Moore, Manoj Solanki
A simple course slider block that displays a chosen list of courses in a carousel.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
From the 3.10 version you have to apply the above tweaks to make it work but there is an error, the function that replaces "course_in_list" is "core_course_list_element".
From the 3.10 version the course list block shows two block lines and a small css adaptation succeeds to hide one of them ( display:none for .courseslider-course). Some css adaptations need to be done so that everything continues to work fine. The authors should have a look at that question and update this module, that is our main argument to adopt adaptable theme.
1. block_course_slider.php
Remove line 32: require_once($CFG->libdir . '/coursecatlib.php');
2. renderer.php
Change line 177: Change "course_in_list" to "course_course_list_element"
Any way to do this as well on the dashboard page?
We'll think about a category
and can you add the ability to select a single category
Thanks
I installed this plugin and added this to the block regions area on my front page. When I was adding the course ID to the settings our courses have letters and numbers. Now I am getting a database error (see below) and I can no longer get to the home page. I turned off the blocks, I deleted the course, I tried uninstalling the plugin and nothing works! I am in desperate need of help with this. How do I get this off of my front page? Do I need to remove this from the database and if I do where do I go to do this? Please anything you know would really help.
Debug info: SQLState: 42000
Error Code: 8114
Message: [Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Error converting data type nvarchar to bigint.
SELECT * FROM mdl_course WHERE id = N'PG0205'
[array (
0 => 'PG0205',
)]
Error code: dmlreadexception
× Stack trace: •line 486 of \lib\dml\moodle_database.php: dml_read_exception thrown
•line 324 of \lib\dml\sqlsrv_native_moodle_database.php: call to moodle_database->query_end()
•line 431 of \lib\dml\sqlsrv_native_moodle_database.php: call to sqlsrv_native_moodle_database->query_end()
•line 896 of \lib\dml\sqlsrv_native_moodle_database.php: call to sqlsrv_native_moodle_database->do_query()
•line 972 of \lib\dml\sqlsrv_native_moodle_database.php: call to sqlsrv_native_moodle_database->get_recordset_sql()
•line 1387 of \lib\dml\moodle_database.php: call to sqlsrv_native_moodle_database->get_records_sql()
•line 1360 of \lib\dml\moodle_database.php: call to moodle_database->get_records_select()
•line 121 of \blocks\course_slider\block_course_slider.php: call to moodle_database->get_records_list()
•line 425 of \blocks\moodleblock.class.php: call to block_course_slider->specialization()
•line 1971 of \lib\blocklib.php: call to block_base->_load_instance()
•line 2332 of \lib\blocklib.php: call to block_instance()
•line 160 of \lib\classes\plugininfo\block.php: call to blocks_delete_instance()
•line 187 of \lib\adminlib.php: call to core\plugininfo\block->uninstall_cleanup()
•line 1440 of \lib\classes\plugin_manager.php: call to uninstall_plugin()
•line 98 of \admin\plugins.php: call to core_plugin_manager->uninstall_plugin()
× Output buffer:
block_course_slider