• Extensions
  • FoF Terms, ask your users to accept TOS and Privacy Policy

ChristianFrankenstein oops I actually thought you were the one asking the question earlier (that was m4rny )

I thought your message was a follow-up to my query about optional checks.

You were just showing how to add the data processing check ? Nice ?

By the way it's not really said in the extension but all policies fields are optional (except name). If you don't put any link it handles it fine as we can see above ?

clarkwinkelmann Yes I've thought of that but couldn't find any useful use case. If something is optional, it's usually connected to something else and would make more sense as a separate extension. For example a newsletter opt-in would be better handled by a separate extension adding its own checkbox and syncing the state accordingly.

Yes, it makes sense, thanks for the answer.

What would you like to use that feature for ?

I need to add up to 4 separate conditions for acceptance - 3 required, 1 not, but for this one I will use the solution described in this thread.

edit:
Scratch that. I said it too early. The idea is that the user could, but he did not have to agree to something. For example, if you are asked to give marketing consent. According to the law, I can not demand it. In this situation, even if he does not check such options, he should still be able to register.

But I have a different suggestion now, the ability to change (or leave empty) the label of the "I agree" checkbox for each policy separately. In this way you will be able to use a different form, for example:

  • I accept
  • I agree (to the)

ChristianFrankenstein

I have a similar solution, three check boxes and these are required, but I still need a fourth one, which can be but does not have to be ticked. I want users to agree to receive advertising materials electronically, but I can not demand that from them.

In this way, I will be able to create a database request for emails of people who have agreed to receive such materials and send them information from time to time, e.g. about promotions.

    Advertising Materials = Newsletter?
    You can try this:
    1. Go to appearance and create a custome header.
    2. Use Javascript in this custome header to search string "I accept the <span>Newsletter"
    and replace it via javascript in "I aree to the <span>Newsletter"
    3. finish

    BUT!!!!!
    DSGVO / GDPR requires encrypted data transmission. Only https may be used. This applies to all websites where users can store private data. private and commercial websites.

      m4rny the ability to change (or leave empty) the label of the "I agree" checkbox for each policy separately

      I thought about multiple options regarding that. I see two main parts that users might want to customize:

      • The "accept" verb: you might want to replace "I accept" with "I approve", "I conscent", ...
      • The determinant: "the" terms of use, "our" terms of use, "" terms of use, ...

      The problem only grows bigger with other languages, in particular when the "policy" gender or number changes the determinant.

      So I decided to not handle any particular case. The defaults will work in English with "agree" and "the".

      If you need another text, you can just use Flagrow Linguist and alter the translations to your liking. This should solve most problems.

      Of course it doesn't solve everything. If various policies have different genders or require a different verb you won't be able to customize it per-translation...

      I might add an option to replace the whole i-agree-to-text with something custom. I'm not sure how to inject the link in that though. I'll think about it.

        clarkwinkelmann

        At the moment I do not have any free time, but I will try soon dig into the problem myself.

        clarkwinkelmann The problem only grows bigger with other languages...

        Yep, that's the point exactly. ?

        ChristianFrankenstein

        Yeah, sure I can, but I do not want it to be the target solution, although probably at the beginning it will be enough, later I will think about something permanent and cleaner. ?

        clarkwinkelmann The problem only grows bigger with other languages, in particular when the "policy" gender or number changes the determinant.

        I have exactly this problem (genders in German). I solved it by always using plural forms (policies, rules, declarations) as in the plural form the article is the same for all genders.

        clarkwinkelmann I might add an option to replace the whole i-agree-to-text with something custom. I'm not sure how to inject the link in that though.

        The easiest way would be to allow html tags inside the i-agree-to-text, so the link would have to be inserted by hand.

        Very helpful extension!
        Can user register their accounts without accepting tos? I have tried in safari which I was able to register myself without accepting tos. If it is meant to be required, I'll submit a issue in your repo.

          manny you shoudn't be able to skip the TOS when registering.

          Do you have the Reflar User Management installed/enabled ? If that's the case it's expected as the extensions can't work together.

          Waiting on your issue to troubleshoot that ?

            6 days later

            Just released version 0.2.1:

            • Fixed the ability to skip checkboxes when Flarum was installed in a subfolder. Thanks @manny for the report
            • Added Italian translation, thanks @spaeps

            If you're on 0.2.0 just run composer update flagrow/terms to update. If you're still on 0.1.x use the instructions above to upgrade to 0.2.x clarkwinkelmann .

            I cannot paste html or <br> in the text field causing my text to look pretty bad(not break lines at all), any ways around this please/ Thank you.

              Benito I suppose it's you who reported it on GitHub as well ? I offered a workaround there flagrow/terms5

              As for more advanced formatting, I don't have the time to add this feature as of right now. Maybe in the future ?

              5 days later

              I have a minor problem after upgrading to version 0.2.2. After the update, the add-on is still enabled, but you can not enter the options and the conditions are no longer displayed in the pop-up window. Reverting to version 0.2.0 has resolved the issue.

              I will also test version 0.2.1, because I jumped to 0.2.2 from 0.2.0 right away.

              I'm going to investigate deeper in my free time, for now I just let you know, because maybe someone else had similar problems.

                m4rny any error in the browser console or in Flarum log files ?

                Also make sure you cleared the cache after upgrading (or use Reflar Uncache).

                21 days later
                a month later

                Suggestion, either for this extension or another extension: An option to have an age verification checkbox that says something along the lines of "I am at least 13 years of age."

                  holyfuzz to not provide a link, just leave the field blank.

                  There's currently no way to provide a custom text for the full label. If you don't have any other terms to agree to you could customize the default text with the Linguist extension.