1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Please Can Someone Give Me A Fake Download Counter Code

Discussion in 'General Programming Chat' started by Empire007, Sep 21, 2013.

  1. Empire007

    Empire007 Regular Member

    Joined:
    Jul 22, 2012
    Messages:
    426
    Likes Received:
    67
    hi guys, i have been looking for a fake download counter, but cant seem to find it anywhere, i need a counter that once i place the code on my blog, it automatically starts counting from 0 to about 1 million, but it shouldnt be fast maybe about a download per 4-10 seconds, and if you can do it for me a little hint on how to edit it would be nice, thanks alot for any help you can offer...
     
  2. jhakasseo

    jhakasseo Senior Member

    Joined:
    Mar 1, 2012
    Messages:
    827
    Likes Received:
    237
    Occupation:
    Internet Marketing
    Location:
    On d Earth
    Home Page:
  3. Empire007

    Empire007 Regular Member

    Joined:
    Jul 22, 2012
    Messages:
    426
    Likes Received:
    67
    no, its not for wordpress. i need something for blogger


    I saw this but it doesnt start from 0

     
  4. Empire007

    Empire007 Regular Member

    Joined:
    Jul 22, 2012
    Messages:
    426
    Likes Received:
    67
    i need something like that, but it should start from 1 or 0
     
  5. Empire007

    Empire007 Regular Member

    Joined:
    Jul 22, 2012
    Messages:
    426
    Likes Received:
    67
    BUMP!!!! Please help
     
  6. rendesr

    rendesr Junior Member

    Joined:
    Jan 15, 2012
    Messages:
    122
    Likes Received:
    95
    Here's the code in PHP

    Code:
    <?php
    $intTime = 1380500663 ;
    echo "Downloaded: " . round ((time() - $intTime) / 4,0) . " times." ;
    ?>
    
     
  7. rendesr

    rendesr Junior Member

    Joined:
    Jan 15, 2012
    Messages:
    122
    Likes Received:
    95
    and here it is in Javascript - note that with Javascript people will be able to see the code, and the function names so calling it something like 'fakeDownloadCount' will give the game away if people look at your source code.

    It increments once every 4 seconds, just like the PHP one.

    Code:
    <script type="text/javascript"> 
    function downloadCount(){
    
    var counterdate=new Date()
    
    currenthits=parseInt((counterdate.getTime().toString() - 1380498224832) / 4000 ) 
    
    document.write("Downloaded: "+currenthits+" times.")
    }
    downloadCount()
     </script> 
    
     
  8. Empire007

    Empire007 Regular Member

    Joined:
    Jul 22, 2012
    Messages:
    426
    Likes Received:
    67
    THANKS ALOT BRO, BUT THIS DOESNT START FROM 0. IT STARTED FROM 11000

    IN JAVASCRIPT, I WOULD CALL IT TOTAL DOWNLOADS, AND I NEED IT FOR DIFFRENT PAGES OF MY WEBSITE

    here is what i mean. on www.naijaloaded.com, their is a fake download counter, i know its not real but i dont know how he does it, he has it on multiple pages too. i need a code i would place on a page and it starts from 0 or 1 and start shooting up, then if i place it on another page it starts from 0 or 1 and shoot up, but wont have the same number of hits, cause they werent put up the same time. do you understand it, thanks for your attention

     
  9. Empire007

    Empire007 Regular Member

    Joined:
    Jul 22, 2012
    Messages:
    426
    Likes Received:
    67
    can you just give me the code, that would start from zero.....

     
  10. rendesr

    rendesr Junior Member

    Joined:
    Jan 15, 2012
    Messages:
    122
    Likes Received:
    95
    change the $intTime value to 1380580663

    Remember, this counts up every 4 seconds, so when you set it, it will just keep counting.
    To get the exact second, run the function
    Code:
    time();
    here: http://writecodeonline.com/php/
     
  11. Empire007

    Empire007 Regular Member

    Joined:
    Jul 22, 2012
    Messages:
    426
    Likes Received:
    67
    thanks.... its working... but if i put it on another post on the same website,it doesnt start from 0, it just continues with the other posts
     
  12. Empire007

    Empire007 Regular Member

    Joined:
    Jul 22, 2012
    Messages:
    426
    Likes Received:
    67
    bump............