nats_display_ratio

Displays an affiliate's hit-over-joins ratio

Article Topics: Customization, Templates

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"

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 assign parameter 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.

See Also

Last updated

Was this helpful?