Page 1 of 1

How can we grant guests a basic read-only access?

Posted: Mon 30. Jun 2025, 08:39
by bestng
How can we grant guests a basic read-only access?
Such that they can see the game board but cannot play until login?

Re: How can we grant guests a basic read-only access?

Posted: Mon 30. Jun 2025, 13:30
by Mike-on-Tour
This is not possible with the current permissions.
Implementing this would at least be complicated because of the usage of PHP, jQuery and Ajax.

Re: How can we grant guests a basic read-only access?

Posted: Mon 30. Jun 2025, 13:34
by bestng
Mike-on-Tour wrote: Mon 30. Jun 2025, 13:30 This is not possible with the current permissions.
Implementing this would at least be complicated because of the usage of PHP, jQuery and Ajax.
Ok. Thanks.

Maybe I'll construct a simple html file alternative for guests and partition it with IF S_IS_BOT conditional statement. All in the mot_sudoku_main html file only.

That way, guests will load a different html body for sudoku_main file from logged in memmer. I think this is a simple solution.

Thanks.

Re: How can we grant guests a basic read-only access?

Posted: Mon 30. Jun 2025, 16:29
by Mike-on-Tour
S_IS_BOT will not work for this case. As the name implies this only tells you whether the user is a bot or not.
For your purpose you will need to use S_USER_LOGGED_IN.

Re: How can we grant guests a basic read-only access?

Posted: Mon 30. Jun 2025, 18:25
by bestng
Mike-on-Tour wrote: Mon 30. Jun 2025, 16:29 S_IS_BOT will not work for this case. As the name implies this only tells you whether the user is a bot or not.
For your purpose you will need to use S_USER_LOGGED_IN.
You are very correct sir!

I meant IF S_USER_LOGGED_IN

Thanks.