Difference between revisions of "Extensions:Terms Popup"

From Lorekeeper Wiki
Jump to navigation Jump to search
(docu added)
Tag: 2017 source edit
m
Tag: 2017 source edit
Line 1: Line 1:
 
{{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}}
 
{{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).
+
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 ==
 
== Installation ==

Revision as of 05:04, 14 October 2023

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 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!