Force Gated On?

edited May 2012 in General
Is there a way we could Force Gated (Video can only be viewed by members who are logged in) On! and remove the select box option list?


  • edited April 2012
    Yes, that would be really simple.

    First create a plugin that hooks into the 'Create' function in the Video class. Refer to the Plugin Hook Locations article in our documentation, for the exact location. All you need to do is overwrite the 'gated' field for a video whenever a new one is created.

    Second, simply remove the checkbox field from your theme file. I believe the file is:


    Remember to only edit custom themes, not the default 'Cumulus' theme, otherwise your changes will be lost during system updates.
This discussion has been closed.