• Extensions
  • Masquerade by FriendsOfFlarum, the user profile builder

I see that in vendors/fof/masquerade/src/Middleware/DemandProfileCompletion.php theres a verification

$this->url != (string)$request->getUri()

In normal instalations it works fine, but when we install in subfolder

$this->url returns the correct value: domain.com/forum/masquerade/configure
but $request->getUri() returns incorrect value domain.com/masquerade/configure

Not sure how to resolve this.

    Released version 0.3.3.

    "Force profile completion" is now compatible with subfolder install.

    The release also contains some small UI improvements in the admin panel by @iPurpl3x

    Note to translators: 3 new titles were added in the admin panel.

      3 months later

      Hello, Thank you guys for all extensions you build to help Flarum community,
      Is it planed in the Fof/masquerad roadmap to add an "upload file" field to the existing list of field types, as the extension "Upload by Flagrow" is now available and working perfectly, this one could be used for the implementation ?

        AKASA not planned. This could be added through paid work if needed 😁

        It's probably not a "quick" addition though, as it needs it whole allowed files, max size, disk adapter, and access restrictions.

        8 days later

        I'm not sure i understand how Laravel validation works. For an age field, i'm trying to do the following: digits_between|min:1|max:3; however, when I try to input my age, I get "an error has occured". Can someone help me out?

          taciturasa each | separates a rule. So digits_between|min:1|max:3 is 3 rules, the first being incorrectly formatted.

          The docs say digits_between is formatted like digits_between:min,max. The min and max parts must be replaced with a number.

          So I think what you were trying to do was digits_between:1,3.

          digits_between:1,3|min:1|max:3 would mean "a number with 1 to 3 digits AND from 1 to 3", which basically renders the digits_between part useless (possible values would be 1, 2 and 3 only).

          If you're trying to allow ages from 1 to 100 year (for example), the easiest would be to just use min:1|max:100.

          3 months later

          @luceos How to restrict users from filling in a certain piece of information, only administrators can fill in it

          3 months later

          I encountered quite a funny problem. I was trying to debug a problem so I suspected it was being caused by masquerade (which wasn't). I disabled the extension to check and I got an error on any page of the forum. I reenabled and it's gone...

          I can't disable the extension otherwise the entire flarum breaks down 🤣 . Not that I want to disable it but I think it is worth a look to see what is going on.

          Error screen:

            bertaveira That just means the page /masquerade/configure isn't found (because you disabled the extension). If you only tried retrying, go to your forum's home page.

              20 days later
              14 days later

              clarkwinkelmann Hi!

              I've installed "fof/masquerade": "^0.3.3", with enabled options "Force profile completion" and "Disable user bio field".
              Proper rights are set to view and edit (both for the registered users) but no redirect happens when the new user is creating its account or confirming its email.

              Can you please suggest how to debug and fix this issue?
              Thanks!

                xHasKx I guess you have Flarum beta 13. This part of the extension is broken on this version.

                  I have made an issue about it so we don't forget and someone who didn't read this thread might be able to pick it up FriendsOfFlarum/masquerade50

                  xHasKx if you just upgraded and noticed this extension is incompatible, you should restore from backup. Otherwise I wouldn't recommend to downgrade. Disable Masquerade until the fix is released.

                  By the way the "disable bio field" option no longer does anything since bio was removed from Flarum core. We need to remove this checkbox. Just don't install the FoF bio extension if you don't want a bio field.

                    clarkwinkelmann
                    Thanks!
                    I've just installed the new version from scratch and noticed this issue, so there is no backup to restore 🙂