Difference between revisions of "Extensions:Terms Popup"
(initial setup) Tag: 2017 source edit |
(docu added) Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
− | {{Extensioninfobox|title= | + | {{Extensioninfobox|title=Terms Popup|desc=Makes a popup show when a user first visits the site that they have to accept before continuing. You can put anything in there.|auth=Cylunny|status=testing|github={{Github|user=Cylunny|branch=extension/terms-popup}}|LKVer=2.1.2|migration=yes|package=no}} |
− | + | ||
+ | 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). | ||
+ | |||
== Installation == | == Installation == | ||
− | < | + | * pull & deal with merge conflicts |
+ | * <code>php artisan migrate</code> | ||
+ | * <code>php artisan optimize</code> x2 | ||
+ | * <code>php artisan update-extension-tracker</code> | ||
+ | |||
== Configuration == | == 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 == | == 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 == | == Troubleshooting == | ||
− | + | We are never 100% safe from those pesky bugs. If you find something, feel free to contact me- I am Cylunny on the lorekeeper discord! | |
+ | |||
== Images == | == Images == | ||
− | < | + | <gallery> |
+ | File:Termspopup.jpg|Unedited Popup and edited example | ||
+ | </gallery> | ||
+ | |||
== See Also == | == See Also == | ||
− | + | If this extension helped you, feel free to support me on [https://ko-fi.com/cylunny Kofi]! | |
− |
Revision as of 05:02, 14 October 2023
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).
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 the lorekeeper discord!
Images
See Also
If this extension helped you, feel free to support me on Kofi!