


Create a database in MySQL for the Paypal Subscription Manager to use.


If needed, create a database user for Paypal Subscription Manager in MySQL.



Create a file on your web server and upload the entire msm file into 
that directory.

The following files and directories need to be writable by the web server.



Changing the file or directory permissions
 to be world writable 
(for *nix servers mode 0666 for files and 0777 for directories).



FTP into the msm folder you created and do these changes.


Specifically Chmod These folders to 777

lib

install

install/templates_c


members

manager

manager/templates_c



templates_c
/



Then also Chmod the pages in these files below to 0666




lib/config.php


members/.htaccess


members/.htpasswd


manager/.htaccess


manager/.htpasswd




Now open a web browser and go to 

http://yourdomain.com/msm/install/index.php

Most of the stuff will be prefilled in for you, however you will need to
add your Database, the DB user and pass.

Then check the Create Tables box to have your database populated.

Set your paypal email address 

Set your membership prices and terms if there is a trial period
select proper check boxes.

Then set regulat membership terms on bottom.

Last if you would like to have all new members entered
into an autoresponder, enter that autoresponder email
address in last step and check the box.

If you need an autoresponder we reccomend 
http://automatic-responder.com with this system.

********************************************************8



URLs You Need To Use The Paypal Member Script:



  
(installation process)


msm/install/index.php

For security purposes, you should either password protect 
this directory, or delete it after your install. You may 
reinstall the install  directory in the future by copying 
it from the original archive back into your msm folder later.

----------------------------------

(member signup)

msm/registration/index.php  



----------------------------------


(Allows a member to change the registration information)

msm/registration/index.php
/registration/index.php?action=edit 


----------------------------------

(Form for member to request their password be sent to them via email)

msm/registration/index.php?action=sendpw 



----------------------------------



(Membership manager - This directory needs to be protected 
- Default username for most servers is: 
"admin" password "admin1234" 
see below to see how to enable this);

msm/manager/index.php 


-----------------------------------




(The protected/managed directory that only current 
subscribers to your site may visit)





 
You will upload your member content here!

msm/members/   


------------------------------------


File called if the user cancels the Paypal process

msm/cancel.html  


------------------------------------



File called after a sucessful payment


msm/thanks.html  



------------------------------------


Header called in almost every file.




msm/templates/head.html 



------------------------------------


Footer called in almost every file.




msm/templates/foot.html 


-----------------------------------

Message emailed to a user when they forget their password.

You may use any of the "USER TAGS" below in this email.


msm/templates/send_pw_mail_msg.tpl


-----------------------------------


Message emailed to a user when their Paypal payment is confirmed.

You may use any of the "USER TAGS" below in this email.



Almost all of the .tpl files may be customized with no effect 
to the application.



msm/templates/welcome.tpl 

--------------------------------


The .php files should not be modified unless you know what you are doing.



The .tpl files are Smarty template files. 

For more information on using Smarty functions and tags, 
please visit: http://smarty.php.net/




----------

USER TAGS
-----------


You may use these smarty tags in some of the template files which will be replaced by the associated values.




{$user->user_id}

{$user->user_firstname}

{$user->user_lastname}
{$user->user_email}

{$user->user_password}

{$user->user_telephone}

{$user->user_fax}

{$user->user_address}

{$user->user_address2}

{$user->user_city}

{$user->user_state}

{$user->user_country}

{$user->user_postcode}

{$user->user_created}   
- Unix Timestamp (can be made into human rqdable value using Smarty's date_format tag)

{$user->user_status}    
- A numerical value 1=Registered 2=Paypal Signup 3=Paypal Cancelled 4=Paypal Failed 5=Paypal Paid 6=Paypal End of Term




******************************





-----------
How to protect the "manager" directory.



Generally these are created using the htpasswd application 
found on most unix machines such as the "Password Protect Directories"

Should you need to manually create these files do as below.

You need to create 2 files to protect a web directory 
and be Allowed to override Authentication Access by 
the System Administrator in your webserver configuration.



The first file describes the authentication and were to find the passwords.


It should be called ".htpassed" and contain the following


---
AuthUserFile /path/to/.htpasswd
AuthType Basic
AuthName "MY REALM NAME 
(example My Site Manager)"
require valid-user


---

The second file is the password file called 
".htpasswd".

It contains usernames and encrypted passwords.





Edit the thanks.html and cancel.html pages

You can welcome them to the site on the thanks.html 
and give them a link to the login url which is

http://yourdomain.com/msm/members/   


If you wish to use paypal's IPN system then set your passback url at paypal as
http://www.yourdomain.com/msm/paypal/ipn.php

Advanced users may install this script in the server root
by not uploading the whole msm folder in one shot but 
instead uploading just the files in the msm folder into 
the root or any other directory you wish.





admin:k4dwJ0eGlUIFw


