Difference between revisions of "Nats display ratio"
From TMM Wiki
Jump to navigationJump to searchm |
(No difference)
|
Revision as of 14:14, 3 November 2008
nats_display_ratio
Display an affiliate's hits-over-joins ratio.
Alias: display_ratio
Parameters
(Required parameters in bold)
Parameter | Description | Possible Values | Default Value | Example |
---|---|---|---|---|
hits | Number of the affiliate's referred hits | Any whole number greater than zero | Required | hits="123" |
joins | Number of the affiliate's referred hits | Any whole number greater than zero | Required | joins="123" |
assign_prefix | Prefix the variable name with this word | Any valid Smarty variable name | None. Not used | assign_prefix="myvar" |
assign | Make the variable name this word (see notes) | Any valid Smarty variable name | None. Not used | assign="myvar" |
display_on_assign | Display output even if the parameter, assign, is used | 0 or 1 (exclusive) | Not set. Output is not displayed if assign is used | display_on_assign="1" |
Output
The ratio of hits over joins. For example, 1:1.
If the parameter, assign, is used, output is put in the variable named by assign_prefix and assign and not displayed. If assign and display_on_assign are both used, output is put in a variable and displayed.
Notes
None.
See Also
- nats_display_stats_form -- Displays a stats form that often includes a ratio.