Difference between revisions of "NATS4 Multisite Access"

From TMM Wiki
Jump to navigationJump to search
m
 
m
 
(4 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
}}
 
}}
  
Allow your [[Member|members]] access more than one paid site by editing
+
Multisite Access allows your [[ct#Member|members]] to access more than one paid [[Ct#Site|site]]. This can be done by editing your .htaccess file to reflect the following:
your .htaccess file.
 
  
 
==General .htaccess File ==
 
==General .htaccess File ==
Line 15: Line 14:
 
AuthMySQLUser db_user
 
AuthMySQLUser db_user
 
AuthMySQLPassword password
 
AuthMySQLPassword password
AuthMySQLUserTable member
+
AuthMySQLUserTable member_auth
 
AuthMySQLNameField username
 
AuthMySQLNameField username
 
AuthMySQLPasswordField password
 
AuthMySQLPasswordField password
 
AuthMySQLPwEncryption none
 
AuthMySQLPwEncryption none
AuthMySQLUserCondition "status=1 AND siteid=N"     
+
AuthMySQLUserCondition "siteid=N"     
 
</pre>
 
</pre>
  
 
== AuthMySQLUserCondtion ==
 
== 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:
 
  
* status=1 means the user is a valid user
+
In the last line of the example above, ''siteid=N'' should be a site ID number.
* siteid=N limits that user to that site.
+
These instructions will only change that last line; the following explains what it means:
  
If you remove "siteid=N", members users can access all sites.  
+
* ''siteid=N'' limits the [[ct#Member|member]] to that particular site.
  
The following line lets users access sites number two, three, and seven:
+
If you remove "siteid=N", your members will be able to access all of your [[Ct#Site|sites]]. The following line will allow users to 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 will give full members multi-site access, but trial members will only be able to access [[Ct#Site|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)
 +
 
 +
[[Category:NATS4 Members Admin]]

Latest revision as of 15:19, 19 May 2011

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

Multisite Access allows your members to access more than one paid site. This can be done by editing your .htaccess file to reflect the following:

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, siteid=N should be a site ID number. These instructions will only change that last line; the following explains what it means:

  • siteid=N limits the member to that particular site.

If you remove "siteid=N", your members will be able to access all of your sites. The following line will allow users to access sites number two, three, and seven:

siteid in (2,3,7)

The following line will give full members multi-site access, but trial members will only be able to access site number one:

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