jaypatelani I don't understand the question.

You can create users with emails&usernames which are available in Flarum, just like you would during normal registration.

2 months later
2 months later
2 months later

clarkwinkelmann composer require clarkwinkelmann/flarum-ext-create-user-modal

It looks very nice.
However, can you update this extension to work on PHP7.3

    PhongLe do you get an error? This extension doesn't have any constraint on the PHP version, so it should be installable on any PHP version also supported by Flarum.

    a month later

    Hi @clarkwinkelmann, I installed your extension and I was able to see the "create user" button below my profile. However, now it's not showingbup. Not sure what I did differently. Maybe its incompatible with a certain extension?

      Justoverclock Right, but the extension I mention above creates a public user directory. After exploring more, I see the "Create new user" button moves away from the user dropdown menu to the user directory page as you see here:

      I think what you describe is this feature?

      clarkwinkelmann If the User Directory extension is enabled, the link is added to the top of the user list. Otherwise the link is added to the session dropdown.

      It's intentional that the button moves if FoF User Directory is enabled.

      If the button is gone from both places, that would be strange, but I'd investigate if that was the case.

        clarkwinkelmann Gotcha, good to know, thanks for clarifying.

        As a suggestion, I think it makes sense to have the button in the user settings within the admin panel. I also have an extension to show nicknames. It would be great if I can set the the nickname during the account creation.

        9 months later

        Version 1.3.1

        • Fixed compatibility with social login extensions that would break the create user modal
        • Removed blank space at the bottom of the modal left over from the footer
        • Added class name to modal for use in custom CSS
        • Added modal class export for use in other extensions or via javascript console
        • Updated to Webpack 5, requires Flarum 1.2+
        3 months later

        When I create a new user, I get the error message "500 Internal Server Error POST https://forum.ecocounts.community/api/users" after the "please try to reload the page". Reloading the page is fine, then all becomes OK.

        I see this in the apache log:

        [Sun Sep 11 16:38:18.181516 2022] [proxy_fcgi:error] [pid 2259747:tid 139873777497856] [client 51.155.201.220:50292] AH01071: Got error 'PHP message: PHP Fatal error: Cannot use ::class with dynamic class name in /home/carbonc/sites/flarum/storage/views/9b7fa1be6c50ebe5e1807399018192674d974eaa.php on line 5', referer: https://forum.ecocounts.community/users

          adam42 could you share the content of /home/carbonc/sites/flarum/storage/views/9b7fa1be6c50ebe5e1807399018192674d974eaa.php ? It's an auto-generated file so I need to see what's on line 5 to get an idea of what went wrong.

          Here you are:

          carbonc@webarch7:~$ cat sites/flarum/storage/views/9b7fa1be6c50ebe5e1807399018192674d974eaa.php 
          <?php echo $translator->trans('fof-subscribed.email.body.newUser', [
              '{recipient_display_name}' => $user->display_name,
              '{actor_display_name}' => $blueprint->user->display_name,
              '{forum_url}' => $url->to('forum')->base(),
              '{user_url}' => $url->to('forum')->route('user', ['username' => $slugManager->forResource($blueprint->user::class)->toSlug($blueprint->user)]),
          ]); ?>
          
          <?php /**PATH /home/carbonc/sites/flarum/vendor/fof/subscribed/resources/views/emails/userCreated.blade.php ENDPATH**/ ?>