Moodle Plugins directory: Slideshow | Moodle.org

Slideshow
This is a new block which creates a slideshow in the header of a site or course page. It uses jquery/cycle to handle the image transitions. Jquery is also used to manipulate the DOM to reposition the block's node into the heading div of the page.
Since this is dependent on using moodle's built in jquery functions, it is not available for versions prior to 2.5.
It works with all core Moodle Themes except "Clean" due to an issue with the theme's ability to load Jquery correctly (MDL-41516)
Update: This block will work with the Clean theme on Moodle version 2.5.2 where MDL-41516 has been fixed.
Tested with:
- Afterburner
- Anomaly
- Arialist
- Binarius
- Boxxie
- Brick
- Formal White
- FormFactor
- Fusion
- Leatherbound
- Magazine
- Nimble
- Nonzero
- Overlay
- Serenity
- Sky High
- Splash
- Standard
(it may work with some third party themes, but most likely not with any bootstrap based theme due to MDL-41516. If you have a third party theme and it doesn't work, send me a link to your site and I will update the code.)
Installation:
Download, extract, and upload the "Slideshow" folder into moodle/blocks
Global Configuration:
- Set maximum number of slides in a slideshow
- Set maximum file size of slides
Instance Configuration:
- Title - Set title of slideshow (leave blank to hide block's heading)
- Height - Sets height of slideshow and images **NOTE** this block will not rescale image files, it will only change the display size
- Transition - Choose from various slide transitions (some are a bit clunky, but most work well)
- Delay - Sets the time for which a single slide is displayed
- Background color - Clicking in this textbox triggers a colorpicker
- Display as normal block - Selecting this will have the block appear in a side column instead of being embedded in the header
- Transparent - Clicking this overrides the background color setting and makes the background transparent
- Image selector - Will only accept gif, jpg, or png files
I have a question, I am using Essentials theme in Moodle 2.6.2, the slide shows works great in side mode and in top mode, however when in top mode the links bar appears underneath it. Is there anywhere that I can amend the code to appear underneath the link bar...if that makes sense :p
@Stephen - according to mike, it looks like it works in essential
@Edward, @mike - can you send me a private message with a url to your sites? I'll see what I can do.
Thanks for the block!
Is it possible to use an existing folder inside the course o Moodle?
I have a lightbox gallery module with photos inside it and I wonder if could use that folder instead of upload photos again.
I'm using the block and it work fine, thanks!!, but I want to know where moodle save the image files of the block. In other words, I want to know exactly the directory in the moodle server where moodle save the images of the block. I'm using moodle 2.7.
I'm not sure if what you are looking to do (use an existing lighthouse folder to upload photos) is possible. The plugin stores the images internally via the moodle filesystem and doesn't retrieve them by accessing a file directly, and instead uses the built in file.php class. I would assume you can alter the code to have it retrieve the files from another directory, but I wouldn't know how to go about doing that.
I'm not sure this is necessary - if you have a directory on your computer with the images, just select them all in an Explorer/Finder/Nautilus window and drag them all in at once.
Thank you for this plugin. I tried to install in moodle 3.1 and get the error message (translated from german installation):
Check block_slideshow ... Error
[Error] the plugin shows no module name [null
Installation aborted due to faulty installation.
Do you have any clue?
thank you!
Thomas Eibel
Sorry for the delay in getting back to you. To make it work in v3.0 and v3.1, you will have to edit two files:
In version.php, add the line
$plugin->component = 'block_slideshow';
above the $plugin->version line
And, in lib.php, change line 81 from
session_get_instance()->write_close();
to
\core\session\manager::write_close();
I plan on releasing a new version shortly, but until then, these two changes will get it working.
Paul
I've just downloaded this plugin. How exactly do we upload slideshows? The plugin does not accept .ppt files, and only allows me to upload a maximum of 5 images files.