• Extensions
  • Masquerade by FriendsOfFlarum, the user profile builder

Released 0.1.3 which modifies how fields are shown; supported are:

  • url
  • email
  • boolean (make sure you add to the description that "yes" is a boolean)

I'll create something that will modify the profile editing as well in the future.

Please don't upgrade yet, seems I have introduced an issue there ?

9 days later

Is it just me? Doesn't look like the fields are set even.
Maybe my custom CSS lines are the cause?

Imgur

You are referring to the titles, eg "Edit field Computer Experience"? These in fact are fieldset legends and are supposed to dangle above the field..

    luceos
    Thank you for clarification. Its the red trash icons that that kind of make it look off.
    They are lined up with the legends and not inline with the input field.

    Just my OCD.

    3 months later

    First, thank for that extension !!!

    Maybe add the option in admin to extend the field or not while creating it.. (like make my about field in the user config have multiple line (get it? sorry for my english)
    And the option for user to hide or show the field would be nice aswell. (Admin while creating the field can choose if user can hide that field) ?!
    And a light line between each entry would be nice (view side)..
    A smaller url, like "/p/user" instead of "/masquerade/user". and if possible overwrite the url to profile, that user arrive directly on the profil page instead of the "/u/user" !!

    Oh and I don't get the "Force user to complete profile" function, as it doesn't do anything in my test !!
    And since I disable the original User bio, to switch again doesn't change anything, the field doesn't come back.

    ps: I have lot of idea, but I dont get how to make a flarum extension... (I change the core instead. I know, but...)
    I wanted make a complet rewrite of the user page, to make as you did, a profil page, but also showing the discussions in list instead of the content... And brief !!
    But I just discover flarum so, maybe I will be able to make an extension latter !!
    I already plan some new extension, but for now it's just idea that I already made for other "software" !!

      Loky thanks, I'll look at your suggestions and see what I can bring along in a future release!

      • Loky replied to this.

        luceos I did some Less editing if you want.... (it's the color system chosen in the appearance page, so look fine in dark mode too and the add line look fine on a phone (just a border bottom))
        masquerade

          To make expandable input is not possible, we need to replace input for textarea and than using some js...
          you can see an example on jsfiddle. or a way to use "contenteditable="true" on a div also for exampe! (for the user config side)

            luceos Ok! ☕
            I just make the pull and updated the picture above as I put new icon in the admin aswell !!
            I do change the url aswell...
            - Forum side become : "/u/{user}/profile" & "/profile/configure".
            - Admin side, I just take out the "flagrow" & "configure" (sorry ? ) so it's "/masquerade" only !!

            As always, don't forget to proofread, in case I missed some shit!

            a month later

            @luceos

            Now that I have two flarum sites, courtesy of https://www.freeflarum.com/ .

            It occurred to me that I would have to re-create all my settings for masquerade.
            Anyway you can include a export/import settings function?

            With a function like that, people could share templates.

              0E800 Anyway you can include a export/import settings function?

              If you migrate your forum it would be best to simply copy your database over or at least the specific fields?

                luceos
                Unfortunately I do not have ssh access to the flarum instance being hosted by freeflarum.com .

                Thought it would be nifty if there was a way to export/import the settings to a json file that could be done directly from Web browser.

                Possibly too lofty of a goal.

                  You know, importing and exporting "settings" doesn't sound too bad especially in 0E800's situation.

                  But then it comes down to format, XML or JSON? Or both?

                    I actually think it's not a bad idea. Mason could also benefit from this.

                    A JSON representation of the existing fields (following json:api syntax ?) sounds the most logical export format for me.

                    Of course if you have access to the database it's currently not very hard to copy existing fields to another install... I think a real benefit could be the ease to share common configurations between users. Some of these presets could even be proposed by Masquerade/Mason themselves with some kind of one-click install.