
Repositories: Giphy
repository_giphy
Maintained by
Andrei Băutu
Moodle plugin for using of Giphy.com as repository
22 sites
34 downloads
5 fans
Moodle plugin for using of Giphy.com as repository
How to setup
- Download and install the plugin, as indicated here https://docs.moodle.org/31/en/Installing_plugins. Access Site administration > Plugins > Repositories > Manage repositories.
- Enable the plugin and access its settings page.
- Fill in the Giphy API key (you can get one from https://developers.giphy.com/dashboard/)
- Optional, limit the available files to a specific rating level.
How to use
- Select any field that triggers the file picker (e.g. file upload in assignments, link in forum posts, etc.)
- In the File picker, select the Giphy repository.
- Search or browse the available images to select one.
- For the selected image, you will be presented with multiple options for format and resolutions to select from.
Useful links
Contributors
Andrei Băutu (Lead maintainer)
Please login to view contributors details and/or to contact them
Thanks for submitting this plugin! I think it a a realy fun and nice addition to the plugin DB.
During installation I noticed a small problem in when configuring the Giphy API key. The steps to reproduce are:
Turn on development mode
Go to Site Administration -> Development
Select Debugging
Set Debugging to "Developer..."
Check the display debug messages
Go to Site Administration -> Plugins
Select Repositories -> Manage Repositories
Click the settings icon for the Giphy repository
You will see this notice:
Did you remember to call setType() for 'api_key'? Defaulting to PARAM_RAW cleaning.
line 1354 of /lib/formslib.php: call to debugging()
line 312 of /lib/formslib.php: call to moodleform->detectMissingSetType()
line 218 of /lib/formslib.php: call to moodleform->_process_submission()
line 99 of /admin/repository.php: call to moodleform->__construct()
And
Notice: Undefined variable: attributes in /var/wwwdata/mdk/stable_34/moodle/repository/giphy/lib.php on line 260
For further info please read:
https://docs.moodle.org/dev/lib/formslib.php_Form_Definition#setType
Thanks!
Exception - Too few arguments to function html_writer::img(), 1 passed in [dirroot]/repository/giphy/lib.php on line 235 and at least 2 expected
I tried to use your plugin in a Moodle 3.9.2.+ installation but I keep getting the same error as mentioned by Matthew. Is there any fix?
Thank you!
Matthew, I'm sorry this small fix comes after more than 2 years since you reported it.