|
|||||
Perl Studio for Windows 95/98/2000/NTPerl Studio psMembers
Requirements: Unix/Linux/MySQL. psMembers example loginM embers LoginPlease click on the button below to enter the Members Only Area. A "pop-up" box will appear asking for your user name and password. Please enter the user name and password issued to you at the time of registration. If you are not a member, you will not be able to access the members only area. If you are a member, and are not able to access the members only area, please contact us at support@no_spam_email_address.com. Attention non members In order to access the members area, you must first become a member. For more information on becoming a member , please use the member signup form here .
How to tie the psMembers script into the shopping cart scripts.
Enter the url to the store members page at the top of the psMembers join.cgi script
Installing Perl Studio psMembers scripts , DBI::SQL version Unzip the psmembers.zip archive file on your local hard drive. Change the first line of the scripts to point to the correct path for perl version 5 or greater on your server. The default perl path in the scripts is #!/usr/local/bin/perl
(note: The script files params.cgi and mysql_lib.cgi do not need a perl path tag.) Upload all the script files into your cgi-bin directory.Create a 'users' directory under your public_html directory and cgi-bin directory.
Upload the html files into the public_html users directory. The member_print.html and users_print.html files are used to print database records by the admin scripts. Modify the html files to reflect your web site design. Edit the form action tags to point to the script files on your server. The template files display error messages by replacing the hidden html tags with the error messages returned by the script file. Hidden html tag: <!--error_message--> Make sure you have the hidden html tags in your template files after you edit the template files to reflect your web site design. The template files are read and displayed by the script files. None of the template files should be displayed directly to the user.
The scripts use the standard bracket replacement routine to replace the item in brackets with database or user input information.
Create a 'members' directory under your public_html '/users' directory .
Upload the access files into the public_html '/users/members' directory. Modify the .htaccess file to reflect the location of the your .htpasswd file.
Next, make sure the files have the correct permissions. Script file permissions should be 755. Always have an index.html file in your password protected directory, to prevent the browsers from displaying your .htpasswd file while displaying an directory index to users or search engine robots. User Modifications The following lines from the params.cgi file define the location of important files and database parameters. These lines must be modified before running the scripts: Required Modifications that need to be set before you use the scripts Access to your DBI::SQL Database will require that you supply your userid and password Access to your DBI::SQL Database will require that you supply the name of your database, The name of the database driver your using. It can be mysql or any DBI:DBD driver The URL to the database server, usually localhost, if the database server is on the same machine. Edit the number of days before a members usernames/passwords are expired from the
members database and the .htpasswd file.
First run the members_create.cgi and users_create.cgi script files to create your new members and users database table.
Customizing the fields in the users database table.You can change the fields in the users database table, but the users database table must retain the following fields.
|