Changeset 3244823
- Timestamp:
- 02/22/2025 09:37:44 AM (13 months ago)
- Location:
- affiliate-power
- Files:
-
- 32 added
- 4 edited
-
tags/2.4.1 (added)
-
tags/2.4.1/affiliate-power-apis.php (added)
-
tags/2.4.1/affiliate-power-cron.php (added)
-
tags/2.4.1/affiliate-power-menu.js (added)
-
tags/2.4.1/affiliate-power-menu.php (added)
-
tags/2.4.1/affiliate-power-prli.php (added)
-
tags/2.4.1/affiliate-power-settings.php (added)
-
tags/2.4.1/affiliate-power-statistics.php (added)
-
tags/2.4.1/affiliate-power-transactions-list.php (added)
-
tags/2.4.1/affiliate-power-transactions.php (added)
-
tags/2.4.1/affiliate-power-widget.php (added)
-
tags/2.4.1/affiliate-power.php (added)
-
tags/2.4.1/apis (added)
-
tags/2.4.1/apis/adcell.php (added)
-
tags/2.4.1/apis/awin.php (added)
-
tags/2.4.1/apis/belboon.php (added)
-
tags/2.4.1/apis/cj.php (added)
-
tags/2.4.1/apis/digistore24.php (added)
-
tags/2.4.1/apis/ds24_api.php (added)
-
tags/2.4.1/apis/financeads.php (added)
-
tags/2.4.1/apis/tradedoubler.php (added)
-
tags/2.4.1/csv-download.php (added)
-
tags/2.4.1/flot (added)
-
tags/2.4.1/flot/jquery.flot.min.js (added)
-
tags/2.4.1/flot/jquery.flot.time.min.js (added)
-
tags/2.4.1/img (added)
-
tags/2.4.1/img/affiliate-power-16.png (added)
-
tags/2.4.1/img/affiliate-power-36.png (added)
-
tags/2.4.1/img/affiliate-power-ebook.png (added)
-
tags/2.4.1/img/affiliate-power-premium.png (added)
-
tags/2.4.1/readme.txt (added)
-
trunk/affiliate-power-settings.php (modified) (1 diff)
-
trunk/affiliate-power.php (modified) (2 diffs)
-
trunk/apis/adcell.php (modified) (3 diffs)
-
trunk/apis/webgains.php (added)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
affiliate-power/trunk/affiliate-power-settings.php
r3234543 r3244823 89 89 array('slug' => 'sitename', 'label' => 'Site name', 'info' => __('If you are using your Tradedoubler account for several pages, enter the site name you defined in the Tradedoubler login area for this page. The plugin will only import sales from this site name. Please do not enter the site id but the name. You can find the site name in the publisher area, menu item Sites -> Sites. If you are using several sites for this page you can separate the site names with comma. If you are using your account only for this page anyway, just leave the field empty. In this case, the plugin will download all sales.', 'affiliate-power')), 90 90 array('type' => 'checkbox', 'slug' => 'us-format', 'label' => 'US format', 'info' => __('Activate this checkbox, if your tradedoubler account is using US format. It might be using US format even if you are not in ths US. You can check this by looking at the dates in the Tradedoubler login area. If they list the month first (mm/dd/yy), your account is using US format.', 'affiliate-power')), 91 ), 92 ), 93 94 'webgains' => array( 95 'slug' => 'webgains', 96 'link_pattern' => 'wgcampaignid', 97 'label' => 'Webgains', 98 'check_login_params' => 2, 99 'fields' => array( 100 array('slug' => 'publisher_id', 'label' => 'Publisher-ID', 'info' => __('You can find your numeric Publisher-ID in your Publisher account settings (bottom left corner after logging in).'), 'validation' => 'ctype_digit'), 101 array('slug' => 'token', 'label' => 'API Token', 'info' => __('To generate an API Token, login into your Webgains account, click on your username in the top right corner and on "Manage API Tokens". Click on "Generate new token", give it a name and copy the generated token (yes, it is crazy long).')), 91 102 ), 92 103 ), -
affiliate-power/trunk/affiliate-power.php
r3234543 r3244823 6 6 AUTHOR: Jonas Breuer 7 7 AUTHOR URI: https://www.j-breuer.de 8 VERSION: 2. 4.18 VERSION: 2.5.0 9 9 Text Domain: affiliate-power 10 10 Min WP Version: 4.6 … … 13 13 if (!defined('ABSPATH')) die; //no direct access 14 14 15 define('AFFILIATE_POWER_VERSION', '2. 4.1');15 define('AFFILIATE_POWER_VERSION', '2.5.0'); 16 16 17 17 define('AFFILIATE_POWER_DIR', dirname(__FILE__).'/'); -
affiliate-power/trunk/apis/adcell.php
r2283644 r3244823 32 32 if (!$token) return false; 33 33 34 $StartDate = time()-3600*24;35 $EndDate = time();34 $StartDate = date('Y-m-d', time()-3600*24); 35 $EndDate = date('Y-m-d', time()); 36 36 37 $report_url = 'http://www.adcell.de/csv_affilistats.php?sarts=x&pid=a&status=a&subid=&eventid=a'; 38 $report_url .= '×tart='.$StartDate; 39 $report_url .= '&timeend='.$EndDate; 40 $report_url .= '&uname='.$username; 41 $report_url .= '&pass='.$password; 37 $report_url = 'https://api.adcell.org/api/v2/affiliate/statistic/byCommission?token='.$token.'&startDate='.$StartDate.'&endDate='.$EndDate.'&rows=1&page=1'; 42 38 43 39 $http_answer = wp_remote_get($report_url); … … 69 65 $EndDate = date('Y-m-d', $tillTS); 70 66 71 $json_url = 'https:// www.adcell.de/api/v2/affiliate/statistic/byCommission?token='.$token.'&startDate='.$StartDate.'&endDate='.$EndDate.'&rows=1000&page=1';67 $json_url = 'https://api.adcell.org/api/v2/affiliate/statistic/byCommission?token='.$token.'&startDate='.$StartDate.'&endDate='.$EndDate.'&rows=1000&page=1'; 72 68 73 69 $http_answer = wp_remote_get($json_url); … … 129 125 130 126 static private function getToken($username, $password) { 131 $json_url = 'https:// www.adcell.de/api/v2/user/getToken?userName='.$username.'&password='.$password;127 $json_url = 'https://api.adcell.org/api/v2/user/getToken?userName='.$username.'&password='.$password; 132 128 133 129 $http_answer = wp_remote_get($json_url); -
affiliate-power/trunk/readme.txt
r3234545 r3244823 4 4 Tags: affiliate, tracking, revenue attribution, financeads, awin 5 5 Requires at least: 4.6 6 Tested up to: 6.7. 16 Tested up to: 6.7.2 7 7 Requires PHP: 5.6 8 8 Stable tag: trunk … … 25 25 That’s what I thought as well and that’s why I made the WordPress Plugin Affiliate Power. 26 26 27 Affiliate Power imports your sales of various affiliate networks. That gives you up to date income reviews and statistics right in your WordPress backend. The basic version is absolutely free. The [premium version](https://www.affiliatepowerplugin.com/premium/) actually tracks which post, referer, campaign, and device has brought the sale. You'll finally know what really pays. 27 Affiliate Power imports your sales of various affiliate networks. That gives you up to date income reviews and statistics right in your WordPress backend. The basic version is absolutely free. The [premium version](https://www.affiliatepowerplugin.com/premium/) actually tracks which post, referer, campaign, and device has brought the sale. You'll finally know what really pays. If you have less than 100 sales per month, the premium version is completely free. 28 28 29 29 … … 32 32 Premium only features are *emphasized*. 33 33 34 * Supported Networks: adcell, awin, belboon, commission junction, financeads, digistore24, tradedoubler 34 * Supported Networks: adcell, awin, belboon, commission junction, financeads, digistore24, tradedoubler, webgains 35 35 * Filter your import per website 36 36 * Overview over all sales
Note: See TracChangeset
for help on using the changeset viewer.