Set permissions for custom HTML pages
3 posters
Page 1 of 1
Set permissions for custom HTML pages
Hi,
I want to create a HTML page with an embedded google spreadsheet for the contact information of the members on my forum. Obviously I don't want anyone to be able to see/access this page.
Where can I set permissions for custom HTML pages? So that only members of the forum can view it. I couldn't find it anywhere in the admin-panel...
Any thoughts?
Marcel
I want to create a HTML page with an embedded google spreadsheet for the contact information of the members on my forum. Obviously I don't want anyone to be able to see/access this page.
Where can I set permissions for custom HTML pages? So that only members of the forum can view it. I couldn't find it anywhere in the admin-panel...
Any thoughts?
Marcel
mcel90- New Member
- Posts : 6
Reputation : 0
Language : Dutch
Re: Set permissions for custom HTML pages
you cant.
Like you can post the links on forums you have permissions set for.
But if another member shares the link then there is no way to prevent someone from viewing the page.
Like you can post the links on forums you have permissions set for.
But if another member shares the link then there is no way to prevent someone from viewing the page.
kirk- Forumaster
- Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Re: Set permissions for custom HTML pages
You can set a simple password on a page like this:
First of all, you should write out the HTML for your page and put it ALL in a div. with an ID of something like 'full-page'. You can then make the full-page dissappear until the password is entered.
Only once the person has type the password in will they see the page.
This isn't the most secure way, but it will keep people out who don't know much about HTML or Javascript.
First of all, you should write out the HTML for your page and put it ALL in a div. with an ID of something like 'full-page'. You can then make the full-page dissappear until the password is entered.
- Code:
<script>
var the_password = "YOURPASSWORDHERE";
var x=prompt("Password:","");
while (x != the_password) {
x=prompt("Password:","");
document.getElementById('full-page').style.display='none';
}
document.getElementById('full-page').style.display='block';
</script>
Only once the person has type the password in will they see the page.
This isn't the most secure way, but it will keep people out who don't know much about HTML or Javascript.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum