Your Moodle version

Blocks: Online Users Map

block_online_users_map
Maintained by Picture of Alex Little Alex Little
Similar to the online users block, but this block uses the geographical information from users profiles to display the locations of online users on an OpenStreetMap or Google map. The geocoding of locations are cached in the Moodle database and updated when cron runs.
Moodle 2.0, 2.1, 2.2, 2.3, 2.4

Similar to the online users block, but this block uses the geographical information from users profiles to display the locations of online users on an OpenStreetMap or Google map. The geocoding of locations are cached in the Moodle database and updated when cron runs.

Screenshots

Screenshot

Contributors

Picture of Alex Little
Alex Little (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Barfuss Ruge
    Sat, Feb 25, 2012, 1:20 AM
    I just love this idea!

    Would the block work on the frontpage and on my moodle?

    And will the map show all the world or will it zoom in to fit the area with online users?

    Best regards
    Barfuss Ruge
    Language Centre of Greenland
  • Picture of Alex Little
    Wed, Feb 29, 2012, 1:38 PM
    Hi, yes it should work on both the frontpage and my moodle page. There are some block settings you can use to change the default zoom level and the location the map is centred on when it first loads - so maybe that will do what you need? Cheers, Alex
  • Picture of Barfuss Ruge
    Fri, Mar 16, 2012, 1:00 AM
    The block works nicely here http://oqaatsit.eforum.gl/ and we are very happy with it. It would be nice with support for special characters, though (check the city names in the Scandinavian countries). Best regards Barfuss
  • Picture of Alex Little
    Tue, Mar 20, 2012, 7:29 PM
    Very pleased to hear you like it smile thanks for letting me know about the issue with the special characters. I'll take a look and let you know when it's fixed. Cheers, Alex
  • Picture of Alex Little
    Wed, Mar 21, 2012, 7:07 PM
    Hi Barfuss, I'm not quite sure why the special character aren't working. I've updated the block to use Google Maps API v3 and seems to work well on my site ( see: http://moodle.alexlittle.net). I added a user in a Danish town (with the special character 'ø') and seems to be showing up fine. So you could try updating to the new version of the block to see if that fixes the issue. The other thing to check is that the mdl_block_online_users_map table has UTF8/unicode set up for the 'city' column.
    Hope that helps, Alex
  • Its me only
    Tue, May 15, 2012, 7:04 PM
    Hi Alex, Please help me on this, any idea when i run Cron.php files i am getting this error "Updating location for Admin Super-User (looking up: Pune,IN )...Couldn't connect to host othello.ws.geonames.org: 10061: No connection could be made because the target machine actively refused it.

    "
  • Its me only
    Tue, May 15, 2012, 9:48 PM
    I think this is city level error i got in other server like "Updating location for Hongbo Wang" any Idea please waiting
  • Picture of Thomas Haines
    Thu, Aug 23, 2012, 1:10 AM
    I found a syntax error in lang/de/block_online_users_map.php
    Line 26 is missing a semi colon
  • Picture of Alex Little
    Thu, Aug 23, 2012, 6:27 PM
    Thanks Thomas, should be fixed now
  • Picture of Alex Little
    Thu, Aug 23, 2012, 6:36 PM
    Hi Ramchadnra, I'm not sure what would cuase the connection to be refused. First I would check whether your Moodle server goes through a proxy to access the internet, if so, you may want to check your proxy settings. The other option could be to use the api.geonames.org service, seems you need an account (free) to use this, but shouldn't be hard to edit the block slightly at least to test this out (see line 68 of lib.php). I should update the block to make it easier to specifiy what server you're trying to connect to.
    cheers,
    Alex
  • Brian
    Tue, Sep 10, 2013, 6:41 PM
    I added this block to one of my courses. It shows up in the right hand side-bar of the front-page, but no users are shown. I've run cron manually to give it a kick. I've set it to show all users in the last week (10090 mins) and logged on as a different user on another computer. Any idea what might be wrong? I'm using Moodle 2.5.2, and checked my mysql database - there are no entries in the new table.
  • Brian
    Tue, Sep 10, 2013, 6:44 PM
    Of course I meant 10080 mins!
  • S'envoyer en l'air
    Wed, Jul 9, 2014, 4:58 AM
    are you sure from the url http://api.geonames.org because i can't see the users come from.
  • Picture of Miguel Angel Velasquez Teran
    Sat, Jul 12, 2014, 12:04 AM
    They updated to moodle 2.6 or 2.7?
Please login to post comments