Powered by nCubed.com

Members Only

Welcome to our Members Only area. Please enter the password and user name we supplied you to Log In.

Members Only Access
User Name
Password

Password Protection Engineered by nCubed.com

The following Username/Password combinations will grant you access:

 

For the most up to date Support documents, please refer to the nCubed.com support section for the Members Only Free script.

 

 

What is this?

The script allows for a password protected page. The following outlines the current version's (nCubed.com Members Only Free Version 0.6) features:

  1. Add an unlimited number of unique users.
  2. Display the user's name anywhere on the password protected page with a simple variable.
  3. Does not require the use of session variables or cookies to authenticate.
  4. With the free version, we are only building in the ability to protect a single page. However, if you ask nicely we can show you how to protect as many pages as you want.

Requirements

You must be hosted on a server that supports ASP/VBScript. Any standard Windows NT or Windows 2000+ server with IIS 5.0 or higher will meet the requirement.

How does it work?

The script contains three separate files:

n3_membersFree.asp

This is the 'parent' file containing the log in form and the actual password protected page content based the user authentication. This file also contains two include files, n3_class.asp and n3_config.asp (explained below).

You can change the name of this page to anything you want - just be sure the page has an .asp extension, i.e., my_page.asp

Unprotected Content:
To add content the user sees prior to logging in, enter the information between the Else/End If ASP tags:

<% Else %>
Unprotected Content
The log in form (already built) is already contained within the Else/End If tags.
< % End If %>

Protected Content:
To add the password protected content to the page, enter any and all information between the If/Else ASP tags:

<% If blnAccess = True Then % >
Protected Content
<% Else %>

If you want to include a greeting to your user, add the ASP variable 'strRealName' within the protected area: <%=strRealName%>. There is an example of this included once you log in.

If you want to include a log out link add this code anywhere within the protected area:
<a href="<%= strPage %>?action=LogOut">log out</a>. There is an example of this once you log in.

Content Always Seen:
To add content the user sees regardless of being logged in, simply place it either above the <% if blnAccess = True Then %> ASP tag (this could be a common header), or below the <% End If % > ASP tag (this could be a common footer).

onload Page Function:
There is a pre-built onload function contained in the document's head. This function currently places the user's cursor automatically into the log in form's text field. If you have additional onload calls, add them to the onload function. If you want to move them to the body tag, then let us know and we'll show you what to do.

Embedded CSS Style Block:
The embedded style block contains CSS specific to the Log In Table/Form. Feel free to modify these styles to your liking - hopefully the names are fairly self-explanatory.

Linked CSS File:
The linked CSS file (n3_basic.css) contains basic page formatting. Feel free to modify it to your liking, delete it all together or replace it with your own page formatting CSS.

n3_class.asp

This is an include file found near the top of n3_membersFree.asp. Contains the Class to authenticate the user. You really shouldn't mess with this file, and you definitely shouldn't delete it.

n3_config.asp

This is an include file found near the top of n3_membersFree.asp. Contains the configuration for the password protected page. This is the file you add your user names, passwords and real names. Open the file and review the notes - everything should be fairly self explanatory.

 

 

(nCubed.com Members Only Free Version 0.6)