Extensions:Terms Popup

From Lorekeeper Wiki
Revision as of 06:02, 14 October 2023 by Cylunny (talk | contribs) (docu added)
Jump to navigation Jump to search
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).

Installation

  • pull & deal with merge conflicts
  • php artisan migrate
  • php artisan optimize x2
  • php 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!