PDA

View Full Version : FREE Pro-Forma "Members Only" Site Code


Ancora
09-27-2007, 05:07 PM
Written in ASP.NET 2.0 / C# / JavaScript

Contains the following:
- Home page with a menu
- Create an account page
- Login / Change Password page
- Recover Password page
- Contact Us page
- Membership Manager page for the Administrator
- Role Manager page for the Administrator
- Members Only folder

Now you can quickly create a "Members Only" site, by doing not much more than building all of your content pages and placing them in the App_Content folder.

The hosting account must support ASP.NET 2.0.

Two "Roles" have already been created: "Administrators" and "Members".

An Administrator's account has also been created:
UserID: Admin_1
Password: password_1

A site visitor creates an account. A welcoming email is sent, which states that the account will be activated the first time the user logs in. Upon logging in for the first time, the user is AUTOMATICALLY assigned to the "Members" role.

A "Members Only Content" menu option becomes visible only for logged in "Members" and the Administrator. Even if someone knows a URL that is within the App_Content folder, they won't be able to view it.

A "Membership Manager" menu option becomes visible only for the logged in Administrator.

Using the Membership Manager page, the Administrator can:
- View a list of, and manage some important user account details:
- Current email address
- Approved or Disapproved status
- Locked or not locked out status
- Whether a user is online or not
- The date/time the account was created
- Roles to which the user has been assigned
- Deactivate a user
- Reactivate a user
- Unlock a user's account (an account is "Locked" if 5 failed login attempts occur within a 10 minute period)
- Delete a user account
- Change a user's email address
- Assign a user to a role
- Delete a user from a role

The Administrator also has access to the "Role Manager" page.
There, the Administrator can create new roles, or delete existing roles. It is best to just leave things as they are on that page.

The "Contact Us" page may be used by anyone, and has fields for an email address and a message. Clicking the Submit button sends the message to a pre-defined Admin address, in the Web.config fie. Also, the maximum number of words in the message is limited to a pre-defined value in the Web.config file.

Email me for the download link.