Carma login log
From TMM Wiki
Jump to navigationJump to search
carma_login_log
- Purpose: Adds a login entry for a member in your NATS loginlog
- Usage: {carma_login_log hostname="nats.mydomain.com" siteid=3}
- Required: hostname, siteid
- Optional: none
- Default Templates Used: N/A
- Variables created: none
Parameters
(Required parameters in bold)
Parameter | Description | Possible Values | Default Value | Example |
---|---|---|---|---|
hostname | The domain of your NATS install | Any valid domain name | no default - this MUST be set | hostname="nats.mydomain.com" |
siteid | The NATS siteid this member belongs to | Any whole number, zero or greater | No default - this MUST be set | siteid=3 |
Description
This function will hit the special/loginlog.php script of your NATS v3 install so that you can see when your members logged into your CARMA site in your NATS members admin. The carma_login_log is designed so that no matter how many times the function is called, it will only make one hit to the loginlog.php script per user session.
The most common usage of the function is to place it at the top of all of your header templates. This way the loginlog is hit as soon as your member visits the first page in their session.
Note that in this function the siteid parameter should be the NATS siteid, NOT the CARMA siteid.
Also note that this function is NOT compatible with NATS v4.
See also Member Logging