Masquerade by FriendsOfFlarum, the user profile builder
You've been waiting for it... here it is.
Extension update and namespace change
A new version of this extension including beta 8 compatibility and some minor fixes has been released. As previously written in the Flagrow anouncement, the updated Flagrow extensions are moving to FriendsOfFlarum.
The Flagrow version of this extension has been marked as abandoned and will no longer receive any update. Switch to the FriendOfFlarum version to get the new features, updates and fixes.
Updating from Flagrow
(only do this if you previously had Flagrow Masquerade installed)
This extension replaces Flagrow Masquerade.
Please backup your data before attempting the update!
First make sure you installed the latest Flagrow release will all migrations applied:
composer require flagrow/masquerade
# Go to admin panel and check extension is enabled
php flarum migrate
(Instead of running the migrate command you can also disable and re-enable the extension in the admin panel)
Then upgrade from the old extension to the new one:
composer remove flagrow/masquerade
composer require fof/masquerade
When you enable the new extension, the permissions and the data from Flagrow Masquerade will be moved to FoF Masquerade.
Changelog of the new 0.3.0 release
- Updated for beta 8 compatibility
- Removed non-English translations
- Fixed profile link being visible even if a user can't see a profile
- Fixed fillable attributes in the API for the admin panel
- Fixed javascript errors in the editor and viewer when type is null or if the field has no rules
- Moved to FriendsOfFlarum namespace
- Edited
clarkwinkelmann
Each time you create or edit a new save, you get an identical field
- Edited
Leanna Sounds similar to the issue also reported here in Catch The Fish https://discuss.flarum.org/d/19532-catch-the-fish/19 But I have not yet identified what it could be.
Can you provide the output of php flarum info
, and maybe try disabling all other third-party extensions to see if any is causing the issue ?
Are the double entries still there if you hard-refresh the page with F5 ?
Also what browser and browser version are you using ?
- Edited
clarkwinkelmann F5 refresh exists as well Google Chrome
+-----------------------------------+-------------------+--------+
| Flarum Extensions | | |
+-----------------------------------+-------------------+--------+
| ID | Version | Commit |
+-----------------------------------+-------------------+--------+
| flarum-approval | v0.1.0-beta.8 | |
| flarum-bbcode | v0.1.0-beta.8 | |
| flarum-emoji | v0.1.0-beta.8 | |
| flarum-flags | v0.1.0-beta.8.1 | |
| flarum-likes | v0.1.0-beta.8.1 | |
| flarum-lock | v0.1.0-beta.8 | |
| flarum-markdown | v0.1.0-beta.8 | |
| flarum-mentions | v0.1.0-beta.8.1 | |
| flarum-statistics | v0.1.0-beta.8 | |
| flarum-sticky | v0.1.0-beta.8 | |
| flarum-subscriptions | v0.1.0-beta.8 | |
| flarum-suspend | v0.1.0-beta.8 | |
| flarum-tags | v0.1.0-beta.8.2 | |
| csineneo-lang-simplified-chinese | v0.1.0-beta.8.27 | |
| isaced-email-verification-switch | 0.1.2 | |
| reflar-nightmode | 0.2.0 | |
| flagrow-sitemap | 0.2.0 | |
| flagrow-byobu | 0.2.2 | |
| flagrow-upload | 0.7.1 | |
| noriods-auto-more | 0.3.0 | |
| fof-transliterator | 0.1.1 | |
| fof-formatting | 0.1.2 | |
| fof-links | 0.2.0 | |
| flarum-auth-github | v0.1.0-beta.8 | |
| fof-profile-image-crop | 0.1.1 | |
| flarum-auth-facebook | v0.1.0-beta.8 | |
| flagrow-terms | 0.3.1 | |
| fof-pages | 0.2.2 | |
| saleksin-auth-google | v0.1.0-beta.8.0.3 | |
| flarum-pusher | v0.1.0-beta.8.1 | |
| csineneo-lang-traditional-chinese | v0.1.0-beta.8.26 | |
| flagrow-linguist | 0.3.1 | |
| fof-spamblock | 0.2.1 | |
| fof-frontpage | 0.1.3 | |
| ffrunkey-contact | 0.1.3 | |
| fof-default-group | 0.1.0 | |
| reflar-level-ranks | 1.2.1 | |
| fof-user-bio | 0.1.2 | |
| fof-share-social | 0.1.1 | |
| fof-user-directory | 0.3.1 | |
| kilowhat-mailing | 0.1.0 | |
| fof-prevent-necrobumping | 0.1.3 | |
| metastore-russian | 0.1.0-beta.8-1 | |
| ahrasis-malaysian | v0.1.0-beta.8.1.2 | |
| dynastyking-lang-ptbr | 0.1.2 | |
| michaelbelgium-dutch | v2.0.1 | |
| n04h-japanese | v1.2.1 | |
| wiwatsrt-thai | v0.1.0-beta.8 | |
| datitisev-dashboard | v0.1.0-beta.8.1 | |
| flarum-lang-english | v0.1.0-beta.8 | |
| fof-follow-tags | 0.2.0 | |
| wiwatsrt-best-answer | v0.2.2 | |
| v17development-seo | 1.0.1 | |
| flagrow-ads | 0.2.0-beta.1 | |
| clarkwinkelmann-circle-groups | 0.2.0 | |
| fof-masquerade | 0.3.0 | |
| antoinefr-money | v0.7.0 | |
+-----------------------------------+-------------------+--------+
Leanna thanks! I just tested a few ideas locally but couldn't reproduce.
I'll need some more details to try and reproduce:
- Does it happen every time you create a new field ?
- How do you submit the form ? Pressing Enter, clicking the button ?
- If you clicked the button, did you double-click ?
- How fast is form submission on your website ? Does it appear to be slow to save the data and refresh the view or is it nearly instantaneous ?
Can you maybe check the browser development console for javascript errors ?
Can you try to disable some extensions to see if the problem goes away ? There are way too many extensions there for me to try reproducing with all of them.
- Edited
clarkwinkelmann
I installed the new flarum and this extension, but the same problem,I can provide an administrator account and password if you need it, because this is my test server.
You can view a reply that I deleted below, which has a test address and an administrator account and password. You can use it at will.
Leanna ran into the same issue when trying to reproduce
@clarkwinkelmann the issue Leanna seems to be running into happens after you created a new field, edit it, and then attempt to save it even without editing any of the field information.
Ralkage thanks for reproducing. I identified the issue FriendsOfFlarum/masquerade34
There's still a ton of crappy code in that extension. I broke it by changing something I thought would never had any impact... I will refactor that code.
Version 0.3.1
released with a few fixes:
- Fix field edition that was creating new fields instead of updating
- Fix field UI not updating after deletion
Install the latest version with composer require fof/masquerade
- Edited
clarkwinkelmann When adding a field, adding dropdown options is impossible, because clicking the + submits the form. It's no biggie though, because when editing a field this problem doesn't occur. Still wanted to let you know
edit: actually adding/editing dropdown options is completely bugged for me. on the javascript side. it does save once you manage to get some fields in
Version 0.3.2
released. This update fixes the normal user search returning no result.
It's quite possible that no one was aware that you could search users by their answers with Masquerade. The feature was there since the first release of Masquerade and the issue was linked to that. Now to search by answer you need to use answer:<the answer you search>
in the search field, like for tags, emails, etc.
There's also a security fix, as the previous search implementation allowed anybody with the "view users list" permission, including guests, to search any user by answer, whether or not they were allowed to see their profiles. The new version fixes that by only allowing users with the "view profile" permission to perform an answer:
search.
Install with composer require fof/masquerade
- Edited
I'm gettin too many redirects when I set a field to required and force profile completion.
Looks like the /masquerade/configure
url triggers the redirect to itself making it impossible to actually complete the profile.
I'm using Flarum in a /forum
folder
I see that in vendors/fof/masquerade/src/Middleware/DemandProfileCompletion.php
theres a verification
$this->url != (string)$request->getUri()
In normal instalations it works fine, but when we install in subfolder
$this->url
returns the correct value: domain.com/forum/masquerade/configure
but $request->getUri()
returns incorrect value domain.com/masquerade/configure
Not sure how to resolve this.
- Edited
alanrezende thanks for the report!
We need to fix this in an update. I had never tested with a subfolder before. I'm surprised nobody encountered that before
Opened an issue so we remember to take a look as soon as possible FriendsOfFlarum/masquerade40
Released version 0.3.3
.
"Force profile completion" is now compatible with subfolder install.
The release also contains some small UI improvements in the admin panel by @iPurpl3x
Note to translators: 3 new titles were added in the admin panel.
Hello, Thank you guys for all extensions you build to help Flarum community,
Is it planed in the Fof/masquerad roadmap to add an "upload file" field to the existing list of field types, as the extension "Upload by Flagrow" is now available and working perfectly, this one could be used for the implementation ?
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.
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?