"http://click.linksynergy.com/fs-bin/stat?id=uiuOb3Yu7Hg&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1=", "affiliatetoken" => "uiuOb3Yu7Hg", "affiliatepartnerid" => "30", "tdwebsiteID" => "", "tdprogramID" => "23708", "dgmwrapper" => "", "displaystarrating" => "yes", "displayadvisoryrating" => "yes", "displaycategories" => "yes", "displayversion" => "yes", "displaydevelopername" => "yes", "displaysellername" => "yes", "displaygamecenterenabled" => "yes", "displayuniversal" => "yes", "displayreleasedate" => "yes", "displaysupporteddevices" => "yes", "displayfilesize" => "yes", "displayapptitle" => "yes", "displayitunestitle" => "yes", "displayitunestrackcount" => "yes", "displayitunesartistname" => "yes", "displayitunesfromalbum" => "yes", "displayitunesgenre" => "yes", "displayitunesreleasedate" => "yes", "displayitunesdescription" => "yes", "displayitunesexplicitwarning" => "yes", "itunesicon_to_use" => "100", "itunesicon_size_adjust" => "100", "itunesicon_iOS_size_adjust" => "50", "appstoreicon_to_use" => "512", "appicon_size_adjust" => "25", "appicon_iOS_size_adjust" => "12", "smaller_buy_button_iOS" => "yes", "max_description" => "300", "qty_of_apps" => "10", "ss_size" => "120", "cache_time_select_box" => (24*60*60), "cache_images_locally" => "1" ); update_option('appStore_options', $arr); } } // 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' ); } // 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() { ?>

AppStore Assistant Page Options

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:
Display Options
Show in Post body:

App Stores


/> App Name
/> App Version
/> Advisory Rating
/> App Categories
/> File Size
/> App Star Rating
/> Developer Name
/> Seller Name
/> Game Center Enabled icon
/> Universal App icon
/> Supported Devices list
/> Date Released
Icon: /> 60px /> 512px
% Adjust Icon Size
% Adjust Icon Size (iOS)

iTunes Store

/> Music Title
/> Track count
/> Artist
/> From Album...
/> Genre
/> Release Date
/> Description
/> Explicit Lyrics Bagde
Icon: /> 30px /> 60px /> 100px
% Adjust Icon Size
% Adjust Icon Size (iOS)
Max Short Description Length:
For "My Picks" list pages.
Smaller iOS Buy Button />
How many apps to display from ATOM feed:
Screenshot Width:
(in px. Height is automatic.)
Cache Options
Data cache time: This option determines how long before the plugin requests new data from Apple's servers.
Cache images locally:
Load icons, screenshots, etc. locally instead of using Apple's CDN server. Your wp-content/uploads/ directory MUST be writeable for this option to have any effect.

'.__('Settings').''; // make the 'Settings' link appear first array_unshift( $links, $appStore_links ); } return $links; }