Nats list sites

From TMMwiki
(Redirected from List sites)
Jump to: navigation, search
NATS 4
    Template Functions
nats_add_to_array
nats_adtool_replace_linkcode
nats_array_flip
nats_array_to_xml
nats_build_array_by_reference
nats_convert_bytes
nats_decode
nats_display_account_campaigns
nats_display_account_change_history
nats_display_account_notifications
nats_display_account_preview
nats_display_admin_links
nats_display_admin_message
nats_display_adtool_form
nats_display_adtool_types
nats_display_adtools
nats_display_adtools_type_limit
nats_display_choose_adtools_group
nats_display_code_info
nats_display_create_campaign
nats_display_edit_account_details
nats_display_edit_account_settings
nats_display_edit_defaults
nats_display_edit_password
nats_display_edit_payvia
nats_display_edit_payvia_info
nats_display_edit_skin
nats_display_gallery_builder
nats_display_graph
nats_display_hourly_sales
nats_display_latest_adtools
nats_display_map
nats_display_news
nats_display_page_peel
nats_display_payment_history
nats_display_payment_summary
nats_display_ratio
nats_display_reward_category
nats_display_reward_order
nats_display_reward_purchases
nats_display_signup_advanced
nats_display_signup_basic
nats_display_signup_payvia
nats_display_stats
nats_display_stats_calendar
nats_display_stats_form
nats_display_stats_referrals
nats_display_stats_retention
nats_display_stats_subscription_details
nats_display_stats_table
nats_display_timezones
nats_display_top_stats
nats_dump_data
nats_encode
nats_get_first_in_array
nats_get_period_end
nats_get_reward_categories
nats_get_member
nats_list_adtool_groups
nats_list_affiliates
nats_list_billers
nats_list_campaigns
nats_list_linkcodes
nats_list_options
nats_get_option_details
nats_list_programs
nats_list_sites
nats_list_tool_categories
nats_list_tours
nats_list_xsells
nats_smarty_function_amount_owed
nats_smarty_function_getbonus
nats_smarty_rebuild_form
nats_smarty_rebuild_link
nats_smarty_rebuild_query
nats_tooltip
tmm_admin_pagination
Template Shortcuts
add_to_array
adtool_replace_linkcode
affiliate_select_form
array_flip
array_to_xml
amount_owed
build_array_by_reference
convert_bytes
display_account_campaigns
display_account_change_history
display_account_notifications
display_account_preview
display_admin_links
display_adtool_form
display_adtool_types
display_adtools
display_adtools_type_limit
display_choose_adtools_group
display_code_info
display_create_campaign
display_gallery_builder
display_stats_referrals
display_edit_account_details
display_edit_account_settings
display_edit_defaults
display_edit_password
display_edit_payvia
display_edit_payvia_info
display_edit_skin
display_graph
display_hourly_sales
display_latest_adtools
display_map
display_news
display_page_peel
display_payment_history
display_payment_summary
display_ratio
display_reward_category
display_reward_order
display_reward_purchases
display_signup_advanced
display_signup_basic
display_signup_payvia
display_stats
display_stats_calendar
display_stats_table
display_stats_form
display_stats_retention
display_stats_subscription_details
display_top_stats
display_timezones
dump_data
get_first
get_period_end
get_reward_categories
list_billers
list_campaigns
list_linkcodes
list_options
list_programs
list_sites
list_tool_categories
list_tours
list_xsells
rebuild_form
rebuild_link
rebuild_query
reward_points
tooltip
Common Parameters
assign
assign_prefix
count
data_only
display_on_assign
start
tpl

Applies to NATS 4.0.25 and greater.

nats_list_sites

Stores in a Smarty array details about every site in a particular program.

Alias: list_sites

Parameters

(Required parameters in bold)

Parameter Description Possible Values Default Values Example
program The program's ID number Any valid program ID number. The default program ID number programid="123"
full Lists additional details about the sites. 0 or 1 (exclusive) Off; does not list additional details full="1"
type If 1, will display the site type along with the site name 0 or 1 Off; shows only site name type="1"
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"
show_hidden
version 4.1+
If 1, will display all of the sites whether hidden or not 0 or 1 Off; does not show hidden sites show_hidden="1"

Output

Output placed in the Smarty array $sites. By default, the array will contain one field for each site name; for example:

Array (2)
1 => "Test site"
2 => "Test site 2"


If full is set, $sites will contain a multidimensional array; for example:

Array (2)
1 => Array (56)
  tourid => "1"
  tour => "MAIN"
  siteid => "1"
  networkid => "0"
  name => "Default Tour"
  url => "http://nats4.vodka.toomuchmedia.com/s..."
  linkdomain => "nats4.vodka.toomuchmedia.com"
  description => ""
  thumb => ""
  thumb_ext => ""
  third_party_partner_id => "0"
  spartaurl => ""
  denyurl => ""
  denypost => ""
  approvalurl => "http://www.yahoo.com.hk"
  approvalpost => ""
  rebillpost => ""
  creditpost => ""
  chargebackpost => ""
  insufficient_fundpost => ""
  voidpost => ""
  userpost => ""
  userman => "http://nats4.vodka.toomuchmedia.com/c..."
  expirepost => ""
  custom => ""
  admin_signup_email => "cho@toomuchmedia.com"
  upgradeurl => ""
  upgradepost => ""
  allowed_lang => ""
  alternativeurl => ""
  allowed_lang_track_raw => "0"
  allowed_lang_track_unq => "0"
  hidden => "0"
  mail_member_joined => "Member Join"
  mail_member_cancelled => "Member Cancel"
  mail_member_rebilled => "Member Rebill"
  mail_member_credited => "Member Credit"
  mail_member_chargedback => "Member Chargeback"
  mail_member_insufficient => "Member Insufficient Funds"
  mail_member_voided => "Member Void"
  upgradedenyurl => ""
  upgradedenypost => ""
  prejoinpost => ""
  byo_owner => "0"
  byo_program => "0"
  byo_owner_only => "0"
  deleted => "0"
  niche => ""
  strack_programid => "0"
  change_detailspost => ""
  mail_member_change => "Member Details Change"
  site_name => "Test site"
  site => "test"
  date_added => "1212465600"
  date_live => "0"
  strack_link => "http://nats4.vodka.toomuchmedia.com/s..."
2 => Array (56)
  tourid => "2"
  tour => "MAIN"
  siteid => "2"
  networkid => "0"
  name => "Default Tour"
  url => ""
  linkdomain => ""
  description => ""
  thumb => ""
  thumb_ext => ""
  third_party_partner_id => "0"
  spartaurl => ""
  denyurl => ""
  denypost => ""
  approvalurl => ""
  approvalpost => ""
  rebillpost => ""
  creditpost => ""
  chargebackpost => ""
  insufficient_fundpost => ""
  voidpost => ""
  userpost => ""
  userman => ""
  expirepost => ""
  custom => ""
  admin_signup_email => ""
  upgradeurl => ""
  upgradepost => ""
  allowed_lang => ""
  alternativeurl => ""
  allowed_lang_track_raw => "0"
  allowed_lang_track_unq => "0"
  hidden => "0"
  mail_member_joined => ""
  mail_member_cancelled => ""
  mail_member_rebilled => ""
  mail_member_credited => ""
  mail_member_chargedback => ""
  mail_member_insufficient => ""
  mail_member_voided => ""
  upgradedenyurl => ""
  upgradedenypost => ""
  prejoinpost => ""
  byo_owner => "0"
  byo_program => "0"
  byo_owner_only => "0"
  deleted => "0"
  niche => ""
  strack_programid => "0"
  change_detailspost => ""
  mail_member_change => ""
  site_name => "Test site 2"
  site => "test2"
  date_added => "1209960000"
  date_live => "0"
  strack_link => ""

Notes

None.

See Also