Hello,
I wonder if someone could guide me how to achieve this. I would like to add some custom fields to member profiles and those need to be selected from inputs such as checkboxes, radio buttons and drop-downs.
If I am not wrong, we can't add all those to default Wix member profiles (please explain if there's a way to do it) so I looked into other avenues and spent some time building a secondary profile section using the instructions given in here: https://support.wix.com/en/article/wix-code-tutorial-creating-custom-member-profile-pages
Using those instructions I built one area for information display and an update profile information section using a form. The main issue I am facing is that I can't set the profile information update form to read and write mode so every time someone wants to update their profile information, they start with a blank form. As they start with a blank form, unless I force them to fill all fields on the form, the profile information display section only shows the last submitted information.
Could someone guide me how to set the input/update form in read and write mode?
Many thanks in advance.
Thanks again. I tried it logging in as user but no luck. It's in here if you have any time or inclination to test it: https://bit.ly/2MivdhM
Hello @givemeawhisky ,
Once again many thanks for all the invaluable info. I managed to get most of the things but for some reason this is not working for me:
export function profileButton_click(event) { wixLocation.to('/members/${wixUsers.currentUser.id}'); }
For some reason this gives its literal value instead of converting it to a URL with the user ID value. I added a button to test the user ID and it its label shows the user ID without and issues and when I copy and paste the user ID to URL, it takes me to the profile page and I can access the profile update page using the same way.
Any suggestions?
Thanks and regards,
Hello @givemeawhisky ,
I cannot thank you enough for the wealth of information you've provided. I have a couple more questions and sorry if they doesn't make any sense.
a) Would these still work if we don't use custom sign up and login lightboxes? I am trying to prevent the need for members to manually join the forum and blog areas.
b) If we enable the built-in members section after we add these function, would we be able to utilise some of its functions too, such as adding the members side menu etc?
c) Have you ever tried adding these button to header/navigation instead of keeping them on a separate page? If we are reloading the page after every sign in, it should work I guess?
Many thanks and regards,
The login button on the page is not connected to anything through your Wix Editor, it is all done through the Wix Code itself here.
// prompt the user to log in wixUsers.promptLogin( {"mode": "login"} )
When the user clicks on the login button, it will prompt login which means your login lightbox should appear, if you have set your member signup settings to show your own lightboxes instead of Wix own windows.
https://support.wix.com/en/article/corvid-enabling-custom-site-registration
When the login page loads, we want to set up our buttons.
If the user is logged in, we want the login button's label to be Logout and we want to show the My Profile button.
If the user is not logged in, we want the login button's label to be Login and we want to hide the My Profile button.
Then when the user is logged in the vale of the button should be changed from Login to Logout, so the user simply clicks that button again to log themselves out later on.
Using your own custom lightboxes for login and signup means that you can't have the Join our Community checkbox on your lightboxes, as well as the Social Logins too, so unless you keep the default settings for it to be automatically ticked by default, then any user who signs up will have to manually join the community on their own My Account Page.
https://support.wix.com/en/article/becoming-a-forum-member-and-joining-the-forum-community
https://support.wix.com/en/article/becoming-a-new-blog-member-and-joining-the-blog-community
Hello @givemeawhisky ,
Many thanks for the response. I tried to follow these instructions given in the first article and everything works except a couple.
1) Do we link anything to Login (loginButton) on the login page? I have a custom login form on a lightbox and if I link to that button, it logs me in, but I can't logout as clicking on that button brings that lightbox. If I don't link anything to it, nothing happens.
2) Do we need to connect this 'Members' collection to our login and sign up forms?
3) Do these members 'sync' with everything so they can seamlessly access Forum, Blog areas using the same access?
Many thanks in advance,
https://support.wix.com/en/article/corvid-tutorial-building-your-own-members-area
https://support.wix.com/en/article/adding-custom-fields-to-contacts