minifrij
Legendary
Offline
Activity: 2352
Merit: 1267
In Memory of Zepher
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 26, 2015, 08:28:16 PM |
|
For the timed button in combination with the adblock script shown above, you just have to put this script in the <span id = 'subbtn'></span> tags. <a href="" class="btn btn-success disabled">Wait 5s.</a>
<script> var count = 5; //This is the time you want before the button is clickable var counter=setInterval(timer, 1000);
function timer(){ count=count-1;
if(count != 0){ document.getElementById("subbtn").innerHTML="<a href='' class='btn btn-success disabled'>Wait "+count+"s.</a>"; }else if(count == 0){ clearInterval(counter); document.getElementById("timer").innerHTML="<input type = 'submit' class='btn btn-success' value = 'Claim Reward!'/>"; } } </script>
Then with the adblock script below as shown in the example above.
|
|
|
|
Butord
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 95
Merit: 10
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 26, 2015, 08:38:48 PM |
|
For the timed button in combination with the adblock script shown above, you just have to put this script in the <span id = 'subbtn'></span> tags. <a href="" class="btn btn-success disabled">Wait 5s.</a>
<script> var count = 5; //This is the time you want before the button is clickable var counter=setInterval(timer, 1000);
function timer(){ count=count-1;
if(count != 0){ document.getElementById("subbtn").innerHTML="<a href='' class='btn btn-success disabled'>Wait "+count+"s.</a>"; }else if(count == 0){ clearInterval(counter); document.getElementById("timer").innerHTML="<input type = 'submit' class='btn btn-success' value = 'Claim Reward!'/>"; } } </script>
Then with the adblock script below as shown in the example above. So the whole code will be like that? <span id = 'subbtn'> <a href="" class="btn btn-success disabled">Wait 5s.</a>
<script> var count = 5; //This is the time you want before the button is clickable var counter=setInterval(timer, 1000);
function timer(){ count=count-1;
if(count != 0){ document.getElementById("subbtn").innerHTML="<a href='' class='btn btn-success disabled'>Wait "+count+"s.</a>"; }else if(count == 0){ clearInterval(counter); document.getElementById("timer").innerHTML="<input type = 'submit' class='btn btn-success' value = 'Claim Reward!'/>"; } } </script> </span> <!--Check For Adblock--> <script> if(window.canRunAds === undefined){ document.getElementById('subbtn').innerHTML = '<big>Please disable adblock to claim.Пoжaлyйcтa, oтключитe Adblock, чтoбы coбpaть caтoши</big>'; } </script>
|
|
|
|
minifrij
Legendary
Offline
Activity: 2352
Merit: 1267
In Memory of Zepher
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 26, 2015, 08:57:45 PM |
|
So the whole code will be like that? snip
I made an error, here is the entire code: <span id = 'subbtn'> <a href="" class="btn btn-success disabled">Wait 5s.</a>
<script> var count = 5; //This is the time you want before the button is clickable var counter=setInterval(timer, 1000);
function timer(){ count=count-1;
if(count != 0){ document.getElementById("subbtn").innerHTML="<a href='' class='btn btn-success disabled'>Wait "+count+"s.</a>"; }else if(count == 0){ clearInterval(counter); document.getElementById("subbtn").innerHTML="<input type = 'submit' class='btn btn-success' value = 'Claim Reward!'/>"; } } </script> </span> <!--Check For Adblock--> <script> if(window.canRunAds === undefined){ document.getElementById('subbtn').innerHTML = '<big>Please disable adblock to claim.Пoжaлyйcтa, oтключитe Adblock, чтoбы coбpaть caтoши</big>'; } </script>
This should be correct.
|
|
|
|
yvesp110
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 27, 2015, 03:40:24 AM Last edit: May 27, 2015, 05:28:33 AM by yvesp110 |
|
no worry man I am looking into api to do direct deposit into accounts. I like Faucetbox but if they are gonna authorize scammers like him I rather not be part of it. He scams people, advertisers and other faucet owner like he is gonna get rich with a faucet lol he will if he keeps scamming like he is but hey i move on and
I wouldn't blame FaucetBox for any actions of anyone else. If his site works correctly and is not trapping users it is none of FaucetBox's concern what else he does. If you need any help send me a PM, APIs like blockchain.info are fairly easy to use. No worry was not blamming Kazuldur nor Faucetbox on that matter is just a faucet like that keeps ignoring rules comes on then redo it then on wow a rollercoaster just pisses off users and they think all faucets on that payout are like that one. But I saw he used all his chances. I will keep my faucets on but working on better high paying faucets but those will be direct into wallets. well techs r working on it should be done when I am back from sick leave anyway and also will give themn access to funds using xapo also i see my faucets r dry and nothing i can do till i am home and mini yes once faucet ready they may contact u here on how to do it direct api and put in also faucetbox for those who wants it like that but want be liste on there
|
|
|
|
minifrij
Legendary
Offline
Activity: 2352
Merit: 1267
In Memory of Zepher
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 27, 2015, 12:49:07 PM |
|
Is there a reason why it takes so long to get approved? I've been waiting for 4 days now for my faucet to get approved, and I've been watching the faucets list for BTC, hasn't changed at all.
Thanks.
I know it says "up to a week" but from what I can tell, it's deliberately making me wait a week.
Because there's one or two people checking through hundreds of faucets to make sure they all work correctly and fit the ToS. That does take time.
|
|
|
|
joele
Legendary
Offline
Activity: 1022
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 27, 2015, 01:07:54 PM |
|
Is there a reason why it takes so long to get approved? I've been waiting for 4 days now for my faucet to get approved, and I've been watching the faucets list for BTC, hasn't changed at all.
Thanks.
I know it says "up to a week" but from what I can tell, it's deliberately making me wait a week.
Maybe they are waiting if your faucet can survive in a couple of days.
|
|
|
|
vaibhavsingh
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 27, 2015, 01:18:32 PM |
|
I am having some problems in sending payments through your api. When i check the balance using json it returns everything all right. But when i send a payment or fetch the most recent payouts, it says - {"status":414,"message":"Missing or invalid parameters."}
Please help ASAP.
|
|
|
|
minifrij
Legendary
Offline
Activity: 2352
Merit: 1267
In Memory of Zepher
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 27, 2015, 01:22:53 PM |
|
I am having some problems in sending payments through your api. When i check the balance using json it returns everything all right. But when i send a payment or fetch the most recent payouts, it says - {"status":414,"message":"Missing or invalid parameters."}
Please help ASAP.
What's the request you're sending?
|
|
|
|
vaibhavsingh
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 27, 2015, 01:56:34 PM |
|
I am having some problems in sending payments through your api. When i check the balance using json it returns everything all right. But when i send a payment or fetch the most recent payouts, it says - {"status":414,"message":"Missing or invalid parameters."}
Please help ASAP.
What's the request you're sending? I tried fetching balance- $json_url = " https://faucetbox.com/api/v1/balance?api_key=APIKEY¤cy=BTC"; $json_data = file_get_contents($json_url); $json_feed = json_decode($json_data); $bal = $json_feed->balance; This returns ok. Then i try this - $json_url = " https://faucetbox.com/api/v1/send?api_key=APIKEY¤cy=BTC&to=$addr&amount=$cash"; $json_data = file_get_contents($json_url); $json_feed = json_decode($json_data); $status = $json_feed->status; if ($status == '200') { echo'A payment of '.$cash.' has been sent to <a href=" https://faucetbox.com/en/check/$addr">your faucetbox account</a>.<br>Thanks for using Bitcoin Play!<br>'; I get a return - {"status":414,"message":"Missing or invalid parameters."} I also get this error when i try to fetch the last payouts.
|
|
|
|
minifrij
Legendary
Offline
Activity: 2352
Merit: 1267
In Memory of Zepher
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 27, 2015, 02:04:17 PM |
|
Hrmm, alright ,thanks. I guess I gotta sit tight.
I remember back in January when I started with faucetbox approval was within a couple of hours.
I expect there were a lot less faucets to trawl through back in January since the service was only a few months old. And you might have caught Kazuldur when he was online. You seem to have given me every request but the one that you're having trouble getting, unless it's sending the BTC which is giving you trouble. If that is not the case, when trying to get the last payouts what request do you send?
|
|
|
|
|
Vortex20000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 27, 2015, 02:12:26 PM |
|
I am having some problems in sending payments through your api. When i check the balance using json it returns everything all right. But when i send a payment or fetch the most recent payouts, it says - {"status":414,"message":"Missing or invalid parameters."}
Please help ASAP.
What's the request you're sending? I tried fetching balance- $json_url = " https://faucetbox.com/api/v1/balance?api_key=APIKEY¤cy=BTC"; $json_data = file_get_contents($json_url); $json_feed = json_decode($json_data); $bal = $json_feed->balance; This returns ok. Then i try this - $json_url = " https://faucetbox.com/api/v1/send?api_key=APIKEY¤cy=BTC&to=$addr&amount=$cash"; $json_data = file_get_contents($json_url); $json_feed = json_decode($json_data); $status = $json_feed->status; if ($status == '200') { echo'A payment of '.$cash.' has been sent to <a href=" https://faucetbox.com/en/check/$addr">your faucetbox account</a>.<br>Thanks for using Bitcoin Play!<br>'; I get a return - {"status":414,"message":"Missing or invalid parameters."} I also get this error when i try to fetch the last payouts. Use the official, pre-packaged api class. It makes life much, much easier.
|
|
|
|
Kazuldur (OP)
Legendary
Offline
Activity: 971
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 27, 2015, 02:12:55 PM |
|
That's a GET request. You have to do POST requests. Is there a reason why it takes so long to get approved? I've been waiting for 4 days now for my faucet to get approved, and I've been watching the faucets list for BTC, hasn't changed at all.
Thanks.
I know it says "up to a week" but from what I can tell, it's deliberately making me wait a week.
Because there's one or two people checking through hundreds of faucets to make sure they all work correctly and fit the ToS. That does take time. There's one person and he's been busy with other things lately. I believe he'll review pending faucets tomorrow.
|
Unless stated otherwise, all opinions are of my own, not FaucetBOX.com's.
|
|
|
vaibhavsingh
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 27, 2015, 02:17:36 PM |
|
That's a GET request. You have to do POST requests.
But it works for fetching the balance.(Thats what i was being confused with) (Can you post here an example of sending payouts through post?)
|
|
|
|
Kazuldur (OP)
Legendary
Offline
Activity: 971
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 27, 2015, 02:40:39 PM |
|
That's a GET request. You have to do POST requests.
But it works for fetching the balance.(Thats what i was being confused with) (Can you post here an example of sending payouts through post?) It only works as a compatibility for Microfaucet (and what's more, it only works for Bitcoin). It's not documented and shouldn't be used. <?php $params = array( "api_key" => "api_key", "currency" => "BTC", "amount" => 1, "to" => "dest address" ); $opts = array( "http" => array( "method" => "POST", "header" => "Content-type: application/x-www-form-urlencoded\r\n", "content" => http_build_query($params) ) ); $ctx = stream_context_create($opts); $fp = fopen("https://faucetbox.com/api/v1/send", 'rb', null, $ctx); $response = stream_get_contents($fp); fclose($fp); var_dump($response);
|
Unless stated otherwise, all opinions are of my own, not FaucetBOX.com's.
|
|
|
Butord
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 95
Merit: 10
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 27, 2015, 02:43:07 PM |
|
So the whole code will be like that? snip
I made an error, here is the entire code: <span id = 'subbtn'> <a href="" class="btn btn-success disabled">Wait 5s.</a>
<script> var count = 5; //This is the time you want before the button is clickable var counter=setInterval(timer, 1000);
function timer(){ count=count-1;
if(count != 0){ document.getElementById("subbtn").innerHTML="<a href='' class='btn btn-success disabled'>Wait "+count+"s.</a>"; }else if(count == 0){ clearInterval(counter); document.getElementById("subbtn").innerHTML="<input type = 'submit' class='btn btn-success' value = 'Claim Reward!'/>"; } } </script> </span> <!--Check For Adblock--> <script> if(window.canRunAds === undefined){ document.getElementById('subbtn').innerHTML = '<big>Please disable adblock to claim.Пoжaлyйcтa, oтключитe Adblock, чтoбы coбpaть caтoши</big>'; } </script>
This should be correct. It works but not as I want. When the adblock is enabled I see the message Please disable adblock to claim.Пoжaлyйcтa, oтключитe Adblock, чтoбы coбpaть caтoши but only 1 second or even less. After that I see the countdown button and after 5 sec the standart button Get reward appears. So actually script for adblock doesn't work
|
|
|
|
vaibhavsingh
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 27, 2015, 02:46:33 PM |
|
That's a GET request. You have to do POST requests.
But it works for fetching the balance.(Thats what i was being confused with) (Can you post here an example of sending payouts through post?) It only works as a compatibility for Microfaucet (and what's more, it only works for Bitcoin). It's not documented and shouldn't be used. <?php $params = array( "api_key" => "api_key", "currency" => "BTC", "amount" => 1, "to" => "dest address" ); $opts = array( "http" => array( "method" => "POST", "header" => "Content-type: application/x-www-form-urlencoded\r\n", "content" => http_build_query($params) ) ); $ctx = stream_context_create($opts); $fp = fopen("https://faucetbox.com/api/v1/send", 'rb', null, $ctx); $response = stream_get_contents($fp); fclose($fp); var_dump($response);
Kkk... It works like a charm. ![Grin](https://bitcointalk.org/Smileys/default/grin.gif) One more thing, if i want to store the status(200 for ok) and message values in 2 php variables???
|
|
|
|
minifrij
Legendary
Offline
Activity: 2352
Merit: 1267
In Memory of Zepher
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 27, 2015, 02:55:13 PM |
|
Kkk... It works like a charm. ![Grin](https://bitcointalk.org/Smileys/default/grin.gif) One more thing, if i want to store the status(200 for ok) and message values in 2 php variables??? $jsonResponse = json_decode($response); $status = $jsonResponse->status; $message = $jsonResponse->otherJsonString;
It works but not as I want. When the adblock is enabled I see the message Please disable adblock to claim.Пoжaлyйcтa, oтключитe Adblock, чтoбы coбpaть caтoши but only 1 second or even less. After that I see the countdown button and after 5 sec the standart button Get reward appears. So actually script for adblock doesn't work
My apologies, I forgot a crucial part of it. Try this: <span id = 'subbtn'> <a href="" class="btn btn-success disabled">Wait 5s.</a>
<script> var count = 5; //This is the time you want before the button is clickable if(window.canRunAds !== undefined){ var counter=setInterval(timer, 1000); }
function timer(){ count=count-1;
if(count != 0){ document.getElementById("subbtn").innerHTML="<a href='' class='btn btn-success disabled'>Wait "+count+"s.</a>"; }else if(count == 0){ clearInterval(counter); document.getElementById("subbtn").innerHTML="<input type = 'submit' class='btn btn-success' value = 'Claim Reward!'/>"; } } </script> </span> <!--Check For Adblock--> <script> if(window.canRunAds === undefined){ document.getElementById('subbtn').innerHTML = '<big>Please disable adblock to claim.Пoжaлyйcтa, oтключитe Adblock, чтoбы coбpaть caтoши</big>'; } </script>
|
|
|
|
vaibhavsingh
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 27, 2015, 03:00:52 PM |
|
Kkk... It works like a charm. ![Grin](https://bitcointalk.org/Smileys/default/grin.gif) One more thing, if i want to store the status(200 for ok) and message values in 2 php variables??? $jsonResponse = json_decode($response); $status = $jsonResponse->status; $message = $jsonResponse->otherJsonString;
Returns only status and not the message. ![Sad](https://bitcointalk.org/Smileys/default/sad.gif)
|
|
|
|
minifrij
Legendary
Offline
Activity: 2352
Merit: 1267
In Memory of Zepher
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 27, 2015, 03:06:45 PM |
|
Kkk... It works like a charm. ![Grin](https://bitcointalk.org/Smileys/default/grin.gif) One more thing, if i want to store the status(200 for ok) and message values in 2 php variables??? $jsonResponse = json_decode($response); $status = $jsonResponse->status; $message = $jsonResponse->otherJsonString;
Returns only status and not the message. ![Sad](https://bitcointalk.org/Smileys/default/sad.gif) otherJsonString is just a placeholder. I don't know which message you want to return, so you just put the string that you want to return in place of otherJsonString.
|
|
|
|
|