Quiz access rules: IP address list quiz access rule

Maintained by Picture of Vadim Dvorovenko Vadim Dvorovenko
This plugin works just as usual limitation on IP, but the list of subnets with names (eg, library, local area network, a computer lab, etc.) enters the site administrator. Teachers in tests simply select the required subnet.
53 sites
11 fans

Visit admin page to configure IP adress list. When you setup quiz, you may select any named IP list.

Selecting none means that this limitation will not apply. If the administrator changes the subnet, for example, by adding one more address, it is immediately reflected in all tests using this subnet.


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


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

Comments RSS

Show comments
  • Picture of Vadim Dvorovenko
    Sat, 14 May 2016, 1:43 PM
    As for "stuck on the new settings page", i think the problem is with empty configmultiselect. I think the best choice is not to show this settings on upgrade at all, but i currently have no ide how to make it. The subnets list does not shows on update at all, but i do not know why. I'll try look at it soon.
  • Picture of Vadim Dvorovenko
    Sat, 14 May 2016, 2:08 PM
    As for selecting none in multi select list. I agree that it is the usablility problem. Despite the fact that it is very easy to read the description and press Ctrl, my collegues were not able to perform such a simple action. So, i think, this will be problem for much more users.
    That's common moodle problem with multiselect - it's shown such way on PC. You should use Ctrl to unselect item, as written in caption. On some touchscreen browser this list is shown as list with checkboxes, that's much easier to use.
    Currently we have admin_setting_configmulticheckbox, but we do not have same element for mform. On the other hand I see, that if i use list of checkboxes, they will use a lot of screen size, if there are many items in list. Current list is limited in height.
    I do not want to code "allow from everywhere" predefined element in this list, as it may lead to contradiction, when you select such item and something else.
    Currently site administrator may add such item manually, by adding ip to list
  • Picture of Vadim Dvorovenko
    Sat, 14 May 2016, 2:47 PM
    After a short thinking i have decided that this plugin whatever is not intended to be used with large subnets list, beacuse it wil be hard for admin to manage list larger then 10-20 elements (to much up/down) to order it. So i'm currently working on switching from multilist to checkboxes.
  • Picture of David Mudrák
    Sat, 14 May 2016, 3:08 PM

    Yeah, I was solving very same usability issues with the component selector field at the AMOS translator filter page (https://lang.moodle.org/local/amos/view.php). At the end I concluded that the list of checkboxes works best for multi-selection purpose and the issue with the space occupied by a long list can be solved via CSS by setting maximum height of the wrapping div.

  • Picture of Vadim Dvorovenko
    Sun, 15 May 2016, 1:38 AM
    Thanks for advice. I have implemented checkboxes list. Its height is limited to about 10 items with css.
    And i fixed problem with stuck settings page, now settings is not displayed on plugin install.
  • Picture of Mike Churchward
    Mon, 16 May 2016, 9:44 PM
    Hi Vadim. Using "CTRL-select" to de-select all options, didn't seem to always work. I'm not sure why. It worked once for me, but all of the other times, if there was only one selected, "CTRL-select" would not deselect it. I'll have to see if I can find a way to reliably replicate that, as it may be a bug in the forms library.
    Sounds like checkboxes may be the right choice though.
  • Picture of Mike Churchward
    Mon, 16 May 2016, 10:03 PM
    Hi Vadim. I tried the new version and it works great. I uninstalled it and reinstalled the new one, and did not have the initial settings screen problem either. In fact it didn't go to the settings screen at all. I assume that's correct behavior, but if it isn't, it would be a bug in Moodle code and not the plugin.
    Looks good to go to me. We'll wait on David to give the thumbs up.
  • Picture of Vadim Dvorovenko
    Tue, 17 May 2016, 12:06 AM
    Yes, that's correct beaviour on install - you cannot select default values, because list is empty, and to fill list you need too many page reloads, so no page is displayed. Please try how to use checkboxes list with more then 10 list items, if you have different devices. Maybe i should set another height.
  • Picture of David Mudrák
    Tue, 17 May 2016, 4:44 AM

    Thanks Vadim for sharing this plugin with the Moodle community, and thanks Mike for detailed peer-review. I am happy to approve this now. You are cleared to land, welcome to the Plugins directory!

  • Picture of Hugo Ribeiro
    Thu, 19 May 2016, 4:49 PM
    Hi Vadim,
    Thank you so much. This is a great future and could be very useful. I mus ask however, if would be nice to be able to order the locations hierarchically. That way would be possible do select, for instance, the building -> department -> room. Does this make sense?
  • Picture of Vadim Dvorovenko
    Thu, 19 May 2016, 7:50 PM
    Hugo Ribeiro. You may do, for example:
    Building 1:
    ___Department 1:,
    ______Room 1:
    ______Room 2:
    Instead of _ put nonbreakable space ( ).
  • Picture of Hugo Ribeiro
    Thu, 2 Jun 2016, 10:06 PM
    Hi Vadim,
    Thank you for your work. If we want to use it we would have to tweek it a lot. So let's see what our developpers have to say. Thanks
  • Picture of Vadim Dvorovenko
    Thu, 2 Jun 2016, 11:51 PM
    You may fork it on github and make needed changes. If code quality is good, i may include changes into release
  • Picture of Hans B.
    Tue, 26 Sep 2017, 4:32 PM
    Any idea if support for 3.3 is to be expected?
  • Picture of Vadim Dvorovenko
    Wed, 27 Sep 2017, 12:24 AM
    Currently, i mark supported versions only when tested by myself. But module itself has no limitations, feel free to try current module version on 3.3 and 3.4. Please install module, turn debuuging on and check, if it shows any errors or warnings. If you see any, please report. If none, please report it too, i'll mark module as compatible with newer version.
1 2
Please login to post comments