"400", "use_shortDesc_on_single" => "no", "use_shortDesc_on_multiple" => "yes", "smaller_buy_button_iOS" => "yes", "qty_of_apps" => "10", "ss_size" => "120", "currency_format" => "US", "store_country" => "US", "full_star_color" => "blue", "empty_star_color" => "clear", "color_buttonStart" => "79bbff", "color_buttonStop" => "378de5", "color_buttonText" => "fcfc00", "color_buttonTextShadow" => "39618a", "color_buttonShadow" => "bbdaf7", "color_buttonBorder" => "84bbf3", "color_buttonHoverStart" => "378de5", "color_buttonHoverStop" => "79bbff", "color_buttonHoverText" => "C9C9FF", "displayapptitle" => "no", "displayversion" => "yes", "displayadvisoryrating" => "yes", "displaycategories" => "yes", "displayfilesize" => "no", "displaystarrating" => "yes", "displaydevelopername" => "yes", "displaysellername" => "yes", "displaygamecenterenabled" => "yes", "displayuniversal" => "yes", "displaysupporteddevices" => "no", "displayreleasedate" => "no", "appstoreicon_to_use" => "512", "appstoreicon_size_adjust_type" => "percent", "appicon_size_adjust" => "25", "appicon_iOS_size_adjust" => "12", "appicon_size_max" => "128", "appicon_iOS_size_max" => "64", "displayitunestitle" => "yes", "displayitunestrackcount" => "yes", "displayitunesartistname" => "yes", "displayitunesfromalbum" => "yes", "displayitunesgenre" => "yes", "displayitunesreleasedate" => "yes", "displayitunesdescription" => "yes", "displayitunesexplicitwarning" => "yes", "itunesicon_size_adjust_type" => "percent", "itunesicon_to_use" => "100", "itunesicon_size_adjust" => "100", "itunesicon_iOS_size_adjust" => "50", "itunesicon_size_max" => "100", "itunesicon_iOS_size_max" => "50", "cache_time_select_box" => (24*60*60), "cache_images_locally" => "1", "affiliatepartnerid" => "999", "affiliatecode" => "http://click.linksynergy.com/fs-bin/stat?id=uiuOb3Yu7Hg&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1=", "affiliatetoken" => "uiuOb3Yu7Hg", "tdwebsiteID" => "", "tdprogramID" => "23708", "dgmwrapper" => "", "ResetCheckOne" => "NoWay", "ResetCheckTwo" => "NoWay", "ResetCheckThree" => "NoWay", "ResetCacheOne" => "NoWay", "ResetCacheTwo" => "NoWay", "versionInstalled" => "4.5.1" ); $tmp = get_option('appStore_options'); if(!$tmp || !is_array($tmp) || $ResetOptions) { delete_option('appStore_options'); update_option('appStore_options', $appStore_defaults); } } // Init plugin options to white list our options function appStore_init(){ $settings = get_option('appStore_options'); if(!$settings) appStore_add_defaults(); register_setting( 'appStore_plugin_options', 'appStore_options', 'appStore_validate_options' ); wp_enqueue_script('jquery-ui-core');//enables UI wp_enqueue_script('jquery-ui-tabs'); wp_enqueue_style( 'farbtastic' ); wp_enqueue_script( 'farbtastic' ); } // Add menu page function appStore_add_options_page() { add_options_page('AppStore Assistant', 'AppStore Assistant', 'manage_options', __FILE__, 'appStore_render_form'); } // Render the Plugin options form function appStore_render_form() { $options = get_option('appStore_options'); if($options['ResetCheckOne']=="DoIt" && $options['ResetCheckTwo']=="DoIt" && $options['ResetCheckThree']=="DoIt") { appStore_add_defaults(true); $OptionsReset = true; $options = get_option('appStore_options'); showMessage("All settings have been reset to their defaults!",true); } if($options['ResetCacheOne']=="DoIt" && $options['ResetCacheTwo']=="DoIt") { clearAppCache(); update_option('ResetCacheOne', "NoWay"); update_option('ResetCacheTwo', "NoWay"); showMessage("The App data cache has been cleared!",true); } ?>

AppStore Assistant Page Options

All Options have been reset to defaults!'; ?>

Short Description

Max Length: characters
/> Use on Single Post
/> Use on Multiple Post Page

Localization

Currency Type:
Show results from this country's store:
(Cached app data must be cleared for change to take effect. See Reset tab.)

Miscellaneous

/> Show a smaller Buy Button in iOS browsers

Display apps from ATOM feed

Screenshot Width: px
(in px. Height is automatic.)

Full Star:

'; echo ''.$starColor.' Star'; echo '   '; } ?>

Empty Star:

'; echo ''.$starColor.' Star'; echo '   '; } ?>

Colors

'color_buttonStart', 'label' => 'Button Background Gradient Start'), array('ID' => 'color_buttonStop', 'label' => 'Button Background Gradient Stop'), array('ID' => 'color_buttonText', 'label' => 'Button Text'), array('ID' => 'color_buttonTextShadow', 'label' => 'Button Text Shadow'), array('ID' => 'color_buttonShadow', 'label' => 'Button Shadow'), array('ID' => 'color_buttonBorder', 'label' => 'Button Border'), array('ID' => 'color_buttonHoverStart', 'label' => 'Button Background Gradient Start (Hover)'), array('ID' => 'color_buttonHoverStop', 'label' => 'Button Background Gradient Stop (Hover)'), array('ID' => 'color_buttonHoverText', 'label' => 'Button Text (Hover)'), ); foreach($colorPickers as $colorPicker) { echo "
\r"; echo ''."\r"; echo ''."\r"; echo '
'."\r"; echo '
'."\r"; } ?>

Show in Post body:

"displayapptitle", 'label' => "App Name"), array('ID' => "displayversion", 'label' => "App Version"), array('ID' => "displayadvisoryrating", 'label' => "Advisory Rating"), array('ID' => "displaycategories", 'label' => "App Categories"), array('ID' => "displayfilesize", 'label' => "File Size"), array('ID' => "displaystarrating", 'label' => "App Star Rating"), array('ID' => "displaydevelopername", 'label' => "Developer Name"), array('ID' => "displaysellername", 'label' => "Seller Name"), array('ID' => "displaygamecenterenabled", 'label' => "Game Center Enabled icon"), array('ID' => "displayuniversal", 'label' => "Universal App icon"), array('ID' => "displaysupporteddevices", 'label' => "Supported Devices list"), array('ID' => "displayreleasedate", 'label' => "Date Released"), ); foreach($appStoreProperties as $appStoreProperty) { echo ' '.$appStoreProperty['label']."
\r"; } ?>

App Icon Size:

Icon to start with: /> Small Icon (60px)     /> Large Icon (512px or 1024px)

/> Adjust by percentage /> Adjust to max pixels
Adjust % Adjust to px
Adjust %
(iOS browsers)
Adjust to px
(iOS browsers)

Show in Post body:

"displayitunestitle", 'label' => "Music Title"), array('ID' => "displayitunestrackcount", 'label' => "Track Count"), array('ID' => "displayitunesartistname", 'label' => "Artist Name"), array('ID' => "displayitunesfromalbum", 'label' => "From Album…"), array('ID' => "displayitunesgenre", 'label' => "Genre"), array('ID' => "displayitunesreleasedate", 'label' => "Release Date"), array('ID' => "displayitunesdescription", 'label' => "Description"), array('ID' => "displayitunesexplicitwarning", 'label' => "Explicit Lyrics Bagde"), ); foreach($iTunesStoreProperties as $iTunesStoreProperty) { echo ' '.$iTunesStoreProperty['label']."
\r"; } ?>

App Icon Size:

Icon to start with: /> 30px /> 60px /> 100px

/> Adjust by percentage /> Adjust to max pixels
Adjust % Adjust to px
Adjust %
(iOS browsers)
Adjust to px
(iOS browsers)

Data cache time:

This option determines how long before the plugin requests new data from Apple's servers. You can clear the cached app data via the Reset tab.

Cache images locally:


Your wp-content/uploads/ directory MUST be writeable for this option to have any effect.
Affiliate Networks
Affiliate Network:
LinkShare Settings

1. The easiest way to get your LinkShare Wrapper is to first get an example link to use as a guideline. You can do this by logging into your LinkShare dashboard and navigating to the Link Maker tool. Once there, make sure the country pop-up menu matches the affiliate program you just came through. Next, search for anything you like, click one of the results, and take the chunk of HTML that is given to you in step 3. It should look similar to this:

<a href="http://click.linksynergy.com/fs-bin/stat?id=CBIMl*gYY/8&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1=http%253A%252F%252Fitunes.apple.com%252Fus%252Falbum%252Fjust-breathe%252Fid329520595%253Fi%253D329520674%2526uo%253D6%2526partnerId%253D30" target="itunes_store"><img height="15" width="61" alt="Pearl Jam - Backspacer - Just Breathe" src="http://ax.phobos.apple.com.edgesuite.net/images/badgeitunes61x15dark.gif" /></a>

2. From your chunk of HTML, grab the actual link in the HREF tag. For example:

http://click.linksynergy.com/fs-bin/stat?id=CBIMl*gYY/8&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1=http%253A%252F%252Fitunes.apple.com%252Fus%252Falbum%252Fjust-breathe%252Fid329520595%253Fi%253D329520674%2526uo%253D6%2526partnerId%253D30

3. From the actual link, you now need to cut out the "wrapper." This is the part of the affiliate link that stays the same. This can be identified as everything in the beginning of link up through the RD_PARM1=. For example:

http://click.linksynergy.com/fs-bin/stat?id=CBIMl*gYY/8&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1=


When using LinkShare, the affiliate token is siteID. This value is your 11-character encrypted ID that exists as the "id" value in any other LinkShare built link. The easiest way to find this value is to build a sample link using the Link Maker tool as defined in steps 1 and 2 earlier in the Affiliate Encoding for LinkShare section. For example, the siteID for an account that generated the following link would be: CBIMl*gYY/8.

http://click.linksynergy.com/fs-bin/stat?id=CBIMl*gYY/8&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1=http%253A%252F%252Fitunes.apple.com%252Fus%252Falbum%252Fjust-breathe%252Fid329520595%253Fi%253D329520674%2526uo%253D6%2526partnerId%253D30

LinkShare Wrapper:
LinkShare Affiliate Token:
TradeDoubler Settings

TradeDoubler offers the iTunes and App Store Affiliate Program as separate programs in 14 different countries. You need to be accepted into at least one country to be able to link in Europe. If you need to link to several EU countries for which you don't yet have an affiliate account, you can enable this directly on the TradeDoubler portal (Settings -> Site Information -> My Countries).

To create an affiliate tracking link for TradeDoubler (Europe), you will need your program ID and website ID. These can be found on the TradeDoubler affiliate dashboard (Under "Settings" then "Site information").

TradeDoubler websiteID:
TradeDoubler Program ID:
DGM Settings

Following these steps will allow you to create an affiliate link for the Australia or New Zealand program. Before you begin, it is important to make sure you have been approved for these accounts and have access to them.

1. The easiest way to start building your affiliate links is to first get an example. You can do this by logging into your DGM dashboard and navigating to the Link Maker tool. Once there, make sure the country pop-up menu matches the affiliate program you just came through. Next, search for anything you like, click one of the results, and take the chunk of HTML that is then given to you. It should look similar to this:

<a href="http://www.s2d6.com/x/?x=c&z=s&v=1530946&t=http%3A%2F%2Fitunes.apple.com%2Fau%2Falbum%2Fthe-fixer%2Fid327780123%3Fi%3D327780135%26uo%3D6%26partnerId%3D1002" target="itunes_store"><img height="15" width="61" alt="Pearl Jam - Backspacer - The Fixer" src="http://ax.phobos.apple.com.edgesuite.net/images/badgeitunes61x15dark.gif" /></a>

2. From your chunk of HTML, grab the actual link in the HREF tag. For example:

http://www.s2d6.com/x/?x=c&z=s&v=1530946&t=http%3A%2F%2Fitunes.apple.com%2Fau%2Falbum%2Fthe-fixer%2Fid327780123%3Fi%3D327780135%26uo%3D6%26partnerId%3D1002

3. From the actual link, you now need to cut out the "wrapper." This is the part of the affiliate link that stays the same. This can be identified as everything in the link up through the "t=". For example:

http://www.s2d6.com/x/?x=c&z=s&v=1530946&t=

DGM wrapper:

Reset All Settings to Defaults:

I want to reset all settings to their defaults.

I know this will not save any of my changes.

I wont get mad when all my changes are lost.

Reset cached App data:

I want to reset all cached app data.

I know this will slow down my site as it rebuilds.


Like this plugin?

Want to help make it better? All donations are used to improve this plugin, so donate now!

Or you could:

get_results( "SELECT option_name FROM $wpdb->options WHERE option_name LIKE 'appStore_appData_%'"); //print_r($options); if ( is_null($options) ) return false; foreach( $options as $option ) { delete_option( $option->option_name ); //echo $option->option_name."\r\n"; } } function showMessage($message, $errormsg = false) { if ($errormsg) { echo '
'; } else { echo '
'; } echo "

$message

"; } // Display a Settings link on the main Plugins page function appStore_plugin_action_links( $links, $file ) { if ( $file == plugin_basename( __FILE__ ) ) { $appStore_links = ''.__('Settings').''; // make the 'Settings' link appear first array_unshift( $links, $appStore_links ); } return $links; } function load_js_files() { wp_enqueue_script('jquerymenusstart', plugins_url('/js_functions/jquerymenusstart.js',__FILE__), null, null, true); wp_enqueue_script('jscolor', plugins_url('/js_functions/jscolor/jscolor.js',__FILE__), null, null, true); } function appStore_admin_page_add_stylesheet() { wp_register_style('appStore-admin-styles', plugins_url( 'appStore-admin.css', __FILE__ )); wp_enqueue_style( 'appStore-admin-styles'); }