Difference between revisions of "Carma login log"

From TMM Wiki
Jump to navigationJump to search
(New page: {{CARMA1 Manual | show_template_functions_section = true }} = carma_login_log = * Purpose: Adds a login entry for a member in your NATS loginlog * Usage: {carma_login_log hostname="nats.m...)
 
 
(One intermediate revision by the same user not shown)
(No difference)

Latest revision as of 18:21, 4 March 2014

CARMA
  Template Functions
CARMA Template Functions
carma_actor_photo_name
carma_comments_display
carma_comments_form
carma_count
carma_favorite
carma_gal_custom
carma_get_extended
carma_list
carma_list_favorites
carma_list_gals
carma_list_third_party_content
carma_list_videos
carma_login_log
carma_most_viewed
carma_newest
carma_news
carma_poll
carma_retrieve_sections
carma_search
carma_actors_search
carma_show_gal
carma_show_video
carma_top_actors
carma_top_rated
carma_upcoming
print_page_numbers
Template Function Aliases
carma_comment_display
carma_display_comment
carma_display_comments
carma_extended
carma_extended_data
carma_get_extended_data
carma_list_all
Common Parameters
assign
assign_prefix
count
data_only
display_on_assign
start
tpl

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