ABitBack
|
|
March 18, 2015, 06:04:29 PM |
|
anyone elses timer not going down?
Everything working for My bitcoin Faucet. Not sure about other coins Oh I think you need to code it in. Anyone got code to make timer go down in real time? Will give $5 btc-e voucher this still stands btw, $5 btc-e code/bitcoin for countdown timer code. PM me it or even post it here to get it. If you like the one here: http://lol.steep.rocks/ (don't forget to refresh after you get a dispense) ( This is based on http://keith-wood.name/countdown.html )Backup your website. Download: http://lol.steep.rocks/countdown/countdown-js.zipit is just one fileUnpack so the file inside becomes accessible as http://example.com/js/jquery.plugin.countdown.min.jsOpen your template index.php file with Notepad++. This is not the file in the main folder. It is in /templates/***/index.phpFind: Add before: <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script type="text/javascript" src="js/jquery.plugin.countdown.min.js"></script> <script type="text/javascript"> $(function(){ var minutes=$('#id_timer').html().match(/You have to wait (\d+) minute/); minutes=parseInt(minutes[1]); $('#id_timer').countdown({ until: '+'+(minutes*60+61)+'s', layout: 'You have to wait {hnn}{sep}{mnn}{sep}{snn}', //layout: '{hnn} hours {mnn} minutes {snn} seconds', onExpiry: function () { //location.reload(); } }); }); </script>
Find: In the element add: So if it is: It will become: <p id="id_timer">You have to wait...
Test it. Don't ask why it adds 1 minute. There is a bug in FB script nobody has discovered yet You just made $5. btc or btc-e?
|
|
|
|
NeedIfFindIt
|
|
March 18, 2015, 07:08:44 PM |
|
Don't ask why it adds 1 minute. There is a bug in FB script nobody has discovered yet until: '+'+(minutes*60+61)-60+'s',
Can't you just do someth8ing like that to fix it? until: '+'+(minutes*60+61)+'s',
This is not the issue. This is the workaround not to get the javascript reload 1 minute before the timer really expires. The issue is in the main index.php between MySQL, PHP and the rounding to the nearest minute. You just made $5. btc or btc-e?
btc My address is in my profile
|
|
|
|
ABitBack
|
|
March 19, 2015, 12:36:19 PM |
|
Don't ask why it adds 1 minute. There is a bug in FB script nobody has discovered yet until: '+'+(minutes*60+61)-60+'s',
Can't you just do someth8ing like that to fix it? until: '+'+(minutes*60+61)+'s',
This is not the issue. This is the workaround not to get the javascript reload 1 minute before the timer really expires. The issue is in the main index.php between MySQL, PHP and the rounding to the nearest minute. You just made $5. btc or btc-e?
btc My address is in my profile Sent from exchange. Cheers again.
|
|
|
|
micky123
Legendary
Offline
Activity: 1022
Merit: 1005
|
|
March 19, 2015, 01:42:32 PM |
|
Well... Ok , what am i doing wrong? I downloaded the faucet script, have a registered domain and hosting from GoDaddy. Updated the config.php with required information and it gives me an error: Can't connect to database. Check your config.php.This is my config file below. Godaddy says that the dbhost name should be my IP address from the CPanel. I have tried using localhost as the dbhost but still no luck, with localhost all i get is a blank screen <?php
$dbhost = "<IP addy>"; $dbuser = "username"; $dbpass = "password"; $dbname = "Test"; $display_errors = false;
$connection_options = array( 'disable_curl' => false, 'local_cafile' => false, 'force_ipv4' => false // cURL only );
// dsn - Data Source Name // if you use MySQL, leave it as is // more information: // http://php.net/manual/en/pdo.construct.php $dbdsn = "mysql:host=$<IP addy>;dbname=$Test";
Anyone managed to configure the script and using Godaddy hosting? Help!!
|
|
|
|
Ajatmoralez
Sr. Member
Offline
Activity: 336
Merit: 250
Sorry for my English if It is Bad✌✌
|
|
March 19, 2015, 02:09:43 PM |
|
Well... Ok , what am i doing wrong? I downloaded the faucet script, have a registered domain and hosting from GoDaddy. Updated the config.php with required information and it gives me an error: Can't connect to database. Check your config.php.This is my config file below. Godaddy says that the dbhost name should be my IP address from the CPanel. I have tried using localhost as the dbhost but still no luck, with localhost all i get is a blank screen <?php
$dbhost = "<IP addy>"; $dbuser = "username"; $dbpass = "password"; $dbname = "Test"; $display_errors = false;
$connection_options = array( 'disable_curl' => false, 'local_cafile' => false, 'force_ipv4' => false // cURL only );
// dsn - Data Source Name // if you use MySQL, leave it as is // more information: // http://php.net/manual/en/pdo.construct.php $dbdsn = "mysql:host=$<IP addy>;dbname=$Test";
Anyone managed to configure the script and using Godaddy hosting? Help!! Godaddy is only good for Domains but not for Hosting and others You should better buy hosting from a reseller and use it. Instant support from reseller to solve your problems. Good diskspace, bandwidth, site speed, features and easy to use. I have my faucets hosted their just for $0.4 a month. That is standard pack which can handle 180k+ pageviews a month and can be upgraded later if you need more. And that is Very good and cheap hosting specially for Faucets
|
|
|
|
yvesp110
|
|
March 19, 2015, 03:55:40 PM |
|
Well... Ok , what am i doing wrong? I downloaded the faucet script, have a registered domain and hosting from GoDaddy. Updated the config.php with required information and it gives me an error: Can't connect to database. Check your config.php.This is my config file below. Godaddy says that the dbhost name should be my IP address from the CPanel. I have tried using localhost as the dbhost but still no luck, with localhost all i get is a blank screen <?php
$dbhost = "<IP addy>"; $dbuser = "username"; $dbpass = "password"; $dbname = "Test"; $display_errors = false;
$connection_options = array( 'disable_curl' => false, 'local_cafile' => false, 'force_ipv4' => false // cURL only );
// dsn - Data Source Name // if you use MySQL, leave it as is // more information: // http://php.net/manual/en/pdo.construct.php $dbdsn = "mysql:host=$<IP addy>;dbname=$Test";
Anyone managed to configure the script and using Godaddy hosting? Help!! in cpanel you will have to make a database connection first of all in mysql and input the information in your config file $dbhost = "<IP addy>"; $dbuser = "username"; $dbpass = "password"; $dbname = "Test"; these will have to be changed inside the bracket to information on your database
|
|
|
|
minifrij
Legendary
Offline
Activity: 2352
Merit: 1268
In Memory of Zepher
|
|
March 19, 2015, 04:12:51 PM |
|
Ok , what am i doing wrong? I downloaded the faucet script, have a registered domain and hosting from GoDaddy. Updated the config.php with required information and it gives me an error: Can't connect to database. Check your config.php.This is my config file below. Godaddy says that the dbhost name should be my IP address from the CPanel. I have tried using localhost as the dbhost but still no luck, with localhost all i get is a blank screen <?php $dbhost = "<IP addy>"; $dbuser = "username"; $dbpass = "password"; $dbname = "Test"; $display_errors = false;
$connection_options = array( 'disable_curl' => false, 'local_cafile' => false, 'force_ipv4' => false // cURL only );
// dsn - Data Source Name // if you use MySQL, leave it as is // more information: // http://php.net/manual/en/pdo.construct.php $dbdsn = "mysql:host=$<IP addy>;dbname=$Test";
Anyone managed to configure the script and using Godaddy hosting? Help!! You of course have to change the variables to match the mysql settings of your host. Though, where have you defined the $Test used in the variable $dbdsn? The $dbdsn variable should be '$dbdsn = "mysql:host=$dbhost;dbname=$dbname";', if you define a variable as something, you just have to insert the variable in the script to get it to show that string. You do not have to both define the variable, then change the string in $dbdsn.
|
|
|
|
Ajatmoralez
Sr. Member
Offline
Activity: 336
Merit: 250
Sorry for my English if It is Bad✌✌
|
|
March 20, 2015, 10:07:16 AM |
|
Anyone here uses Adblocker in their Faucets ??
|
|
|
|
ABitBack
|
|
March 20, 2015, 12:39:27 PM |
|
Anyone here uses Adblocker in their Faucets ??
Yep just put id="MainAd" on the reward button. You mean to stop people using your faucet who have adblocker?
|
|
|
|
Ajatmoralez
Sr. Member
Offline
Activity: 336
Merit: 250
Sorry for my English if It is Bad✌✌
|
|
March 20, 2015, 12:58:20 PM |
|
Anyone here uses Adblocker in their Faucets ??
Yep just put id="MainAd" on the reward button. You mean to stop people using your faucet who have adblocker? Yes thats what i mean. I don't wanna give my bitcoins to people who have adblocker Enabled and doesn't worth to me. Just useless
|
|
|
|
yvesp110
|
|
March 20, 2015, 01:28:14 PM |
|
I would like to know what script or what do we have to do to add choice of where to get paid since I have another faucet and would like to offer them option of getting paid with faucetbox
tks
|
|
|
|
yvesp110
|
|
March 20, 2015, 01:38:22 PM |
|
Anyone here uses Adblocker in their Faucets ??
Yep just put id="MainAd" on the reward button. You mean to stop people using your faucet who have adblocker? Can you explain where you put that exactly on the line in the php
|
|
|
|
Kazuldur (OP)
Legendary
Offline
Activity: 971
Merit: 1000
|
|
March 20, 2015, 01:43:20 PM |
|
Don't ask why it adds 1 minute. There is a bug in FB script nobody has discovered yet until: '+'+(minutes*60+61)-60+'s',
Can't you just do someth8ing like that to fix it? I think we should ask the admin of why this is Happenning ?? He should solve this I didn't check that, but I believe that it rounds up the remaining time up to whole minutes. So if there're 5 minutes and 1 second left, it'll show that there're 6 minutes left.
|
Unless stated otherwise, all opinions are of my own, not FaucetBOX.com's.
|
|
|
Ajatmoralez
Sr. Member
Offline
Activity: 336
Merit: 250
Sorry for my English if It is Bad✌✌
|
|
March 20, 2015, 03:32:14 PM |
|
Can anyone say what is happening with my Faucet ?? http://googlefaucet.com http://faucetcloud.comClaims becomes 10x faster. I think bot attack because normal banner views, almost normal analytics report but Crazy claims Please reply fast anyone
|
|
|
|
minifrij
Legendary
Offline
Activity: 2352
Merit: 1268
In Memory of Zepher
|
|
March 20, 2015, 03:40:57 PM |
|
Anyone here uses Adblocker in their Faucets ??
Yep just put id="MainAd" on the reward button. You mean to stop people using your faucet who have adblocker? Can you explain where you put that exactly on the line in the php /templates/default/index.php - line 171 <div class="form-group"> <div class="col-sm-offset-4 col-sm-4"> <input type="submit" class="btn btn-primary btn-lg" value="Get reward!" id = 'MainAd'> </div> </div>
|
|
|
|
Kazuldur (OP)
Legendary
Offline
Activity: 971
Merit: 1000
|
|
March 20, 2015, 03:50:08 PM |
|
Can anyone say what is happening with my Faucet ?? http://googlefaucet.com http://faucetcloud.comClaims becomes 10x faster. I think bot attack because normal banner views, almost normal analytics report but Crazy claims Please reply fast anyone Change your captcha to reCaptcha. If payments drop, that was a bot probably. If not, then who knows, maybe you've just got popular among adblockers?
|
Unless stated otherwise, all opinions are of my own, not FaucetBOX.com's.
|
|
|
Ajatmoralez
Sr. Member
Offline
Activity: 336
Merit: 250
Sorry for my English if It is Bad✌✌
|
|
March 20, 2015, 04:13:57 PM |
|
Can anyone say what is happening with my Faucet ?? http://googlefaucet.com http://faucetcloud.comClaims becomes 10x faster. I think bot attack because normal banner views, almost normal analytics report but Crazy claims Please reply fast anyone Change your captcha to reCaptcha. If payments drop, that was a bot probably. If not, then who knows, maybe you've just got popular among adblockers? Added adblocer and recaptcha to my Site. Can you please check and Confirm ??
|
|
|
|
yvesp110
|
|
March 20, 2015, 04:15:28 PM |
|
Anyone here uses Adblocker in their Faucets ??
Yep just put id="MainAd" on the reward button. You mean to stop people using your faucet who have adblocker? Can you explain where you put that exactly on the line in the php /templates/default/index.php - line 171 <div class="form-group"> <div class="col-sm-offset-4 col-sm-4"> <input type="submit" class="btn btn-primary btn-lg" value="Get reward!" id = 'MainAd'> </div> </div>
Tks appreciated
|
|
|
|
|
minifrij
Legendary
Offline
Activity: 2352
Merit: 1268
In Memory of Zepher
|
|
March 20, 2015, 06:42:30 PM |
|
Yep, when adblock is on the Get Reward button does not show.
|
|
|
|
|