Think I want to block my some members at Night per day or specific day.
How I can do using Wix Code?
You can create a page with a notification saying:
"The access to this content is not allowed between time-time" (Use a better message).
Then create a database of members that contains 2 fields:
userId (field type: text/reference to private members collection);
timeToBlock (field type: date & time).
Then on the site code panel, use wix-users to retrieve the current user id,
Query the database with the current user id, and get the timeToBlock.
If it is time to block then redirect the user to the blocking message page using wix-location.
to avoid querying the database on every single page, you can write the access times to the memory/session storage and query the DB only if the storage is empty:
Sir,pls try to put code.I am little bit confused.Pls sir.