Difference between revisions of "Nats display latest adtools"
From TMM Wiki
Jump to navigationJump to searchLine 63: | Line 63: | ||
|} | |} | ||
− | == | + | == Output == |
+ | The latest adtools displayed using the function_display_latest_adtools template. The list of latest adtools is assigned to the <tt>{$adtools}</tt> and <tt>{$adcount}</tt> Smarty variables, which you may prefix with the value of the assign_prefix parameter. | ||
+ | |||
+ | == Notes == | ||
The following parameters are added in version 4.0.71.1. These parameters are overridden by parameters of the same name in the REQUEST array. | The following parameters are added in version 4.0.71.1. These parameters are overridden by parameters of the same name in the REQUEST array. | ||
*latest_adtool_type | *latest_adtool_type | ||
Line 69: | Line 72: | ||
*latest_adtool_start | *latest_adtool_start | ||
*latest_adtool_count | *latest_adtool_count | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 13:15, 14 January 2010
nats_display_latest_adtools
Briefly describe what the function does.
Alias: display_latest_adtools
Parameters
(Required parameters in bold)
Parameter | Description | Possible Values | Default Value | Example |
---|---|---|---|---|
tpl | Template used to display output | Any valid template | The template, function_display_latest_adtools | tpl="my_template" |
program | Get latest adtools for this program | Any valid program I.D. number | The affiliate's default program I.D. number | program="123" |
latest_adtool_type vesrion 4.0.71.1+ |
Get latest adtools of this type | Any valid adtool I.D. number | 1 Static Banners | latest_adtool_type="8" |
latest_adtool_time_range vesrion 4.0.71.1+ |
Get adtools within this time range | -1 day, -1 week, -1 month, -3 months | -1 week | latest_adtool_time_range="-1 month" |
latest_adtool_start vesrion 4.0.71.1+ |
Skip this many adtools before displaying. | Any number | 0 | latest_adtool_start="5" |
latest_adtool_count vesrion 4.0.71.1+ |
Display this many adtools | Any number | 5 | latest_adtool_count="10" |
assign_prefix | Prefix output variables with this word. (Click link for details) | Any valid Smarty variable name | None. (No prefix is used) | assign_prefix="myvar" |
Output
The latest adtools displayed using the function_display_latest_adtools template. The list of latest adtools is assigned to the {$adtools} and {$adcount} Smarty variables, which you may prefix with the value of the assign_prefix parameter.
Notes
The following parameters are added in version 4.0.71.1. These parameters are overridden by parameters of the same name in the REQUEST array.
- latest_adtool_type
- latest_adtool_time_range
- latest_adtool_start
- latest_adtool_count