> For the complete documentation index, see [llms.txt](https://docs.toomuchmedia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions.md).

# Template Functions

- [nats\_add\_to\_array](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_add_to_array.md): Turns a comma-separated list into a Smarty array.
- [nats adtool\_replace\_linkcode](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats-adtool_replace_linkcode.md): Replaces {$link} with an arbitrary value.
- [nats\_array\_flip](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_array_flip.md): Runs PHP's array\_flip from a Smarty function.
- [nats\_array\_to\_xml](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_array_to_xml.md): Converts an array into XML data.
- [nats\_build\_array\_by\_reference](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_build_array_by_reference.md): Duplicates an array.
- [nats\_convert\_bytes](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_convert_bytes.md): Converts a byte count into a human readable format. For example: "1234567890" (bytes) becomes "1.15 GB".
- [nats\_decode](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_decode.md)
- [nats\_display\_account\_campaigns](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_account_campaigns.md): Displays a list of the affiliate's campaigns.
- [nats\_display\_account\_change\_history](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_account_change_history.md): Displays a list of recent changes to a user's account settings.
- [nats\_display\_account\_notifications](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_account_notifications.md): Displays messages received and sent by an affiliate.
- [nats\_display\_account\_preview](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_account_preview.md): Displays a snapshot of an affiliate's status.
- [nats\_display\_admin\_links](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_admin_links.md): Display a list of icons and links to the NATS administration pages.
- [nats\_display\_admin\_message](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_admin_message.md): Outputs, or stores in a variable, HTML that displays the user action messages in the administration interface.
- [nats\_display\_adtools](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_adtools.md): Displays Ad Tools with a particular type ID number.
- [nats\_display\_adtool\_form](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_adtool_form.md): Display a list of adtool types to the affiliate
- [nats\_display\_adtool\_types](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_adtool_types.md)
- [nats\_display\_adtools\_type\_limit](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_adtools_type_limit.md)
- [nats\_display\_choose\_adtools\_group](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_choose_adtools_group.md): Allows the affiliate to pick an ad tool group from a list.
- [nats\_display\_code\_info](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_code_info.md): Displays information about a linkcode and includes information about the linkcode's payout.
- [nats\_display\_create\_campaign](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_create_campaign.md): Displays a "create new campaign" form.
- [nats\_display\_edit\_account\_details](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_edit_account_details.md): Displays a list of affiliate account details the user can change.
- [nats\_display\_edit\_account\_settings](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_edit_account_settings.md): Displays a form users can use to change the types of emails, notifications, and verifications they receive.
- [nats\_display\_edit\_defaults](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_edit_defaults.md): Displays a form the affiliate can use to change their default program, campaign or site.
- [nats\_display\_edit\_passwords](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_edit_passwords.md): Displays a password change form
- [nats\_display\_edit\_payvia](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_edit_payvia.md): Displays a configuration box for affiliates to change their payment type.
- [nats\_display\_edit\_payvia\_info](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_edit_payvia_info.md): Displays a form an affiliate can use to change their minimum payment and pay to settings.
- [nats\_display\_edit\_skin](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_edit_skin.md): Displays a form that changes the NATS skin.
- [nats\_display\_graph](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_graph.md): Displays a graph of affiliate statistics.
- [nats\_display\_hourly\_sales](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_hourly_sales.md): Display statistics about hourly sales
- [nats\_display\_latest\_adtools](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_latest_adtools.md): Displays your most recently added ad tools.
- [nats\_display\_map](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_map.md): Generates a world map of surfer's IP address origins in Flash.
- [nats\_display\_news](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_news.md): Displays a list of affiliate news items. The list may be restricted and formatted using the parameters described below.
- [nats\_display\_page\_peel](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_page_peel.md): Generates a page peel.
- [nats\_display\_payment\_history](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_payment_history.md): Shows an affiliate's payout history and their currently due amount.
- [nats\_display\_payment\_summary](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_payment_summary.md): Displays a summary of an affiliate's outstanding balance, pending payments, and sent payments.
- [nats\_display\_ratio](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_ratio.md): Displays an affiliate's hit-over-joins ratio
- [nats\_display\_reward\_category](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_reward_category.md): Displays a list of a every available reward in a single rewards category.
- [nats\_display\_reward\_order](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_reward_order.md): Displays an order form for an affiliate after they've selected a reward item they want.
- [nats\_display\_reward\_purchases](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_reward_purchases.md): Displays a list of rewards an affiliate has purchased
- [nats\_display\_signup\_advanced](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_signup_advanced.md): Gets affiliate sign-up information and lets the affiliate select a payment type.
- [nats\_display\_signup\_basic](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_signup_basic.md): Gets affiliate sign-up information, but doesn't let the affiliate select a payment type. The affiliate is automatically enrolled in the default payment type.
- [nats\_display\_signup\_payvia](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_signup_payvia.md): Gets affiliate payment type preferences.
- [nats\_display\_stats](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_stats.md): Displays affiliate statistics.
- [nats\_display\_stats\_calendar](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_stats_calendar.md): Displays a calendar; each day on the calendar links to statistics for that day.
- [nats\_display\_stats\_form](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_stats_form.md): Display a form to the affiliate for selecting stats by site, program, campaign, and date.
- [nats\_display\_stats\_referrals](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_stats_referrals.md): Display statistics about affiliate referrals
- [nats\_display\_stats\_retention](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_stats_retention.md): Display retention statistics
- [nats\_display\_stats\_subscription\_details](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_stats_subscription_details.md): Displays information about a member's subscription to a site.
- [nats\_display\_timezones](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_timezones.md): Displays and returns a variable with the current time in user's preferred timezone.
- [nats\_display\_top\_stats](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_top_stats.md): Get the top statistics by demographics, site, program, tour, login, or ad tool.
- [nats\_dump\_data](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_dump_data.md): Gets a statistics dump.
- [nats\_encode](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_encode.md): Creates a single linkcode.
- [nats\_get\_first\_in\_array](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_get_first_in_array.md): Puts the first element of an array in the Smarty variable {$first}.
- [nats\_get\_payment\_breakdown](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_get_payment_breakdown.md): Provides a breakdown for the given list of payments {$data} Smarty variable.
- [nats\_get\_period\_end](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_get_period_end.md): Displays a clock counting down time until the end of the current period.
- [nats\_get\_reward\_categories](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_get_reward_categories.md): Puts a list of the reward categories into the Smarty array $reward\_categories.
- [nats\_get\_member](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_get_member.md): Prints the member data selected by the input information.
- [nats\_list\_adtool\_groups](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_list_adtool_groups.md): Outputs a list of ad tool groups with a PHP script.
- [nats\_list\_affiliates](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_list_affiliates.md): Prints a list of affiliates with the requested information.
- [nats\_list\_billers](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_list_billers.md): Stores a list of billers in the $billers array.
- [nats\_list\_campaigns](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_list_campaigns.md): Obtains a list of available campaigns for an affiliate.
- [nats\_list\_linkcodes](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_list_linkcodes.md): Prints a list of linkcodes matching a query.
- [nats\_get\_option\_details](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_get_option_details.md): Looks up details for a specified option-- this information will not be biller specific (duration, price, etc.) This function stores a list of the de
- [nats\_list\_options](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_list_options.md): Stores a list of all the available join options for a site in the {$options} Smarty variable.
- [nats\_list\_programs](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_list_programs.md)
- [nats\_list\_sites](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_list_sites.md): Stores a Smarty array details about every site in a particular program
- [nats\_list\_tool\_categories](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_list_tool_categories.md): Stores a list of the available ad tool categories in the {$categories} Smarty variable.
- [nats\_list\_tours](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_list_tours.md): Creates the list of all tours offered by a particular program
- [nats\_list\_xsells](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_list_xsells.md): Lists cross-sell (xsell) opportunities available for a particular set of sites, programs, and campaigns.
- [nats\_get\_loginid\_from\_campaignid](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_get_loginid_from_campaignid.md)
