• Extensions
  • Masquerade by FriendsOfFlarum, the user profile builder

ctml, that's what I mean - that option is enabled and I still have to dig into the user profile to view it. It doesn't appear in the pop-up bubble when you hover the mouse over a username.

  • ctml replied to this.

    ChipsyKing I think there could be a bug. I've seen behavior where a field doesn't show up on some profile cards (the popup) while for other users it does show, even though it has been set by them, and permissions to have/view are set to all members.

    Yes this looks like a bug, I think I see what the problem is, but I'll need to take a closer look to fix it.

    We show the fields on all user cards, on the profile or on the discussion list. Likewise, the bio fields relationship can be loaded on both BasicUser and User, so it should be loadable on the discussion list as well.

    What's missing is the actual include in the discussion list. So this means that if you visited a user profile in the same browsing session, you will see their fields in the discussion card, otherwise you won't.

    If someone can replicate this, feel free to open a GitHub issue explaining the steps to reproduce. Otherwise I'll get to it once I find some time.

      4 days later

      Justoverclock I don't understand what the problem is?

      Is the field marked as required?

      Even if a field is marked required, the users can avoid filling it in by navigating away from the Masquerade page after every login.

      Justoverclock

      no i mean css visualization problem, the text goes a little bit over the white space (is this regular?)

      and if field are empty, the result is as the second image (is this regular too?) @clarkwinkelmann

      and if yes, how can i adjust the visualization style?

        Justoverclock first screenshot yes, that's how it has always looked like. I can agree it isn't the most pretty UI...

        Second screenshot also seems to be as intended.

        You can use custom local CSS to change the look. If you need more advanced customization that cannot be done with CSS, let us know what we could do to make it possible (additional classnames, different HTML tree?).

          clarkwinkelmann You can use custom local CSS to change the look. If you need more advanced customization that cannot be done with CSS, let us know what we could do to make it possible (additional classnames, different HTML tree?).

          for my website i'm using masquerade to allow user to post theyr PC configuration specs...

          but as u can see in the second image, it looks really bad with default style, i do not want something specific, just to make it more modern.

          clarkwinkelmann maybe can be better if is possible to mantain the look that anyone can see into own profile...like this:

          and not like this:

          Release 0.3.7

          • Use new Flarum beta 15 admin panel page
          • Update deprecated code
          • Fix bio fields not always loaded
          • Improve user experience around saving and required fields
          composer require fof/masquerade

            Justoverclock either should work if you were previously on any of the 0.3.* versions.

            composer require make sure you install the latest compatible version, whereas composer update tries to only install minor updates.

            9 days later

            Hello is there any way to filter user-directory on given masquerade field? My users are complaining that they have to look at all profiles on site if they want to find group of people with matching masquerade field (like town.)

              aaronlbpeterman there is the answer: gambit https://github.com/FriendsOfFlarum/masquerade/blob/master/src/Gambits/AnswerGambit.php

              I'm not sure whether anyone uses it and whether it's actually any good. It will search for an answer, but you unfortunately cannot specify which field to search in.

              That field could be used from the user directory page by entering ?q=answer:whatyousearchfor at the end of the URL.

                aaronlbpeterman for data like this, the Taxonomies extension has much better UX and integration with the user directory page. Unfortunately it's not compatible with the latest Flarum yet.

                a month later

                Version 0.4.0

                Added Flarum beta 16 compatibility.

                Set the required version to * in composer.json before updating Flarum. You can also use composer require fof/masquerade:* to make that change prior to the Flarum update.

                a month later
                "PHP message: PHP Fatal error:  Uncaught RuntimeException: Route masquerade.profile.configure not found in /app/vendor/flarum/core/src/Http/RouteCollection.php:158
                Stack trace:
                #0 /app/vendor/flarum/core/src/Http/RouteCollectionUrlGenerator.php(43): Flarum\Http\RouteCollection->getPath()
                #1 /app/vendor/fof/masquerade/src/Middleware/DemandProfileCompletion.php(38): Flarum\Http\RouteCollectionUrlGenerator->route()
                #2 [internal function]: FoF\Masquerade\Middleware\DemandProfileCompletion->__construct()
                #3 /app/vendor/illuminate/container/Container.php(877): ReflectionClass->newInstanceArgs()
                #4 /app/vendor/illuminate/container/Container.php(714): Illuminate\Container\Container->build()
                #5 /app/vendor/illuminate/container/Container.php(652): Illuminate\Container\Container->resolve()
                #6 /app/vendor/flarum/core/src/Forum/ForumServiceProvider.php(91): Illuminate\Container\Container->make()
                #7 /app/vendor/illuminate/container/Container.php(829): Flarum\Forum\ForumServiceProvider->Flarum\Forum\{closure}()"

                This crashes (500) a forum on beta.16 FreeFlarum. Any ideas?

                  SKevo are you able to share the php flarum info output, or the list of other extensions enabled? Also confirm this is the latest 0.4.0 version of Masquerade?

                  I don't see anything obviously wrong with the implementation, and it was definitely working when I published the beta 16 update.

                  This could be a conflict with another extension messing up the route registration or resolving the link builder too quickly in the application lifecycle.

                    clarkwinkelmann

                    Output of php flarum info on the forum that got the issue:

                    Flarum core 0.1.0-beta.16
                    PHP version: 7.4.3
                    Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, json, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache
                    +-------------------------------------+------------------+--------+
                    | Flarum Extensions                   |                  |        |
                    +-------------------------------------+------------------+--------+
                    | ID                                  | Version          | Commit |
                    +-------------------------------------+------------------+--------+
                    | flarum-flags                        | v0.1.0-beta.16   |        |
                    | flarum-tags                         | v0.1.0-beta.16   |        |
                    | flarum-lock                         | v0.1.0-beta.16   |        |
                    | flarum-markdown                     | v0.1.0-beta.16.1 |        |
                    | flarum-likes                        | v0.1.0-beta.16   |        |
                    | flarum-approval                     | v0.1.0-beta.16   |        |
                    | flarum-lang-english                 | v0.1.0-beta.16   |        |
                    | fof-spamblock                       | 0.5.0            |        |
                    | fof-linguist                        | 0.6.0            |        |
                    | fof-prevent-necrobumping            | 0.5.0            |        |
                    | askvortsov-pwa                      | v2.4.1           |        |
                    | clarkwinkelmann-emojionearea        | 0.3.1            |        |
                    | fof-gamification                    | 0.5.0            |        |
                    | v17development-blog                 | v0.3.0           |        |
                    | askvortsov-discussion-templates     | v0.7.0           |        |
                    | michaelbelgium-discussion-views     | v6.0.1           |        |
                    | fof-ban-ips                         | 0.4.0            |        |
                    | fof-cookie-consent                  | 0.5.0            |        |
                    | fof-upload                          | 0.14.0           |        |
                    | ianm-html-head                      | 0.2.0            |        |
                    | flarum-pusher                       | v0.1.0-beta.16   |        |
                    | fof-doorman                         | 0.4.1            |        |
                    | fof-disposable-emails               | 0.3.0            |        |
                    | fof-links                           | 0.6.0            |        |
                    | fof-merge-discussions               | 0.5.1            |        |
                    | fof-oauth                           | 0.3.0            |        |
                    | fof-share-social                    | 0.3.1            |        |
                    | fof-profile-image-crop              | 0.3.0            |        |
                    | fof-split                           | 0.7.0            |        |
                    | fof-terms                           | 0.6.2            |        |
                    | matteocontrini-imgur-upload         | v3.8.0           |        |
                    | xelson-chat                         | v1.0.0           |        |
                    | nomiscz-auth-steam                  | v0.2.1           |        |
                    | v17development-seo                  | v1.7.2           |        |
                    | askvortsov-rich-text                | v1.1.1           |        |
                    | askvortsov-trust-levels             | v0.2.1           |        |
                    | askvortsov-categories               | v2.1.1           |        |
                    | sycho-advanced-extension-categories | v0.1.1           |        |
                    | flarum-bbcode                       | v0.1.0-beta.16   |        |
                    | flarum-emoji                        | v0.1.0-beta.16   |        |
                    | flarum-mentions                     | v0.1.0-beta.16   |        |
                    | flarum-statistics                   | v0.1.0-beta.16   |        |
                    | flarum-sticky                       | v0.1.0-beta.16   |        |
                    | flarum-subscriptions                | v0.1.0-beta.16   |        |
                    | flarum-suspend                      | v0.1.0-beta.16   |        |
                    | fof-sitemap                         | 0.7.0            |        |
                    | fof-default-user-preferences        | 0.4.0            |        |
                    | migratetoflarum-canonical           | 0.2.4            |        |
                    | malago-achievements                 | 0.2.8            |        |
                    | ianm-synopsis                       | 0.2.0            |        |
                    | sycho-profile-cover                 | v1.2.4           |        |
                    | maicol07-sso                        | 1.9              |        |
                    | nearata-no-self-likes               | v1.1.0           |        |
                    | askvortsov-moderator-warnings       | v0.5.0           |        |
                    | fof-webhooks                        | 0.5.1            |        |
                    | fof-user-directory                  | 0.6.2            |        |
                    | fof-socialprofile                   | 0.3.0            |        |
                    | fof-reactions                       | 0.6.0            |        |
                    | fof-polls                           | 0.4.1            |        |
                    | fof-pages                           | 0.7.0            |        |
                    | fof-html-errors                     | 0.6.0            |        |
                    | fof-filter                          | 0.4.0            |        |
                    | fof-drafts                          | 0.4.0            |        |
                    | qiaeru-lang-french                  | v1.10.0          |        |
                    | therealsujitk-gifs                  | v3.0.0           |        |
                    | askvortsov-help-tags                | v0.4.0           |        |
                    | fof-nightmode                       | 0.8.0            |        |
                    | fof-default-group                   | 0.4.0            |        |
                    | fof-best-answer                     | 0.4.0            |        |
                    | starsriver-mathplus                 | 0.2.1            |        |
                    | dem13n-discussion-cards             | 0.3.0            |        |
                    | clarkwinkelmann-create-user-modal   | 1.2.1            |        |
                    | fof-bbcode-details                  | 0.3.0            |        |
                    | flarum-embed                        | v0.1.0-beta.16   |        |
                    | fof-pretty-mail                     | 0.4.0            |        |
                    | fof-user-bio                        | 0.5.0            |        |
                    | fof-username-request                | 0.5.0            |        |
                    | fof-forum-statistics-widget         | 0.6.0            |        |
                    | fof-formatting                      | 0.4.0            |        |
                    | fof-ignore-users                    | 0.4.0            |        |
                    | fof-stopforumspam                   | 0.5.0            |        |
                    | flarum-nicknames                    | 0.1.0-beta.16.1  |        |
                    +-------------------------------------+------------------+--------+

                    I am not sure whether it had Masquerade 0.4.0 installed (the version was set to * in composer.json when we updated to beta.16, so I assume that it installed latest version)