Hello,
Regarding on this:
https://discuss.flarum.org/d/34201-private-user-profiles-extensions/
Can someone develop an extension that does this?
I want users to have a checkbox in the settings to make their profile public or private.
Hello,
Regarding on this:
https://discuss.flarum.org/d/34201-private-user-profiles-extensions/
Can someone develop an extension that does this?
I want users to have a checkbox in the settings to make their profile public or private.
More specifically when someone visits a private profile, the number of posts/discussions and the posts/discussions themselves should not be displayed.
Thanks
I offer $75 for someone to develop this extension.
Thanks
rapty88 Lets get start
rapty88 what exactly are the requirements. The original discussion, linked above, is too vague. The implementation @huseyinfiliz is showing seems to hide some information but not all of it. What exactly would be required for bounties to be awardable?
Also understand that a profile might be blocked from the UX, this information will still be available in any of the API requests Flarum makes where that specific user is involved in (eg posts, discussions, likes).
luceos Yes, that's correct. What I'm currently doing is simply using middleware to manipulate the API that fetches comments and discussions on a user’s profile page by filtering it with the username.
In summary, when members enable the "Private Profile" setting, visitors to their profile will receive a warning that the profile is private. This also applies to the user API.
However, the search feature does not hide posts from these users. I don’t think there has been a request for this. For now, my plan is to share the extension with the requester once it meets the requirements mentioned in the first two comments. If they find it sufficient, the issue will be resolved. If they find anything lacking or request additional features, I will implement them as long as they are reasonable.
If the requests increase significantly, I will forgo the reward and release the extension publicly in its current state.
That’s my plan for now.
@luceos I am aware of these aspects, but my only requirement is that a user's posts and discussions are not displayed when their profile is visited. However, the number of posts and discussions should be displayed as N/A, or "private" or "hidden", or something else.
@huseyinfiliz The search feature must still return posts from these users, and this is exactly how it should work.
In summary, I am only interested in the profile view aspect: ensuring that the number of posts and discussions, as well as the actual posts and discussions themselves, are not visible.
Bounties enabled based on your instructions. Make sure the extension is MIT and publicly available on GitHub.
luceos The extension "Private Profile" is now live and publicly available on GitHub. It’s MIT licensed, and everything has been successfully set up for bounties.
rapty88 I tested the extension and it works perfectly - it does exactly what it should. Thanks!
I want to thank him for contributing this extension to Flarum.
Private Profile Extension: Private Profile is a simple Flarum extension allowing users to keep their profiles private.
Installation: composer require huseyinfiliz/private-profile
A discussion has been created for the extension. Waiting for moderator approval: Private Profile Extension
@huseyinfiliz I tested the extension and it works perfectly - it does exactly what it should. Thanks!
huseyinfiliz check the community guidelines on how to retrieve the bounty.
Well done, and what a turnaround time !
Bounties paid out on February 15th.