disable timer auto start

hyderalifsd3299

New Member
YetiShare User
Dec 4, 2013
15
0
0
Hello
Timer was starting automatically while user opened download links. i want to show download free button and timer should start when user clicks on download free button.
I figured it out by disabling "display();" code from file "delayedRedirect.php" as mentioned below
After Edit
Code:
    $(document).ready(function() {
        $('.download-timer-seconds').html(<?php echo (int) getDelayedRedirectWait(); ?>);
//        display();
    });
Before Edit
Code:
    $(document).ready(function() {
        $('.download-timer-seconds').html(<?php echo (int) getDelayedRedirectWait(); ?>);
        display();
    });
My question is, if it is safe to do this change?
or could this change disturbs any other function of script?
or any other solution is better to stop timer auto run.
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Yes this will be fine. This should have been optional via the admin area, I'll check it.
 

hyderalifsd3299

New Member
YetiShare User
Dec 4, 2013
15
0
0
i came to a new problem related to timer.
when free registered user opens a download link.

1. auto timer running
when timer ends and 'download now' button comes, don't click 'download now' button. just refresh page in browser and user directly go to captcha page without clicking 'download now' button.

2. when auto timer disabled and showing 'slow download' button
user don't click 'slow download' button just wait for 1 minute and after that refresh page in browser and user directly go to captcha page without any click. i think timer is running in background without clicking "slow download" button

its not a good thing. i want user to go on captcha page just by clicking buttons. otherwise if user don't click on button and refresh page then timer should start again.
is it possible in your script?
 

hyderalifsd3299

New Member
YetiShare User
Dec 4, 2013
15
0
0
one thing i forgot to mention is that for non user its working like charm. timer ends and non user refresh page timer starts again and all is working fine for non user. above mentioned problem is only for free registered user.