TOS - diva/d2 GitHub Wiki
Description
This addon provides a mechanism for showing the Terms of Service (TOS) to both local and foreign users. Upon their first login into the world, users are presented with a web page that has the TOS and Accept/Decline buttons. The user has 5 minutes to accept the TOS. If that time expires, or if the user declines, she will be logged out of the world. Acceptance will be persistently stored, and the user won't be asked again.
Configuration
The configuration section for Diva TOS is [TOSModule], and it's included partly in the DivaPreferences.ini file and partly in MyWorld.ini. D2 has this addon enabled by default, and the default configuration shows the TOS only to foreign users. Should you wish to change any configurable part, make your changes in MyWorld.ini. Here are the variables that can be changed, and an explanation of what they do:
[TOSModule]
;; The TOS addon is enabled by default. To disable it, change it to false.
Enabled = true
;; How much time do the users have to accept the TOS before they get kicked out? (in minutes)
Timeout = 5
;; Tell the users what this is about
Message = "Please read and agree to the Terms of Service"
;; Should local users be shown the TOS on first login?
ShowToLocalUsers = false
;; Should foreign users be shown the TOS on first HG login?
ShowToForeignUsers = true
;; Change the text on that page for your own TOS.
;; You'll find it under <your diva dir>/WifiPages/tos.html
TOS_URL = "http://yourdomain/wifi/tos.html"
How to Reset the TOS
TOS acceptance is stored in the OpenSim table "griduser", column "TOS". If you change your TOS and wish your users/visitors to accept a new one, simply make that column empty for all rows, or only for certain users.