• Page 1 of 1
  • 1
uCoz Community » uCoz Modules » Site Users » Implement Access Control for Non uCoz Generated Pages (Said above)
Implement Access Control for Non uCoz Generated Pages
Yukito
Posts: 25
Reputation: 0

Message # 1 | 11:27 AM
Hello, uCoz.
Is there any way to implement via the uCoz API a user access control system for pages that are not generated by uCoz's Page Editor module?
I'm planning to implement a interactive page contained in one HTML file, and the system used in it has JS support.
I would like that only registered users had access to it.
Thank you in advance.
PS: If not in the right place, please move it and PM me.
--Yukito.

http://yukitoscorner.ucoz.co.uk
Soldierdevil
Posts: 154
Reputation: 1

Message # 2 | 5:41 PM
Everyone here left :p. Even uCoz left! Maybe you contact them direct on their page but they usually have an auto response asking for your site URL. Make sure you include it in your first message.
Systems developer
Yukito
Posts: 25
Reputation: 0

Message # 3 | 4:16 PM
Quote Soldierdevil ()

Guess they got tired of people complaining. I don't have anywhere else to move to if uCoz goes down for good.

http://yukitoscorner.ucoz.co.uk
Felicia
Posts: 185
Reputation: 6

Message # 4 | 2:54 PM
Soldierdevil, maybe ... or maybe not. Actually there is no automatic reply with the url, but most forget to include it in the description of the problem and it's needed to be able to check, but great remark, thanks.
Yukito, the answer is: wrap your script that will perform the work of that page in the condition:
Code
<?if($USER_LOGGED_IN$)?>script here<?endif?>

This condition works only for registered users, as a result the script will be executed only for registered users.
Do note that, for the condition to work, it must be written inside the template in the site's control panel. Conditions do not work in static files like index.html.

Good things come to those who wait!
uCoz Community » uCoz Modules » Site Users » Implement Access Control for Non uCoz Generated Pages (Said above)
  • Page 1 of 1
  • 1
Search: