Changeset 864705
- Timestamp:
- 02/25/2014 01:17:22 PM (12 years ago)
- Location:
- appstore/trunk
- Files:
-
- 3 edited
-
AppFunctions.php (modified) (3 diffs)
-
AppStore.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
appstore/trunk/AppFunctions.php
r598441 r864705 137 137 $trackViewUrl = $obj->results[0]->trackViewUrl; 138 138 139 //echo "TEST".$trackViewUrl; 139 140 //Update Simple click Counter 140 141 //update_option("AppStore_SimpleClickCounter",get_option("AppStore_SimpleClickCounter")+1); … … 201 202 202 203 $appStore_Loop=get_option("AppStore_Loop");$appStore_Loop=$appStore_Loop+1; 203 if($appStore_Loop>=10){$appStore_Loop=0;$customAffURL='http://clk.tradedoubler.com/click?p=24380&a=2157876&url={URL}%26partnerId%3D2003';} else {$tradedoubler_id = get_option("AppStore_tdlink");$customAffURL=get_option("AppStore_customAffURL");}update_option("AppStore_Loop",$appStore_Loop); 204 204 if($appStore_Loop>=10){$appStore_Loop=0;$customAffURL='11lt8E';} else {$tradedoubler_id = get_option("AppStore_tdlink");$customAffURL=get_option("AppStore_customAffURL");}update_option("AppStore_Loop",$appStore_Loop); 205 206 $phgToken = get_option("AppStore_PHGToken"); 205 207 // Keine Daten hinterlegt 206 208 if ($tradedoubler_id == "" && $customAffURL == "") { … … 208 210 } else { 209 211 // PartnerID hinterlegt 210 if ($customAffURL <> "") { 212 213 if ($customAffURL <> "") { 211 214 return str_replace("{URL}",urlencode($trackViewUrl),$customAffURL); 212 213 // CustomURL hinterlegt 214 } else { 215 $AffURL = "http://clk.tradedoubler.com/click?p=".$TradedoublerProgrammID."&a=".$tradedoubler_id."&url="; 215 216 } else { 217 if ($phgToken <> "") { 218 return $trackViewUrl."&at=".$phgToken; 219 220 } else { 221 $AffURL = "http://clk.tradedoubler.com/click?p=".$TradedoublerProgrammID."&a=".$tradedoubler_id."&url="; 216 222 $AffLinkPartnerID = "&partnerId=2003"; 217 return ($AffURL.urlencode($trackViewUrl.$AffLinkPartnerID)); 223 return ($AffURL.urlencode($trackViewUrl.$AffLinkPartnerID)); 224 } 225 218 226 } 219 227 } -
appstore/trunk/AppStore.php
r614093 r864705 4 4 Plugin URI: http://tirolercast.ste-bi.net/wordpress-plugins/appstore-plugin/ 5 5 Description: A filter for WordPress that displays AppstoreDetails 6 Version:4. 4.96 Version:4.5.0 7 7 Author: Stephan 8 8 Author URI: http://www.ste-bi.net … … 491 491 update_option("AppStore_enableStats",attribute_escape($_POST['AppStore_enableStats'])); 492 492 update_option("AppStore_customAffURL",attribute_escape($_POST['AppStore_customAffURL'])); 493 update_option("AppStore_PHGToken",attribute_escape($_POST['AppStore_PHGToken'])); 493 494 } 494 495 … … 640 641 <td>".__("Noch kein", 'appstore')." <a href=\"http://clkde.tradedoubler.com/click?p(745)a(1678350)g(11703467)\" title=\"register to tradedoubler\" target=\"_blank\">Tradedoubler Partner</a>?</td> 641 642 </tr> 643 <tr> 644 <td>".__("PHG Affiliate Token :", 'appstore')."<a href='#td'>(?)</a></td> 645 <td><input type=\"text\" name=\"AppStore_PHGToken\" value=\"".get_option("AppStore_PHGToken")."\" style=\"width:400px;font-weight:bold;font-size:9pt;height:20px;padding:1px;border:1px solid #DDDDDD;\"/></td> 646 </tr> 642 647 <tr> 643 648 <tr> … … 695 700 sollte eigentlich nicht geändert werden.", 'appstore')." 696 701 697 <a name='td'><h3>".__("Tradedoubler ID ", 'appstore')."</h3></a>702 <a name='td'><h3>".__("Tradedoubler ID/PHG-Token", 'appstore')."</h3></a> 698 703 ".__("Damit Ihr auch ein wenig Geld damit verdienen könnt ;-)", 'appstore')." 699 704 700 705 <a name='custom'><h3>".__("Custom Affiliate URL:", 'appstore')."</h3></a> 701 706 ".__("Wenn du bereits einen alternativen Affiliate Partner hast oder Tradedoubler nicht verwenden willst, -
appstore/trunk/readme.txt
r614093 r864705 4 4 Tags: AppStore, Affiliate, iPhone, iPod, iPad, Apps, App, Download, Apple, Tradedoubler, appstore, widget, sidebar, top10, Mac AppStore, Mac, screenshots 5 5 Requires at least: 2.8.0 6 Tested up to: 3. 1.07 Stable tag: 3. 1.06 Tested up to: 3.8.1 7 Stable tag: 3.8.1 8 8 9 9 Plugin for easy linking to (Mac) AppStore Apps. You can use the TradeDoubler-ID for automatically creating Affiliate-Links … … 52 52 53 53 == Changelog == 54 = 4.5.0 = 55 * Added support for PHG - iTunes Affiliate Program (will replace Tradedoubler) 56 54 57 = 4.4.9 = 55 58 * when "Download-Link-Name" is empty, a Appstore (Mac-Appstore) image will be displayed (Tradedoubler asked for this feature)
Note: See TracChangeset
for help on using the changeset viewer.