The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Set permissions for custom HTML pages

View previous topic View next topic Go down

In progress Set permissions for custom HTML pages

Post by mcel90 on September 28th 2011, 12:16 pm

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

mcel90
New Member

Male Posts : 6
Reputation : 0
Language : Dutch

Back to top Go down

In progress Re: Set permissions for custom HTML pages

Post by kirk on September 28th 2011, 4:05 pm

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.

kirk
Forumaster

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

In progress Re: Set permissions for custom HTML pages

Post by LGforum on September 29th 2011, 12:50 am

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.
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

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum