Difference between revisions of "NATS4 Multisite Access"

From TMM Wiki
Jump to navigationJump to search
Line 27: Line 27:
 
means:
 
means:
  
* status=1 means the user is a valid user
+
* siteid=N limits that user to that site.
* siteid=N limits that user to that site.
 
  
 
If you remove "siteid=N", members users can access all sites.  
 
If you remove "siteid=N", members users can access all sites.  
Line 34: Line 33:
 
The following line lets users access sites number two, three, and seven:
 
The following line lets users access sites number two, three, and seven:
  
  status=1 and siteid in (2,3,7)
+
  siteid in (2,3,7)
  
 
The following line gives full members multi-site access, but trial
 
The following line gives full members multi-site access, but trial
 
members can only access site number one:
 
members can only access site number one:
  
  status=1 and ((trial=1 and siteid=4) or trial=0)
+
  ((trial=1 and siteid=4) or trial=0)

Revision as of 11:56, 31 October 2009

NATS 4
Members Admin
The Members Admin
View Member Details
Add Member
MySQL Auth
Mod Authn DB
Multisite Access
Member Logging
Member Password Retrieval
OpenID Connect
Mod Auth OpenIDC
ID Numbers

Allow your members access more than one paid site by editing your .htaccess file.

General .htaccess File

AuthName "Members Only"
AuthType Basic
AuthGroupFile /dev/null
AuthMySQLHost localhost
AuthMySQLDB db_name
AuthMySQLUser db_user
AuthMySQLPassword password
AuthMySQLUserTable member_auth
AuthMySQLNameField username
AuthMySQLPasswordField password
AuthMySQLPwEncryption none
AuthMySQLUserCondition "siteid=N"    

AuthMySQLUserCondtion

In the last line of the example above, N should be a site ID number. These instructions will only change that last line; here's what it means:

  • siteid=N limits that user to that site.

If you remove "siteid=N", members users can access all sites.

The following line lets users access sites number two, three, and seven:

siteid in (2,3,7)

The following line gives full members multi-site access, but trial members can only access site number one:

((trial=1 and siteid=4) or trial=0)