Release 1.2.0
Added Flarum beta 15 compatibility. This update should automatically be installed when you update Flarum.
Added Flarum beta 15 compatibility. This update should automatically be installed when you update Flarum.
clarkwinkelmann can admin create new user with e-mail addresses from old forum database with this extension ? Or it has to be done via database?
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.
Released version 1.2.1 with Flarum beta 16 compatibility.
Released version 1.3.0 with Flarum 1.0 compatibility.
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.
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?
ethanosullivan yep an extension can cause this, try disabling extension one by one...to find the culprit
Justoverclock After playing around, looks like User directory by FriendsOfFlarum is the culprit.
@clarkwinkelmann I'll let the creator know, but maybe it will require some collaboration to make them compatible.
ethanosullivan Flarum 1.0 have a built-in user directory, have u the latest version?
Justoverclock I do, but not sure how to access it, couldn't find that info in the docs.
Yes, you are correct but you can access the button from https://yourdomain/users. (if you have both user directory and create model enabled)
OR by going to user directory
ethanosullivan is in the admin dashboard, you can see the "users" menu in the left sidebar
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.
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.