Changeset 354153
- Timestamp:
- 03/02/2011 02:19:59 PM (15 years ago)
- Location:
- appstore/trunk
- Files:
-
- 1 deleted
- 3 edited
-
AppFunctions.php (modified) (1 diff)
-
AppStore.php (modified) (5 diffs)
-
button/editimage.html (deleted)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
appstore/trunk/AppFunctions.php
r353109 r354153 183 183 $tradedoubler_id = "1678350"; 184 184 $TradedoublerProgrammID = "24380"; 185 $AffURL = "http://clk.tradedoubler.com/click?p=".$TradedoublerProgrammID."&a=".$tradedoubler_id."&url="; 186 $AffLinkPartnerID = "&partnerId=2003"; 187 update_option("AppStore_Loop",$appStore_Loop); 188 return ($AffURL.urlencode($trackViewUrl.$AffLinkPartnerID)); 185 189 } else { 186 190 $tradedoubler_id = get_option("AppStore_tdlink"); 191 $customAffURL = get_option("AppStore_customAffURL"); 187 192 } 188 193 update_option("AppStore_Loop",$appStore_Loop); 189 194 190 195 $AffLinkPartnerID = "&partnerId=2003"; 191 if ($tradedoubler_id == "") { 196 // Keine Daten hinterlegt 197 if ($tradedoubler_id == "" && $customAffURL == "") { 192 198 return $trackViewUrl; 193 199 } else { 194 $AffURL = "http://clk.tradedoubler.com/click?p=".$TradedoublerProgrammID."&a=".$tradedoubler_id."&url="; 195 $AffLinkPartnerID = "&partnerId=2003"; 196 //return htmlspecialchars($AffURL.urlencode($trackViewUrl.$AffLinkPartnerID)); 197 return ($AffURL.urlencode($trackViewUrl.$AffLinkPartnerID)); 200 // PartnerID hinterlegt 201 if ($customAffURL <> "") { 202 return str_replace("{URL}",urlencode($trackViewUrl),$customAffURL); 203 204 // CustomURL hinterlegt 205 } else { 206 $AffURL = "http://clk.tradedoubler.com/click?p=".$TradedoublerProgrammID."&a=".$tradedoubler_id."&url="; 207 $AffLinkPartnerID = "&partnerId=2003"; 208 return ($AffURL.urlencode($trackViewUrl.$AffLinkPartnerID)); 209 } 198 210 } 199 211 -
appstore/trunk/AppStore.php
r353109 r354153 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. 2.36 Version:4.3.0 7 7 Author: Stephan 8 8 Author URI: http://www.ste-bi.net … … 365 365 add_option("AppStore_showRatings", "0"); 366 366 add_option("AppStore_enableStats", "checked"); 367 add_option("AppStore_customAffURL",""); 367 368 368 369 // Datenbank installieren … … 441 442 update_option("AppStore_showRatings",attribute_escape($_POST['AppStore_showRatings'])); 442 443 update_option("AppStore_enableStats",attribute_escape($_POST['AppStore_enableStats'])); 444 update_option("AppStore_customAffURL",attribute_escape($_POST['AppStore_customAffURL'])); 443 445 } 444 446 … … 595 597 </tr> 596 598 <tr> 599 <tr> 600 <td>".__("Custom Affiliate URL:", 'appstore')."</td> 601 <td><input type=\"text\" name=\"AppStore_customAffURL\" value=\"".get_option("AppStore_customAffURL")."\" style=\"width:400px;font-weight:bold;font-size:9pt;height:20px;padding:1px;border:1px solid #DDDDDD;\"/></td> 602 </tr> 603 604 <tr> 597 605 <td>".__("Bewertungen Aktivieren:", 'appstore')."</td> 598 <td><input type=\"checkbox\" name=\"AppStore_showRatings\" value=\"checked\" style=\"width:400px;height:20px;padding:1px;border:1px solid #DDDDDD; allign:center\"/ ".get_option("AppStore_showRatings")."></td> 599 606 <td><input type=\"checkbox\" name=\"AppStore_showRatings\" value=\"checked\" style=\"width:400px;height:20px;padding:1px;border:1px solid #DDDDDD; allign:center\"/ ".get_option("AppStore_showRatings")."></td> 600 607 </tr> 601 608 <tr> … … 640 647 ".__("Damit Ihr auch ein wenig Geld damit verdienen könnt ;-)", 'appstore')." 641 648 649 <h3>".__("Custom Affiliate URL:", 'appstore')."</h3> 650 ".__("Wenn du bereits einen alternativen Affiliate Partner hast oder Tradedoubler nicht verwenden willst, 651 kannst du hier eine Affiliate-URL deines Werbepartners eingeben. Setzte einfach {URL} dort ein, wo der AppStore-Link eingesetzt werden soll.<br /> 652 zB: http://click.linksynergy.com/fs-bin/stat?id=AAAAAAAA&offerid=100000&type=3&subid=0&tmpid=0006&RD_PARM1=<b>{URL}&partnerId=99</b> 653 654 ", 'appstore')." 655 642 656 <h3>".__("Sprache", 'appstore')."</h3> 643 657 ".__("Wenn die Sprache oder das iTunes Land umgestellt wird, sollte ggf. auch der Cache gelöscht werden, da sonst die Preise nicht korrekt sind.", 'appstore')." -
appstore/trunk/readme.txt
r353109 r354153 47 47 48 48 == Changelog == 49 = 4.3.0 = 50 * Possibillity to your an alternative Affiliate Partner 51 49 52 = 4.2.3 = 50 53 * Also works in Spain (Thanks to Jose)
Note: See TracChangeset
for help on using the changeset viewer.