Just create your own signup and login lightboxes so that you can call them where ever you need them on your site by changing your custom sign up settings.
https://support.wix.com/en/article/corvid-enabling-custom-site-registration
My custom login lightbox code:
import wixUsers from 'wix-users';
import wixLocation from 'wix-location';
import wixWindow from 'wix-window';
$w.onReady(function () {
$w("#forgotPassword").onClick( (event) => {
//wixWindow.lightbox.close()
wixUsers.promptForgotPassword()
.then( ( ) => {
//
} )
.catch( (err) => {
let errorMsg = err; //"The user closed the forgot password dialog"
});
});
});
export function loginButton_click(event) {
let email = $w("#email").value;
let password = $w("#password").value;
wixUsers.login(email, password)
.then( () => {
console.log("User is logged in");
wixLocation.to("/account/my-account"); //Change the URL ending to whatever page you want to send the user to after they log in.
} )
.catch( (err) => {
console.log(err);
$w("#errorMessage").expand(); // You can delete this line if you are not going to add an error message. Use a regular text element set to 'collapse on load' from the Properties Panel.
} );
}
My custom signup lightbox code:
import wixUsers from 'wix-users';
import wixWindow from 'wix-window';
import wixLocation from 'wix-location';
$w.onReady(function () {
$w("#registerButton").onClick( (event) => {
let email = $w("#email").value;
let password = $w("#password").value;
let first = $w("#firstName").value;
let last = $w("#lastName").value;
wixUsers.register(email, password, {
contactInfo: {
"firstName": $w('#firstName').value,
"lastName": $w('#lastName').value,
}
} )
.then( (result) => {
let resultStatus = result.status;
wixWindow.lightbox.close();
wixLocation.to("/sign-in-status"); //Change the URL ending to whatever page you want to send the user to after they log in.
} );
} );
});
This works perfectly and closes after registering details before moving them onto my signup status page, then both names will be saved in contacts and once site member is approved the member details will be added to my ‘members’ database.
As for using the Wix Members App, that gets stored on the dataset called Memmbers/PrivateMembersData, of which you can read the data from if you want to use it.
Velo: Wix Members "PrivateMembersData" Collection Fields | Help Center | Wix.com
If you ever use it in code then you must add it with the members at the front nad not just simply private…
I use both the Wix Members app and my own members dataset on my site, however I don’t have the Wix Members Login bar anywhere on my site, I simply have the login button purely on my members only page with this being the only place my members can login or logout.
This allows me to have all the Wix Member app features like My Account page etc.
Setting up a Members Area | Help Center | Wix.com
However, it also allows me to create member profile pages for example where each user can add their own inputs that only themselves can access.
Velo Tutorial: Building Your Own Members Area | Help Center | Wix.com
I also used the code in the above tutorial to base my members only page on, so that instead of the code taking you to your members profile page, mine instead keeps me on my members only page and simply refreshes the page so that the code on the page will work and the login button will change its value to logout and the members only strips will be shown.