From 0ea4db5c6a1d59c82fabfd05779850a37b678f09 Mon Sep 17 00:00:00 2001 From: Franko Date: Thu, 15 Aug 2013 16:27:35 -0400 Subject: [PATCH 1/7] Update coin.js --- coin.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/coin.js b/coin.js index e3b4b30..f6137ec 100644 --- a/coin.js +++ b/coin.js @@ -3,6 +3,7 @@ Donations welcome: BTC: 122MeuyZpYz4GSHNrF98e6dnQCXZfHJeGS LTC: LY1L6M6yG26b4sRkLv4BbkmHhPn8GR5fFm + FRK: FE35Ez4oq8jVfEaKJAHTugkkwzVVhuLxVZ ~ Thank you! ------------ @@ -37,7 +38,7 @@ var CoinWidgetComCounter = 0; if (typeof CoinWidgetCom != 'object') var CoinWidgetCom = { - source: 'http://coinwidget.com/widget/' + source: 'http://frankos.org/widget/' , config: [] , go :function(config) { config = CoinWidgetCom.validate(config); @@ -48,7 +49,7 @@ var CoinWidgetCom = { } , validate: function(config) { var $accepted = []; - $accepted['currencies'] = ['bitcoin','litecoin']; + $accepted['currencies'] = ['bitcoin','litecoin','franko']; $accepted['counters'] = ['count','amount','hide']; $accepted['alignment'] = ['al','ac','ar','bl','bc','br']; if (!config.currency || !CoinWidgetCom.in_array(config.currency,$accepted['currencies'])) @@ -329,4 +330,4 @@ var CoinWidgetCom = { CoinWidgetCom.init(); } } -}; \ No newline at end of file +}; From 3bb01ba0c94b020a0aa8ae6dfe7377d9ffd85d21 Mon Sep 17 00:00:00 2001 From: defaced Date: Thu, 15 Aug 2013 16:33:03 -0400 Subject: [PATCH 2/7] upload frk icon franko icon added --- icon_franko.png | Bin 0 -> 1732 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 icon_franko.png diff --git a/icon_franko.png b/icon_franko.png new file mode 100644 index 0000000000000000000000000000000000000000..9c7414af198e37033df320dc5c4f78319d85ee66 GIT binary patch literal 1732 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`k|nMYCBgY=C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T`q=c z6io6uum>gTe~DWM4fR&Jxs literal 0 HcmV?d00001 From 1d6e44d860541262a2236889bb1d1c75328d1594 Mon Sep 17 00:00:00 2001 From: Franko Date: Thu, 15 Aug 2013 18:35:51 -0400 Subject: [PATCH 3/7] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 46350b7..6c0608d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ coinwidget.com ============== -*The Bitcoin and Litecoin Donation Button* +*The Bitcoin, Litecoin, Franko Donation Button* Visit http://coinwidget.com/ for full documentation, demo, and a link code wizard. @@ -15,17 +15,18 @@ Donations are welcome and will go towards further development of this project as BTC: 122MeuyZpYz4GSHNrF98e6dnQCXZfHJeGS LTC: LY1L6M6yG26b4sRkLv4BbkmHhPn8GR5fFm + FRK: FNHGjAavM3RPqFZ4h3YEqT4uoNxENoY7MX *Thank you for your support and generosity!* Installation ============== -A. Grab the latest version from GitHub: https://github.com/scottycc/coinwidget.com +A. Grab the latest version from GitHub: https://github.com/franko-org/coinwidget.com-with-franko-support B. Open **widget/coin.js** and find: - source: 'http://coinwidget.com/widget/' + source: 'http://frankos.org/widget/' C. Change the URL portion of this line to your own server/path. From 2b56f83aa9da1e2bc64bdd50b7a6cee088e98fed Mon Sep 17 00:00:00 2001 From: Franko Date: Thu, 12 Sep 2013 07:43:39 -0400 Subject: [PATCH 4/7] Update lookup.php --- lookup.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lookup.php b/lookup.php index 7515d4e..71a5170 100644 --- a/lookup.php +++ b/lookup.php @@ -83,6 +83,20 @@ function get_litecoin($address) { return $return; } } + + function get_franko($address) { + $return = array(); + $data = get_request('http://frk.cryptocoinexplorer.com/address/'.$address); + if (!empty($data) + && strstr($data, 'Transactions in: ') + && strstr($data, 'Received: ')) { + $return += array( + 'count' => (int) parse($data,'Transactions in: ','
'), + 'amount' => (float) parse($data,'Received: ','
') + ); + return $return; + } + } function get_request($url,$timeout=4) { if (function_exists('curl_version')) { From 6775f70f21f95c25ff562dcfd65613d82848f061 Mon Sep 17 00:00:00 2001 From: Franko Date: Thu, 12 Sep 2013 07:44:53 -0400 Subject: [PATCH 5/7] Update lookup.php --- lookup.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lookup.php b/lookup.php index 71a5170..23fb197 100644 --- a/lookup.php +++ b/lookup.php @@ -5,6 +5,7 @@ Donations welcome: BTC: 122MeuyZpYz4GSHNrF98e6dnQCXZfHJeGS LTC: LY1L6M6yG26b4sRkLv4BbkmHhPn8GR5fFm + FRK: FE35Ez4oq8jVfEaKJAHTugkkwzVVhuLxVZ ~ Thank you! MIT License (MIT) From bf9c873b3baf8d04dbf875aac5601ce2c2285993 Mon Sep 17 00:00:00 2001 From: Franko Date: Thu, 12 Sep 2013 07:56:53 -0400 Subject: [PATCH 6/7] Update coin.js re adding coinwidgets params for the pull request --- coin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coin.js b/coin.js index f6137ec..b1f7c63 100644 --- a/coin.js +++ b/coin.js @@ -38,7 +38,7 @@ var CoinWidgetComCounter = 0; if (typeof CoinWidgetCom != 'object') var CoinWidgetCom = { - source: 'http://frankos.org/widget/' + source: 'http://coinwidget.com/widget/' , config: [] , go :function(config) { config = CoinWidgetCom.validate(config); From 41d796124a855aeb4233cafa72081a2dc1cd2a6e Mon Sep 17 00:00:00 2001 From: Franko Date: Mon, 23 Sep 2013 08:29:11 -0400 Subject: [PATCH 7/7] missed FRK in the initial2 --- lookup.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lookup.php b/lookup.php index 23fb197..ea05068 100644 --- a/lookup.php +++ b/lookup.php @@ -51,6 +51,9 @@ case 'litecoin': $response = get_litecoin($address); break; + case 'franko': + $response = get_franko($address); + break; } $responses[$instance] = $response; }