uCoz Community » uCoz Modules » Page Editor » Limiting Access To Site Pages.
Limiting Access To Site Pages.
Natashko
Posts: 3366
Reputation: 171

Message # 1 | 3:17 PM
Access limitation

You can easily limit access to some parts of your website within uCoz web-services. To do so go to the page you want to limit access to. Login to the website as administrator with your login and password. You will be able to see a set of buttons in the right lower corner:



Click the one that is indicate in the image. Editing page will open. Find option: Groups that have access to this page. Check the boxes of the groups you want to have access to the page.



Do not forget to click Save afterwards.

You have limited access to the page. Users from the groups that are prohibited to have access to the page will be automatically redirected to “Access denied” page. You may customize its appearance and change the text of the message in Design management (templates) option of the Control panel.

How to set a password for a certain page?

Edit the code of this page. Add:
Code
<script language="JavaScript">          
if (top.location.search=="") {          
pass = prompt('Enter password');          
if (pass=='1') // Your password          
{ alert('Password accepted') } else { alert('Password not accepted!'), top.location.href="errorpas.htm" }// URL of the page where user will be redirected in case of error
};          
</script>


How to prevent users from viewing a page?

You might use conditional operators. Edit the code of Site pages template. Find $CONTENT$ there and substitute it with:
Code
<?if($USER_LOGGED_IN$)?>$CONTENT$<?else?>Text for guests. It can and should be edited. They can not see page content. <?endif?>

See more about conditional operators here: http://forum.ucoz.com/forum/37-471-1#36483

How to limit access to the page in accordance with users' age?

You need to add feature of converting date of birth into age between tags:
Code
<head></head>


You may call for this feature with the code:
Code
<script type="text/javascript">document.write(age('$USER_BIRTHDAY$'));</script>


Attachments: 4573660.png (2.0 Kb) · 9414958.png (6.5 Kb)
Armaros
Posts: 1424

Message # 16 | 3:19 PM
Quote (Mich)
tell us with understandeble words what u want, and not just images....
God damn it. I don't want to cause fight, but you are serious dumb & are spamming all over the forum.

HUNAR meant, CP -> Users -> User Groups -> Guest -> At each module beginning un-mark "Read entries"

HUNAR
Posts: 6
Reputation: 2

Message # 17 | 3:19 PM
its his answer untill he has no problems in i knew english well i would do my best in answering
starbright
Posts: 10
Reputation: 0

Message # 18 | 3:19 PM
Hey. Is there any way to create hidden pages and sub-pages with Ucoz?
The Lord Jesus is my Best Friend!
www.starbrightsite.com
elf83
Posts: 35
Reputation: 5

Message # 19 | 3:19 PM
you can create any page and if by hiden you mean not viewable to others exept admin or mod. you can do that by
creating a new page control panel->page editor->add new page
at the bottom it says:

Groups, having access to this page:
choose who u want to view the page and save.

Post edited by elf83 - Friday, 2008-10-03, 2:35 AM
starbright
Posts: 10
Reputation: 0

Message # 20 | 3:19 PM
Thank you, but I figured out how to do it.
The Lord Jesus is my Best Friend!
www.starbrightsite.com
LittleDino
Posts: 2
Reputation: 0

Message # 21 | 3:20 PM
ok i dont know if this should be in this forum or another but i was wonder if there was a way to put passwords on your pages so that ppl cant go into them without permission
Sunny
Posts: 9296
Reputation: 456

Message # 22 | 3:20 PM
LittleDino, you can adjust user group permissions so that definite pages will be available only for the groups you want.
I'm not active on the forum anymore. Please contact other forum staff.
LittleDino
Posts: 2
Reputation: 0

Message # 23 | 3:20 PM
alright ty
worldahiska
Posts: 1
Reputation: 0

Message # 24 | 3:20 PM
I want my user see login before they enter the site is that possible????????????????

Something like this


I love UCOZ it is grate system.
Post edited by worldahiska - Saturday, 2009-02-28, 6:51 AM
Brazen
Posts: 74
Reputation: 25

Message # 25 | 3:20 PM
worldahiska, Fist of all this is old thread, so don't dump old threads.
Second use Search before posting msgs or making new threads. Third
I suggest you read uCoz rules before doing anything in the forum.

Like I said search
http://forum.ucoz.com/forum/6-3189-1


Sunny
Posts: 9296
Reputation: 456

Message # 26 | 3:20 PM
Quote (Brazen)
worldahiska, Fist of all this is old thread, so don't dump old threads.

Here you are not right. It's better to "dump" the existing thread than to create a new thread about the same matter.


I'm not active on the forum anymore. Please contact other forum staff.
sameerpkk
Posts: 9
Reputation: 0

Message # 27 | 3:21 PM
I cant see some links in site menu. I attach the picture here. Even guset can watch these links. I am the Administrator of the site. I regret to tell you that the site is in my language.
Attachments: 4189418.jpg (127.3 Kb)
fakeros
Posts: 58
Reputation: 13

Message # 28 | 3:21 PM
I think problem there is in your user group permission. Please check your permissions for all groups.

Main > Users > User groups > List of permissions for all groups


I m back on track...
sameerpkk
Posts: 9
Reputation: 0

Message # 29 | 3:21 PM
But Sir, I have given permission to this group. And the group can watch file catelogue menu,Forum menu etc.But Contact us menu cant watch. And also I have maden a new group .It is also cant watch some menu links.
Armaros
Posts: 1424

Message # 30 | 3:21 PM
sameerpkk, Control Panel -> Page Editor -> Management -> Edit Page.

Check if user groups are enabled for that page. Read all options below text field.

uCoz Community » uCoz Modules » Page Editor » Limiting Access To Site Pages.
Search: