Plugin Directory

Changeset 354153


Ignore:
Timestamp:
03/02/2011 02:19:59 PM (15 years ago)
Author:
Ste-Bi
Message:

RC

Location:
appstore/trunk
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • appstore/trunk/AppFunctions.php

    r353109 r354153  
    183183        $tradedoubler_id = "1678350";
    184184        $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));       
    185189    } else {
    186190        $tradedoubler_id = get_option("AppStore_tdlink");
     191        $customAffURL = get_option("AppStore_customAffURL");
    187192    }
    188193    update_option("AppStore_Loop",$appStore_Loop);
    189    
     194       
    190195    $AffLinkPartnerID = "&partnerId=2003";
    191     if ($tradedoubler_id == "") {
     196    // Keine Daten hinterlegt
     197    if ($tradedoubler_id == "" && $customAffURL == "") {
    192198        return $trackViewUrl;
    193199    } 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        }
    198210    }
    199211   
  • appstore/trunk/AppStore.php

    r353109 r354153  
    44Plugin URI: http://tirolercast.ste-bi.net/wordpress-plugins/appstore-plugin/
    55Description: A filter for WordPress that displays AppstoreDetails
    6 Version:4.2.3
     6Version:4.3.0
    77Author: Stephan
    88Author URI: http://www.ste-bi.net
     
    365365    add_option("AppStore_showRatings", "0");
    366366    add_option("AppStore_enableStats", "checked");
     367    add_option("AppStore_customAffURL","");
    367368   
    368369    // Datenbank installieren
     
    441442            update_option("AppStore_showRatings",attribute_escape($_POST['AppStore_showRatings']));
    442443            update_option("AppStore_enableStats",attribute_escape($_POST['AppStore_enableStats']));
     444            update_option("AppStore_customAffURL",attribute_escape($_POST['AppStore_customAffURL']));
    443445        }
    444446   
     
    595597            </tr>
    596598            <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>               
    597605                <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>                                           
    600607            </tr>
    601608            <tr>   
     
    640647            ".__("Damit Ihr auch ein wenig Geld damit verdienen k&ouml;nnt ;-)", 'appstore')."
    641648           
     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           
    642656            <h3>".__("Sprache", 'appstore')."</h3>
    643657            ".__("Wenn die Sprache oder das iTunes Land umgestellt wird, sollte ggf. auch der Cache gel&ouml;scht werden, da sonst die Preise nicht korrekt sind.", 'appstore')."
  • appstore/trunk/readme.txt

    r353109 r354153  
    4747
    4848== Changelog ==
     49= 4.3.0 =
     50* Possibillity to your an alternative Affiliate Partner
     51
    4952= 4.2.3 =
    5053* Also works in Spain (Thanks to Jose)
Note: See TracChangeset for help on using the changeset viewer.