Difference between revisions of "Nats4 Member Logging"

From TMM Wiki
Jump to navigationJump to search
m
Line 3: Line 3:
 
}}
 
}}
  
Member logging is a feature in [[NATS4]] that allows you to direct [[NATS]] to keep a record of all member logins. To use this feature, send a HTTP GET request from your server to the PHP script: ''member_loginlog.php'' with your selected site's [[ID Numbers|ID number]] and the member's username. This will return of a log of that particular member's login history.
+
'''Note: This article is written for [[NATS4]]. If you are using [[NATS4.1]], please see our [[Affiliate Login History]] wiki article for information on the Login History affiliate page.'''
 +
 
 +
Member logging is a feature in [[NATS4]] that allows you to direct [[NATS]] to keep a record of all [[Ct#Member|member]] logins. To use this feature, send a HTTP GET request from your server to the PHP script: ''member_loginlog.php'' with your selected [[Ct#Site|site]]'s [[ID Numbers|ID number]] and the [[Ct#Member|member]]'s username. This will return of a log of that particular member's login history.
  
 
For example, you can add the following code to a PHP script and then run it:
 
For example, you can add the following code to a PHP script and then run it:
Line 23: Line 25:
 
After this feature is activated, the specified member's login history will show up in the [[Members Admin|Members Admin's]] members details.  
 
After this feature is activated, the specified member's login history will show up in the [[Members Admin|Members Admin's]] members details.  
  
To find the member's login log, go to the [[NATS4 Members Admin|Members Admin]], find the member you are tracking, and click the "View Member Details" icon. Scroll down to the bottom of the Member Details page to find the Login Log for your specified member.
+
To find the [[Ct#Member|member]]'s login log, go to the [[NATS4 Members Admin|Members Admin]], find the member you are tracking, and click the "View Member Details" icon. Scroll down to the bottom of the Member Details page to find the Login Log for your specified member.
  
 
[[File:Login_log.PNG|450px|Example of a Member Login Log]]
 
[[File:Login_log.PNG|450px|Example of a Member Login Log]]
  
 
== Extra Features ==
 
== Extra Features ==
You can also record one login as accessing multiple sites. To add more than one site to your member login history, use the following siteid parameter:
+
You can also record one login as accessing multiple [[Ct#Site|sites]]. To add more than one site to your member login history, use the following siteid parameter:
  
 
<pre>
 
<pre>
Line 35: Line 37:
  
 
[[Category:Also NATS4 Article]]
 
[[Category:Also NATS4 Article]]
 +
[[Category:NATS4 Programs]]

Revision as of 12:57, 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

Note: This article is written for NATS4. If you are using NATS4.1, please see our Affiliate Login History wiki article for information on the Login History affiliate page.

Member logging is a feature in NATS4 that allows you to direct NATS to keep a record of all member logins. To use this feature, send a HTTP GET request from your server to the PHP script: member_loginlog.php with your selected site's ID number and the member's username. This will return of a log of that particular member's login history.

For example, you can add the following code to a PHP script and then run it:

$url="http://www.example.com/member_loginlog.php?username=$_SERVER[REMOTE_USER]&siteid=123&ip=$_SERVER[REMOTE_ADDR]";

@file($url);

These logs are a secure feature in NATS. As a result, the IP address of the server that is requesting information must be in the NATS configuration file $config['SECURE_IPS'] setting.

For example:

$config['SECURE_IPS'] = Array('123.123.123.123'); 

Simply replace "123.123.123.123" in the above example code with your server's IP address.

After this feature is activated, the specified member's login history will show up in the Members Admin's members details.

To find the member's login log, go to the Members Admin, find the member you are tracking, and click the "View Member Details" icon. Scroll down to the bottom of the Member Details page to find the Login Log for your specified member.

Example of a Member Login Log

Extra Features

You can also record one login as accessing multiple sites. To add more than one site to your member login history, use the following siteid parameter:

$url="http://www.server.com/member_loginlog.php?username=$_SERVER[REMOTE_USER]&siteid=5,64,2&ip=$_SERVER[REMOTE_ADDR]";