Blocks: Webcam Snapshot

block_mfavatar
Maintained by MoodleFreak Luuk Verhoeven
This block allows users to make profile picture with there webcam.
255 sites
362 downloads
26 fans

Webcam Snapshot

It's a brand new functionality for users in their own Moodle environment. The plugin is free to download and in open source.

In brief, the MoodleFreak Plugin Avatar gives the user the possibility to take a snapshot with a live webcam. The user can then upload the picture and modify his profile picture at any time.
Besides this, there is also the facility to customize texts within the plugin.

As a bonus, an easy to follow tutorial was created, on how the user can install the block to his Moodle site and ultimately deploy it to a page for use.

Notes:

  • The Plugin makes no database changes.
  • The Plugin was developed with coding standards of Moodle.

Installation

 

Automatic avatar 

Fix capabilities

If your students or some other role can't create a avatar. 

Extra Information:

[NL] http://moodlefreak.nl/plugin/mfavatar/

[EN] http://moodlefreak.com/plugin/mfavatar/

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2

Contributors

MoodleFreak
Luuk Verhoeven (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • MoodleFreak
    Tue, 21 Apr 2015, 3:07 PM
    In the last update, I added a HTML5 support WEBRTC to get a userstream this is indeed optional and will look a little bit different. You can turn it of and on in the block settings.

    @simon: If you know how I can let it work on IOS would be create, they don't support WebRTC. And even think there is no browser based solution for only from a app this should be possible.
  • Picture of Elton LaClare
    Fri, 17 Jul 2015, 4:06 PM
    Luuk,
    Will Webcam Snapshot work on Moodle 2.9? I would really like to use it.
  • MoodleFreak
    Fri, 17 Jul 2015, 8:34 PM
    Hi Elton, will test it this weekend. I think it still works fine.
  • MoodleFreak
    Sun, 19 Jul 2015, 5:59 PM
    Also tested with success on version 2.9.1
  • Picture of Sergio Cardillo
    Wed, 3 Aug 2016, 6:05 PM
    Hi! Can you tell me the directory where the picture are saved and how to change it? Thank you!
  • MoodleFreak
    Thu, 4 Aug 2016, 2:15 AM
    @sergio This is done by default moodle behavior, using user profile image. The uploaded file will be added to moodledata folder and stored in the DB in the *files* table.
  • Picture of Aditya Dubay
    Thu, 6 Oct 2016, 1:55 PM
    Block is not visible to student sad
    Block permission are:

    Block: MoodleFreak Avatar
    Add a avatar snapshot tool
    block/mfavatar:addinstance - Inherit (Allow)

    mfavatar:view
    block/mfavatar:view - Inherit (Allow)

    Block
    Edit a block's settings
    moodle/block:edit - Inherit (Not set)

    View block
    moodle/block:view - Inherit (Allow)
  • MoodleFreak
    Fri, 7 Oct 2016, 12:43 AM
    @AdityaDubay Did you add the block to the My Moodle page? The capabilities looks correct.
  • Picture of Roland Sherwood
    Mon, 11 Jun 2018, 10:57 AM
    Hi. Thanks for making this plugin available. If possible, please could you provide more details of the automatic first and last name initials avatar creation (as shown in the third image above) functionality? After having installed the plugin I can't find any way to activate or make use of this functionality. Thanks.
  • MoodleFreak
    Mon, 11 Jun 2018, 4:29 PM
    @Roland Sherwood I added a video to description of plugin. I hope this helps.
  • Picture of Roland Sherwood
    Wed, 13 Jun 2018, 12:20 PM
    Hi Luuk. That's great - many thanks! I understand now, and apologies also because my confusion was caused by the fact that I thought the download link at the top of this page was for the latest 3.5-compatible version of the plugin. However, that link is actually for the 1.1 release, and I realise now it's the 1.2 release that offers this functionality (hence my confusion after installing 1.1 and not seeing any settings related to automatic avatars). Everything works great now (although we do have an issue with non-latin character-based names producing avatars with no visible text; however that's probably beyond the scope of what you had in mind for this plugin)!
  • Picture of Raymond Frangie
    Thu, 26 Jul 2018, 3:02 PM
    We seem to have an issue with this plugin with deleted users? Here's the log from the scheduled tasks that keeps failing...

    Update user avatars

    Execute scheduled task: Update user avatars (block_mfavatar\task\update_avatars)
    ... started 17:02:01. Current memory use 9.5MB.
    ... used 154 dbqueries
    ... used 1.1980068683624 seconds
    Scheduled task failed: Update user avatars (block_mfavatar\task\update_avatars),Invalid user
    Debug info:
    SELECT id FROM {user} WHERE id = ? AND deleted = ?
    [array (
    0 => '6',
    1 => 0,
    )]
    Backtrace:
    * line 1522 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
    * line 6124 of /lib/accesslib.php: call to moodle_database->get_record()
    * line 191 of /blocks/mfavatar/classes/avatargenerator.php: call to context_user::instance()
    * line 140 of /blocks/mfavatar/classes/avatargenerator.php: call to block_mfavatar\avatargenerator->save()
    * line 163 of /blocks/mfavatar/classes/avatargenerator.php: call to block_mfavatar\avatargenerator->set_avatar_single_user()
    * line 57 of /blocks/mfavatar/classes/task/update_avatars.php: call to block_mfavatar\avatargenerator->set_avatar_for_all_users()
    * line 105 of /lib/cronlib.php: call to block_mfavatar\task\update_avatars->execute()
    * line 297 of /lib/cronlib.php: call to cron_run_inner_scheduled_task()
    * line 91 of /admin/tool/task/schedule_task.php: call to cron_run_single_task()

    Any assistance will be greatly appreciated!

    Cheers,
    Ray
  • MoodleFreak
    Thu, 26 Jul 2018, 4:01 PM
    Hi Ray,

    Can you check the latest moodle35 version on github?
    https://github.com/MoodleFreak/moodle-block_mfavatar

    Deleted users shouldn't need a new avatar, they will be skipped now. If you confirm it works correctly I will update the plugin on moodle.org

    Cheers,
    Luuk
  • Picture of Kale Dagger
    Fri, 17 Aug 2018, 12:55 AM
    I love the automatically generated avatars, but I have a problem: even though Override user picture is unchecked in the settings, it replaced the profile picture I was using. Now when I try to delete the avatar or upload a new picture in my profile nothing happens. (Using Moodle 3.5 and plugin version 1.3.0)
  • MoodleFreak
    Tue, 28 Aug 2018, 1:12 PM
    Hi Kale, did you turn off "avatar_initials" in the global block configuration? This prevents avatars from being generated.
1 2 3
Please login to post comments