alamin99 (OP)
|
|
March 22, 2017, 06:21:36 PM Last edit: March 24, 2017, 08:03:58 AM by alamin99 |
|
After this post: https://bitcointalk.org/index.php?topic=1838228.0Someone told me to add this feature on dice script. It's very easy to add this feature in dice script. Just open index.php file from root directory. Find:$startBal = 50; //starting balance for users $reefAmount = 5; //referral amount Replace with this code:$faucet_reward = 0.001; //reward amount in USD $ref_amount = 0.0001; //referral amount in USD $get_rate = file_get_contents("https://blockchain.info/tobtc?currency=USD&value=1"); $rate_sats = $get_rate * 100000000; $startBal = intval($faucet_reward * $rate_sats); $reefAmount = intval($ref_amount * $rate_sats);
Edit:So, here's the code for random rewards: $min_reward = 0.001; //minimum faucet reward in USD $max_reward = 0.005; //maximum faucet reward in USD $ref_prcnt = 0.05; //referral percentage divided by 100. $get_rate = file_get_contents("https://blockchain.info/tobtc?currency=USD&value=1"); $rate_sats = $get_rate * 100000000; $shw_min = intval($min_reward * $rate_sats); $shw_max = intval($max_reward * $rate_sats); $reward = rand($shw_min, $shw_max); $startBal = intval($reward); $reefAmount = intval($ref_prcnt * $startBal);
Now paste this code anywhere inside <body> </body> tag to show the rewards: <?php echo "Win between $shw_min and $shw_max Satoshi every xxx minutes."; ?> That's it. Now your dice is ready to change the reward amount according to the change of bitcoin price, just like freebitco.in.
|
|
|
|
|
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
|
|
|
xnd
Sr. Member
Offline
Activity: 297
Merit: 250
@DEVRAWL
|
|
March 23, 2017, 04:47:14 AM |
|
nice, can you make random payouts, too? )
|
|
|
|
alamin99 (OP)
|
|
March 23, 2017, 05:21:00 AM |
|
nice, can you make random payouts, too? ) Yeah... It's easy... When I'll be on my computer, I will share the code. Now I'm on mobile.
|
|
|
|
alamin99 (OP)
|
|
March 23, 2017, 02:10:32 PM |
|
nice, can you make random payouts, too? ) Yeah... It's easy... When I'll be on my computer, I will share the code. Now I'm on mobile. See the edit.
|
|
|
|
Bytecoiner419
|
|
March 23, 2017, 06:12:13 PM |
|
Truly great work. Thanks for the help and new features. keep them coming (if you have time). I would love to see some kind of anti bot features that we can add to this script.
|
|
|
|
alamin99 (OP)
|
|
March 24, 2017, 06:25:30 AM |
|
Truly great work. Thanks for the help and new features. keep them coming (if you have time). I would love to see some kind of anti bot features that we can add to this script. thank you. okay, I'll try to research about some antibot mechanism.
|
|
|
|
xnd
Sr. Member
Offline
Activity: 297
Merit: 250
@DEVRAWL
|
|
March 24, 2017, 06:40:29 AM |
|
first feature .. works already implemented second.. not so much. after solving captcha, startbal is 0
|
|
|
|
alamin99 (OP)
|
|
March 24, 2017, 07:03:12 AM Last edit: March 24, 2017, 07:15:07 AM by alamin99 |
|
first feature .. works already implemented second.. not so much. after solving captcha, startbal is 0 can I get your site's link? Edit: I have updated the code. Try now. It's working.
|
|
|
|
superiorus
Legendary
Offline
Activity: 1358
Merit: 1000
Bitcoiner since start, and continue to love it!
|
|
March 24, 2017, 08:00:08 AM |
|
Nice release! It is good to see people which offer their free support for the bitcoin micro earnings.
|
|
|
|
alamin99 (OP)
|
|
March 24, 2017, 08:03:04 AM |
|
Nice release! It is good to see people which offer their free support for the bitcoin micro earnings.
Thank you. We, faucet owners should help each other.
|
|
|
|
superiorus
Legendary
Offline
Activity: 1358
Merit: 1000
Bitcoiner since start, and continue to love it!
|
|
March 24, 2017, 08:05:45 AM |
|
Nice release! It is good to see people which offer their free support for the bitcoin micro earnings.
Thank you. We, faucet owners should help each other. I don't have any faucet atm, but I was thinking to open a new one. It is very hard to get profit these days (Adsense does not accept it, MellowAds changed the minimum req., etc) Which is the best script for a faucet atm (in your opinion)?
|
|
|
|
alamin99 (OP)
|
|
March 24, 2017, 08:13:18 AM |
|
Nice release! It is good to see people which offer their free support for the bitcoin micro earnings.
Thank you. We, faucet owners should help each other. I don't have any faucet atm, but I was thinking to open a new one. It is very hard to get profit these days (Adsense does not accept it, MellowAds changed the minimum req., etc) Which is the best script for a faucet atm (in your opinion)? that actually depends on your choice. If you want to run faucet with blog, you should use http://99bitcoins.com 's script. If you prefer security and think, "I'll just create faucet and add funds sometimes" then you should choose FaucetSystem script. [That's why I use FS script. ] But that's the perfect for a simple faucet I think: JQuery script. That's just an opinion.
|
|
|
|
xnd
Sr. Member
Offline
Activity: 297
Merit: 250
@DEVRAWL
|
|
March 24, 2017, 06:59:26 PM |
|
I think it's working http://coindice.win
|
|
|
|
alamin99 (OP)
|
|
March 24, 2017, 07:41:25 PM |
|
|
|
|
|
|