• Extensions
  • Masquerade by FriendsOfFlarum, the user profile builder

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 🙂

              a month later
              10 days later

              Version 0.3.4 has been released

              • Flarum beta 13 compatibility #50
              • Fix ability to sort fields #52
              • Fix users without profile being redirected when "force completion" is enabled #2
              3 months later

              Hello ! This is my first post on Flarum's forum, so first, thanks all for your great work !

              Just wanted to report a bug I have with Masquerade extension : when I open a user's profile, there's no problem, the fields of Masquerade are well added; but when I try to preview the profile directly in a discussion hovering a user with the mouse, Masquerade fields are shown only for my own profile, and sometimes for users when I have opened them in the full profile page just before. Most of the time it's not shown. Of course, I already tried to reinstall Masquerade. I also tried to disable other profile related extensions like user bio, share social and likes.

              Am I alone with this behaviour or is it a bug ?

              Thank you !

                sylv38 thanks for the report! There might indeed be an inconsistency here.

                I think the idea was to not show the fields in the hover card, but if those were already loaded for some users, like is the case for the currently logged in user, then the already loaded fields would be shown. We might want to hide them completely from the hover card, or adjust the data loading to show them all the time.