Set permissions for custom HTML pages Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
3 posters

    Set permissions for custom HTML pages

    avatar
    mcel90
    New Member


    Male Posts : 6
    Reputation : 0
    Language : Dutch

    In progress Set permissions for custom HTML pages

    Post by mcel90 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
    kirk
    kirk
    Forumaster


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

    In progress Re: Set permissions for custom HTML pages

    Post by kirk 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.
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    In progress Re: Set permissions for custom HTML pages

    Post by LGforum 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.