How to make a page reload when members login

How to make a page reload when members login

Which question are you needing help with? Also, caps looks angry - it’s intimidating to people. Try being nicer. =)

1 Like

Hey
Using Caps Locks is not recommended. Also read this forums recommendations and I am sure you will get help faster.

The last post you did the subject was “I need a quick help.”. That does not follow the recommendations nor does it tell us what you need help with. So less people will open your post. Please try to change this and re post your question with better subject and I am sure someone will help you.

Also post in code, images, screenshots… the more you give the easier it will be for us to help you.

1 Like

Awesome post! Thank you!

2 Likes

@sparkwix Hey, what is your exact issue and need for help. I can’t check a website and see what you need, please give more details so I can help you.

@andreas-kviby I want if possible for my website to reload automatically user logs in. because some buttons that are to hide after login will not hide until user manually reloads the page, and likewise buttons that suppose to show when user logs in.

@sparkwix Don’t be angry! Let’s fix it :slight_smile:

@sparkwix Hey, so whenever a user logs in into your site you want the page they are on to reload because some buttons that are not visible will be visible after reloading that page?

I don’t think reloading a page to solve this is the best idea because it will take extra time for the user to wait for the reload. To reload a page just use wixLocation.to(“url here”); but if you use the same page url in the wixLocation.to method it won’t reload so you need to redirect to another page or modify the current page url by adding some ?q=7657675 or something to make Wix think it’s another page.

But the best solution would be to show the buttons after the login Lightbox has been closed I guess? You could use the onLogin method to trigger when someone has logged in.
https://www.wix.com/code/reference/wix-users.html#onLogin

Hope it helps in some way forward.

//refresh the current webpage, just use this

                   [wixLocation.to](http://wixlocation.to/) (wixLocation.url);
1 Like