dpapaemc
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 02, 2016, 06:41:14 PM |
|
Have you reached the minimum payout? If so, it can take up to 48hrs. If it is still a problem then it is best to open a support ticket.
|
|
|
|
examplens
Legendary
Online
Activity: 3318
Merit: 3266
Crypto Swap Exchange
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 02, 2016, 06:51:59 PM |
|
Now i try to create one faucet. I remember that was the problem with timer and reverse proxy with cloudflare. whether the problem is solved in r64 script, or if not, where i can find instruction how to solve thanks
|
|
|
|
Swagtoshi
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 02, 2016, 08:42:29 PM |
|
Where is the file that has the variable $data["paid"] because when I try changing it in the index.php file, it doesn't show up in the website (using inspector). I've tried clearing cookies and cache already.
Thanks in advance.
|
|
|
|
Kazuldur (OP)
Legendary
Offline
Activity: 971
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 02, 2016, 10:12:31 PM |
|
Now i try to create one faucet. I remember that was the problem with timer and reverse proxy with cloudflare. whether the problem is solved in r64 script, or if not, where i can find instruction how to solve thanks
This was solved long time ago, but it requires proper configuration. Read the advanced tab in faucet's admin panel. Where is the file that has the variable $data["paid"] because when I try changing it in the index.php file, it doesn't show up in the website (using inspector). I've tried clearing cookies and cache already.
Thanks in advance.
libs/faucetbox.php I think.
|
Unless stated otherwise, all opinions are of my own, not FaucetBOX.com's.
|
|
|
minifrij
Legendary
Offline
Activity: 2324
Merit: 1267
In Memory of Zepher
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 02, 2016, 10:43:40 PM |
|
Where is the file that has the variable $data["paid"] because when I try changing it in the index.php file, it doesn't show up in the website (using inspector). I've tried clearing cookies and cache already. Thanks in advance.
libs/faucetbox.php I think. It depends. If the variable $refbalance is greater than 0, $data['paid'] is initialized on index.php at line 384. Otherwise, if the faucet is paying out in Bitcoin then it uses the 'html' data from libs/faucetbox.php at line 115. If your faucet is another currency, then it uses the 'html_coin' data from line 116.
|
|
|
|
AGBQJX
Newbie
Offline
Activity: 6
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 03, 2016, 12:41:41 AM |
|
Go to address checker page, enter the coin address you are using, and adjust the payout threshold to the desired amount above the minimum payout. From there you can also lock it so that nobody can change your threshold except you for that address.
withdrawn automatically sent today ! no problem !thanks!
|
|
|
|
Swagtoshi
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 05, 2016, 02:29:28 PM |
|
Where is the file that has the variable $data["paid"] because when I try changing it in the index.php file, it doesn't show up in the website (using inspector). I've tried clearing cookies and cache already. Thanks in advance.
libs/faucetbox.php I think. It depends. If the variable $refbalance is greater than 0, $data['paid'] is initialized on index.php at line 384. Otherwise, if the faucet is paying out in Bitcoin then it uses the 'html' data from libs/faucetbox.php at line 115. If your faucet is another currency, then it uses the 'html_coin' data from line 116. Thanks for the info. Is there way just to find the number for the amount you get paid. I think its $amount or $reward, but I'm not sure where it would be exactly.
|
|
|
|
sabotag3x
Legendary
Offline
Activity: 2548
Merit: 2180
Crypto Swap Exchange
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 05, 2016, 03:27:23 PM |
|
Where is the file that has the variable $data["paid"] because when I try changing it in the index.php file, it doesn't show up in the website (using inspector). I've tried clearing cookies and cache already. Thanks in advance.
libs/faucetbox.php I think. It depends. If the variable $refbalance is greater than 0, $data['paid'] is initialized on index.php at line 384. Otherwise, if the faucet is paying out in Bitcoin then it uses the 'html' data from libs/faucetbox.php at line 115. If your faucet is another currency, then it uses the 'html_coin' data from line 116. Thanks for the info. Is there way just to find the number for the amount you get paid. I think its $amount or $reward, but I'm not sure where it would be exactly. are you trying to make a scam faucet? lol hope not here's the code [url]'html' => '<div class="alert alert-success">' . htmlspecialchars($amount) . ' satoshi was sent to <a target="_blank" href="https://faucetbox.com/check/' . rawurlencode($to) . '">your FaucetBOX.com address</a>.</div>',[/url]
|
|
|
|
tungaqhd
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 05, 2016, 03:37:52 PM |
|
Is there any guide how to add faucetbox as payout method? ![Huh](https://bitcointalk.org/Smileys/default/huh.gif)
|
|
|
|
dpapaemc
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 05, 2016, 03:43:27 PM |
|
Is there any guide how to add faucetbox as payout method? ![Huh](https://bitcointalk.org/Smileys/default/huh.gif) What do you mean add as payout method? Add to what?
|
|
|
|
Kazuldur (OP)
Legendary
Offline
Activity: 971
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 05, 2016, 03:53:03 PM |
|
Is there any guide how to add faucetbox as payout method? ![Huh](https://bitcointalk.org/Smileys/default/huh.gif) Maybe this is what you're looking for: https://faucetbox.com/en/api
|
Unless stated otherwise, all opinions are of my own, not FaucetBOX.com's.
|
|
|
Swagtoshi
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 05, 2016, 06:33:35 PM |
|
Where is the file that has the variable $data["paid"] because when I try changing it in the index.php file, it doesn't show up in the website (using inspector). I've tried clearing cookies and cache already. Thanks in advance.
libs/faucetbox.php I think. It depends. If the variable $refbalance is greater than 0, $data['paid'] is initialized on index.php at line 384. Otherwise, if the faucet is paying out in Bitcoin then it uses the 'html' data from libs/faucetbox.php at line 115. If your faucet is another currency, then it uses the 'html_coin' data from line 116. Thanks for the info. Is there way just to find the number for the amount you get paid. I think its $amount or $reward, but I'm not sure where it would be exactly. are you trying to make a scam faucet? lol hope not here's the code [url]'html' => '<div class="alert alert-success">' . htmlspecialchars($amount) . ' satoshi was sent to <a target="_blank" href="https://faucetbox.com/check/' . rawurlencode($to) . '">your FaucetBOX.com address</a>.</div>',[/url] LOL ![Grin](https://bitcointalk.org/Smileys/default/grin.gif) Not trying to make a scam faucet, but I am trying to add a lottery card with the reward appearing after the card is scratched. Anyways, thanks for the help.
|
|
|
|
dpapaemc
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 05, 2016, 06:41:09 PM |
|
That is an awesome idea. Like to see how that works out.
|
|
|
|
badbitboy
Newbie
Offline
Activity: 8
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 06, 2016, 06:08:57 AM |
|
Hello, i am not good at php How to make this work after i change amount= satoshi want to send and to= address, input api key and currency <?php
class FaucetBOX { protected $api_key; protected $currency; public $last_status = null; protected $api_base = "https://faucetbox.com/api/v1/";
public function __construct($api_key, $currency = "BTC", $disable_curl = false, $verify_peer = true) { $this->api_key = $api_key; $this->currency = $currency; $this->disable_curl = $disable_curl; $this->verify_peer = $verify_peer; $this->curl_warning = false; }
public function __execPHP($method, $params = array()) { $params = array_merge($params, array("api_key" => $this->api_key, "currency" => $this->currency)); $opts = array( "http" => array( "method" => "POST", "header" => "Content-type: application/x-www-form-urlencoded\r\n", "content" => http_build_query($params) ), "ssl" => array( "verify_peer" => $this->verify_peer ) ); $ctx = stream_context_create($opts); $fp = fopen($this->api_base . $method, 'rb', null, $ctx); $response = stream_get_contents($fp); if($response && !$this->disable_curl) { $this->curl_warning = true; } fclose($fp); return $response; }
public function __exec($method, $params = array()) { $this->last_status = null; if($this->disable_curl) { $response = $this->__execPHP($method, $params); } else { $response = $this->__execCURL($method, $params); } $response = json_decode($response, true); if($response) { $this->last_status = $response['status']; } else { $this->last_status = null; } return $response; }
public function __execCURL($method, $params = array()) { $params = array_merge($params, array("api_key" => $this->api_key, "currency" => $this->currency));
$ch = curl_init($this->api_base . $method); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $params); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, $this->verify_peer); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch); if(!$response) { $response = $this->__execPHP($method, $params); } curl_close($ch);
return $response; }
public function send($to, $amount, $referral = "false") { $r = $this->__exec("send", array("to" => $to, "amount" => $amount, "referral" => $referral)); if (array_key_exists("status", $r) && $r["status"] == 200) { return array( 'success' => true, 'message' => 'Payment sent to your address using FaucetBOX.com', 'html' => '<div class="alert alert-success">' . htmlspecialchars($amount) . ' satoshi was sent to <a target="_blank" href="https://faucetbox.com/check/' . rawurlencode($to) . '">your FaucetBOX.com address</a>.</div>', 'html_coin' => '<div class="alert alert-success">' . htmlspecialchars(rtrim(rtrim(sprintf("%.8f", $amount/100000000), '0'), '.')) . ' '.$this->currency.' was sent to <a target="_blank" href="https://faucetbox.com/check/' . rawurlencode($to) . '">your FaucetBOX.com address</a>.</div>', 'balance' => $r["balance"], 'balance_bitcoin' => $r["balance_bitcoin"], 'response' => json_encode($r) ); }
if (array_key_exists("message", $r)) { return array( 'success' => false, 'message' => $r["message"], 'html' => '<div class="alert alert-danger">' . htmlspecialchars($r["message"]) . '</div>', 'response' => json_encode($r) ); }
return array( 'success' => false, 'message' => 'Unknown error.', 'html' => '<div class="alert alert-danger">Unknown error.</div>', 'response' => json_encode($r) ); }
public function sendReferralEarnings($to, $amount) { return $this->send($to, $amount, "true"); }
public function getPayouts($count) { $r = $this->__exec("payouts", array("count" => $count) ); return $r; }
public function getCurrencies() { $r = $this->__exec("currencies"); return $r['currencies']; }
public function getBalance() { $r = $this->__exec("balance"); return $r; } }
|
|
|
|
tungaqhd
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 06, 2016, 06:13:01 AM |
|
Is there any guide how to add faucetbox as payout method? ![Huh](https://bitcointalk.org/Smileys/default/huh.gif) What do you mean add as payout method? Add to what? Hi, i have a small ptp site, it count 1 view =2 satoshi and paid via paypal, i font like it and want to use faucetbox instead
|
|
|
|
Salmen
Legendary
Offline
Activity: 1059
Merit: 1020
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 06, 2016, 12:37:45 PM |
|
Is there any guide how to add faucetbox as payout method? ![Huh](https://bitcointalk.org/Smileys/default/huh.gif) What do you mean add as payout method? Add to what? Hi, i have a small ptp site, it count 1 view =2 satoshi and paid via paypal, i font like it and want to use faucetbox instead You can download and receive infos regarding the original Faucetbox PHP Library from the site. 1. Download the 'Standard Script' from the site. (Link: https://faucetbox.com/en/php-library#Downloads) 2. Include the 'faucetbox.php' in your script. 3. To pay a user to the FaucetBox account, use the following code: <?php
$api_key = "YOUR_API_KEY"; $currency = "BTC"; # or LTC or any other supported by FaucetBOX $faucetbox = new FaucetBOX($api_key, $currency);
# To send 500 satoshi to address $result = $faucetbox->send("1asdbitcoinaddressheredsa", 500);
if($result["success"] === true) { # you can check if it was successful echo $result["html"]; # there's example html ready for you } else { # something went wrong :( log_error($result["response"]); # you can log whole response from server echo $result["html"]; # and display error message to user }
?> For more information, visit the site Faucetbox.com.
|
Young Developer amidst Europe. Specialized in Web Programming and Creating Telegram Bots. Looking for a developer? Feel free to drop a mail to me. Running JaguarBitcoin - Your Place For Scripts
|
|
|
tungaqhd
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 06, 2016, 01:43:43 PM |
|
Is there any guide how to add faucetbox as payout method? ![Huh](https://bitcointalk.org/Smileys/default/huh.gif) What do you mean add as payout method? Add to what? Hi, i have a small ptp site, it count 1 view =2 satoshi and paid via paypal, i font like it and want to use faucetbox instead You can download and receive infos regarding the original Faucetbox PHP Library from the site. 1. Download the 'Standard Script' from the site. (Link: https://faucetbox.com/en/php-library#Downloads) 2. Include the 'faucetbox.php' in your script. 3. To pay a user to the FaucetBox account, use the following code: <?php
$api_key = "YOUR_API_KEY"; $currency = "BTC"; # or LTC or any other supported by FaucetBOX $faucetbox = new FaucetBOX($api_key, $currency);
# To send 500 satoshi to address $result = $faucetbox->send("1asdbitcoinaddressheredsa", 500);
if($result["success"] === true) { # you can check if it was successful echo $result["html"]; # there's example html ready for you } else { # something went wrong :( log_error($result["response"]); # you can log whole response from server echo $result["html"]; # and display error message to user }
?> For more information, visit the site Faucetbox.com. Uploaded faucetbox.php to host, then i creat a php file , <?php $api_key = "Dp*************uc"; $currency = "BTC"; # or LTC or any other supported by FaucetBOX $faucetbox = new FaucetBOX($api_key, $currency);
# To send 500 satoshi to address $result = $faucetbox->send("1Le*********3FUf", 500);
if($result["success"] === true) { # you can check if it was successful echo $result["html"]; # there's example html ready for you } else { # something went wrong :( log_error($result["response"]); # you can log whole response from server echo $result["html"]; # and display error message to user } ?> and named in.php , when i load mysite.com/in.php it show Fatal error: Class 'FaucetBOX' not found in /home/u650662239/public_html/in.php on line 4 Sorry because my php isd bad
|
|
|
|
tungaqhd
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 06, 2016, 02:49:27 PM |
|
The problem is i miss this
|
|
|
|
Superhitech
Legendary
Offline
Activity: 1064
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 07, 2016, 04:25:52 AM |
|
I seem to be missing some things in my phpmyadmin; for example, in my Faucetinabox_Settings file, there is no asn_ban_list, which other users seem to have.
Is this normal? If not, how can I get it fixed?
|
|
|
|
catcatcatcaty
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 07, 2016, 07:38:08 AM |
|
I seem to be missing some things in my phpmyadmin; for example, in my Faucetinabox_Settings file, there is no asn_ban_list, which other users seem to have.
Is this normal? If not, how can I get it fixed?
update to the latest version of the faucetbox script.
|
|
|
|
|