Online Users Map

Blocks ::: block_online_users_map
Maintained by 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.
Latest release:
20 sites
5 downloads
11 fans
Current versions available: 1

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 #0

Contributors

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

Comments RSS

Comments

  • Barfuss Ruge
    Sat, 25 Feb 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
  • Alex Little
    Wed, 29 Feb 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
  • Barfuss Ruge
    Fri, 16 Mar 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
  • Alex Little
    Tue, 20 Mar 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
  • Alex Little
    Wed, 21 Mar 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, 15 May 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, 15 May 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
  • Thomas Haines
    Thu, 23 Aug 2012, 1:10 AM
    I found a syntax error in lang/de/block_online_users_map.php
    Line 26 is missing a semi colon
  • Alex Little
    Thu, 23 Aug 2012, 6:27 PM
    Thanks Thomas, should be fixed now
  • Alex Little
    Thu, 23 Aug 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, 10 Sept 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.
Please login to post comments