Extensions:Terms Popup
Description | Makes a popup show when a user first visits the site that they have to accept before continuing. You can put anything in there. |
---|---|
Author(s) | Cylunny |
Status | testing |
Github | extension/terms-popup |
LK Version | 2.1.2 |
Contains a Migration | |
This makes a popup appear for visitors of your site that they have to accept before continuing. The content of the popup is customizable. It will appear for logged out users/visitors once per browser, and once for a logged in user (acceptance is saved to the database). PLEASE NOTE: this only provides a technical solution for this but is not checked against any law. As the owner of your site, you must make sure to check your laws yourself.
Installation
- pull & deal with merge conflicts
php artisan migrate
php artisan optimize
x2php artisan update-extension-tracker
Configuration
You can edit the title, content and button text of the popup in the config/lorekeeper/settings.php file. You may also disable it by setting the value to 0. Make sure to run optimize after editing these or changes will not persist.
Usage
For visitors (logged out), the accept is saved in their local storage, so it should pop up on every new browser once. For users (logged in), accept is stored to the user db table.
Troubleshooting
We are never 100% safe from those pesky bugs. If you find something, feel free to contact me- I am cylunny on discord or toyhou.se!
Images
See Also
If this extension helped you, feel free to support me on Kofi!