Max Views

Availability restriction ::: availability_maxviews
Maintained by Daniel Neis Araujo
An availability condition for Moodle that limits the number of views of activities and resources by users
Latest release:
225 sites
46 downloads
26 fans
Current versions available: 5

With this plugin you can limit your users to view any type of activity or resource a certain amount of times. The limit is applied to each user individually and is based on events for the associated context module.

Screenshots

Screenshot #0

Contributors

Daniel Neis Araujo (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Carlos
    Wed, 20 July 2016, 6:30 PM
    Hi.
    This plugins generated yesterday in one of our test campus the following messages in our security system.
    The campus, after install thos plugins, did not permit edit acction in all campus.
    We can see the resources, but dont edit and dont insert new resource.

    The status back to normal situation after un-install the plugin

    [Tue Jul 19 14:18:04 2016] [error] [client XX.XX.XX.XX] ModSecurity: Access denied with code 500 (phase 2). Match of "rx ^OPTIONS$" against "REQUEST_METHOD" required. [file "/etc/apache2/modsecurity/modsecurity_crs_21_protocol_anomalies.conf"] [line "41"] [id "960015"] [msg "Request Missing an Accept Header"] [severity "CRITICAL"] [tag "PROTOCOL_VIOLATION/MISSING_HEADER"] [hostname "xxxxxxxxxx.xxx.gov.ar"] [uri "/"] [unique_id "V45gzAoCAwQAAGrRjZgAAABg"]

    PLease, verify bebfore install this pluging.
    We verify that the pluging its the problem with second test in another campus installation.

    regards
    Carlos


  • Karan Khanna
    Wed, 7 June 2017, 4:45 AM
    Thanks for this wonderful plugin which I liked a lot, using it on https://snapchatonlinelogin.org
  • Sam AG
    Sun, 10 Dec 2017, 6:12 PM
    hi ,
    I am using in our moodle site i am able to restrict but as i save the it in the course
    next time i am not able to access the restriction its completely disabled for the admin

    later i need to go to plugins and disable the MAXVIEW, then the whole restrict tab starts working.

    Some one please help me..
  • abdelmajid jalal
    Sat, 30 Dec 2017, 8:42 PM
    A wonderful plugin well worth the experience
    Do you work on Wordpress and Joomla?
    https://algawalat.com/
  • Daniel Neis Araujo
    Tue, 9 Jan 2018, 9:19 PM
    Hello, Sam AG

    which Moodle version are you using?
    Can you enable de debugging mode in Moodle and share the info showed with us?
  • Andres Ramos
    Wed, 10 Jan 2018, 11:04 PM
    Sam AG and Daniel, it happens in version 3.3+ and 3.4. I was able to fix the issues and made some improvements. Let me know how can I send you the fixes for the plugin and you can test on your end.
  • Daniel Neis Araujo
    Wed, 10 Jan 2018, 11:46 PM
    Hello, Andres

    please send a pull request to the github repository: https://github.com/danielneis/moodle-availability_maxviews/

    Thank you in advance!
  • Andres Ramos
    Wed, 7 Feb 2018, 12:11 AM
    Pull request done.
  • Mohammad Farouk
    Tue, 24 Jan 2023, 10:47 PM
    Great plugin, is it possible to make it available for moodle 4.1 and make an option to rest the views count for certain student and activity
  • Mohammad Farouk
    Sat, 4 Mar 2023, 12:25 AM
    Greetings Daniel
    I created a pull request which connected this plugin with a block to control the number of maximum views for certain user in the course
    Can you have a look on it?
  • Juan Carlos Galdos
    Fri, 23 June 2023, 2:19 PM
    Any idea when you will upgrade this plugin to 4.1? Our school really need this plugin in that version in order to be allowed. Thank you!
  • Daniel Neis Araujo
    Wed, 28 June 2023, 2:39 AM
    Hello, Juan
    I've just made available a version compatible with Moodle 4.x
    It also add a new feature to override the limits for especific users in activities.
  • Juan Carlos Galdos
    Thu, 29 June 2023, 3:44 PM
    Thank you very much Daniel! You saved my life smile
  • Ayman Naser
    Tue, 30 July 2024, 12:13 AM
    Hello
    I add this blugin nbut when I apply the restrictions I get the following message ( Call to undefined method core_availability\info_section::get_course_module())
    I am using moodle 4.4
  • Daniel Neis Araujo
    Fri, 2 Aug 2024, 1:50 AM
    Hello, Ayman
    Are you using the latest version of the plugin?
    I just tested it on the main branch (4.5dev) and it worked.
    If you are using the latest version, please, enable debug mode and display of debug messages and repeat the steps and paste the stack trace here
1 2
Please login to post comments