Difference between revisions of "Nats display ratio"
From TMM Wiki
Jump to navigationJump to searchm |
TMMStephenY (talk | contribs) m |
||
Line 63: | Line 63: | ||
== See Also == | == See Also == | ||
* [[nats_display_stats_form]] -- Displays a stats form that often includes a ratio. | * [[nats_display_stats_form]] -- Displays a stats form that often includes a ratio. | ||
+ | |||
+ | [[Category:NATS4 Template Functions]] |
Latest revision as of 16:15, 20 May 2011
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.