Multisite Access

From TMMwiki
Jump to: navigation, search
NATS 3
Sites Admin
Sites
Site Setup
Configure Redirects
ID Numbers
Automail
Site User Management
Username Checking
Join Form Errors
Free Pre-Initial Checkbox
Payouts Based on Program and Join Options
Payouts Based on Join Option and Per Option
Adding Extra Site Tours
Site Partner
Join Options
Multisite Access
Removing Join Options
Tour Setup
Site Undelete
Join Option Box vs Button
Redirecting Traffic to a Sponsor
Qualified Join Page Hits
Type-In Traffic
Allowed languages
Linkcode Decoding

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 members
AuthMySQLNameField username
AuthMySQLPasswordField password
AuthMySQLPwEncryption none
AuthMySQLUserCondition "status=1 AND 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:

  • status=1 means the user is a valid user
  • 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:

  • status=1 and siteid in (2,3,7)

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

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