Repositories: Giphy

Maintained by Picture of Andrei BăutuAndrei Băutu
Moodle plugin for using of as repository
22 sites
5 fans
Moodle 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10
Moodle plugin for using of as repository

How to setup 

  1. Download and install the plugin, as indicated here Access Site administration > Plugins > Repositories > Manage repositories. 
  2. Enable the plugin and access its settings page. 
  3. Fill in the Giphy API key (you can get one from
  4. Optional, limit the available files to a specific rating level.

How to use

  1. Select any field that triggers the file picker (e.g. file upload in assignments, link in forum posts, etc.)
  2. In the File picker, select the Giphy repository. 
  3. Search or browse the available images to select one.
  4. For the selected image, you will be presented with multiple options for format and resolutions to select from.


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3


Picture of Andrei Băutu
Andrei Băutu (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Plugins bot
    Fri, Feb 2, 2018, 8:30 PM
    Approval issue created: CONTRIB-7182
  • Picture of Bas Brands
    Thu, Feb 22, 2018, 4:49 PM
    Hi Andrei,

    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()


    Notice: Undefined variable: attributes in /var/wwwdata/mdk/stable_34/moodle/repository/giphy/lib.php on line 260

    For further info please read:

  • Picture of Matthew Cook
    Tue, Sep 18, 2018, 9:09 AM
    Why I attempt to select Giphy from the list of repositories on the File Picker dialog box in Moodle 3.5, I get the following error:

    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
  • Picture of Martin Stolzlechner
    Sat, Oct 31, 2020, 1:00 AM
    Dear Andrei,

    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!
  • Picture of Andrei Băutu
    Thu, Nov 12, 2020, 9:12 PM
    Hello Martin and Matthew, I updated the code and tested the plugin on Moodle 3.10. Please give it a try now.
    Matthew, I'm sorry this small fix comes after more than 2 years since you reported it.
  • Picture of Martin Stolzlechner
    Sat, Nov 14, 2020, 4:46 AM
    Hello Andrei, thank you for your time and effort! Just tried it and it works like a charm! Great plugin for a bit of fun to lighten the mood! Thank you!
Please login to post comments