Activity Stream
48,167 MEMBERS
6593 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 10 of 10
  1.     
    #1
    Member
    Website's:
    zomgbbqpizza.com evilddl.com scenemarket.org

    Lightbulb Strange WCDDL v2 Stats Issue?

    Hi, i am using the below code on wcddl v2 to show some stats at bottom....

    At first it appears to work great... then when it reaches around 100 hits the counters stop updating and stay the same nomatter who visits.

    Can anyone tell me what is wrong with the below code?

    Code: 
    function stats(){
    //TRACK STATS
    $ip = $_SERVER['REMOTE_ADDR'];
    $referer = $_SERVER['HTTP_REFERER'];
    $time = time();
    $date = date("M, d, Y");
    $add_stats = mysql_query("INSERT INTO wcddl_stats(ip,referer,time,date) VALUES ('$ip', '$referer', '$time', '$date')");
    //GET STATS FROM DB
    $unique_hits_select = mysql_query("SELECT DISTINCT ip FROM wcddl_stats");
    $unique_hits_nr = mysql_num_rows($unique_hits_select);
    $unique_hits_today_select = mysql_query("SELECT DISTINCT ip FROM wcddl_stats WHERE date = '$date'");
    $unique_hits_today_nr = mysql_num_rows($unique_hits_today_select);
    $total_hits_select = mysql_query("SELECT * FROM wcddl_stats");
    $total_hits_nr = mysql_num_rows($total_hits_select);
    $total_hits_today_select = mysql_query("SELECT * FROM wcddl_stats WHERE date = '$date'");
    $total_hits_today_nr = mysql_num_rows($total_hits_today_select); 
    // STATS OUT
    $average2 = $unique_hits_nr / $total_hits_nr * 100;
    $average = round($average2,1);
    echo "<li>Total Unique Hits: $unique_hits_nr</li><li>Unique Hits Today: $unique_hits_today_nr</li><li>Total Hits: $total_hits_nr
    </li><li>Hits Today: $total_hits_today_nr</li><li>Average: $average%</li>";
    }
    DEViANCE Reviewed by DEViANCE on . Strange WCDDL v2 Stats Issue? Hi, i am using the below code on wcddl v2 to show some stats at bottom.... At first it appears to work great... then when it reaches around 100 hits the counters stop updating and stay the same nomatter who visits. Can anyone tell me what is wrong with the below code? function stats(){ //TRACK STATS $ip = $_SERVER; $referer = $_SERVER; Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Banned
    Website's:
    ax3.me
    $total_hits_nr * 100; - change the value

  4.     
    #3
    Member
    Website's:
    zomgbbqpizza.com evilddl.com scenemarket.org
    No all that is doing is dividing one variable with another then timesing it by 100, it i was to change it to say 1000, the result would be similar to this:
    Code: 
    Average: 590.6%
    You can see the test site i am working on here: http://wcddl.evilddl.com

  5.     
    #4
    Member
    Website's:
    FlowForums.com
    On your site where should it say over 100? I see 75 and 72.

    Users Online: 4
    Total Unique Hits: 75
    Unique Hits Today: 72
    Total Hits: 127
    Hits Today: 117
    Average: 59.1%
    Downloads: 10
    Queue: 0

  6.     
    #5
    Member
    Website's:
    zomgbbqpizza.com evilddl.com scenemarket.org
    Its not meant to say 100 anywhere, just each time i use the mod when it reaches around 100 hits, in this case 127, it freezes and stops inserting data (i assume).

    It gives no error, just stops moving like it has now.

  7.     
    #6
    Member
    Website's:
    FlowForums.com
    Why is http://wcddl.evilddl.com not veiwable via proxy?

  8.     
    #7
    Member
    Sweet looking site. Is that a version of a Smoky skin?

  9.     
    #8
    Member
    Website's:
    zomgbbqpizza.com evilddl.com scenemarket.org
    It should be? I just used a proxy myself on it??

    Yes it is the v2 acidtech smoky posted earlier, i changed tiny bits but not much. Its far from finished yet. I will buy a proper domain for it when its to a decent level.

  10.     
    #9
    Member
    Website's:
    warezxtc.com
    Here's a better version.

    http://warezcoders.com/forum/viewtopic.php?f=15&t=824

    Note: It doesn't have the "average" feature like the old mod because it's useless.

  11.     
    #10
    Member
    Website's:
    zomgbbqpizza.com evilddl.com scenemarket.org
    Spot on, seems to be working so far... thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Very Strange issue Apache
    By UnReaL69 in forum Server Management
    Replies: 5
    Last Post: 11th Nov 2012, 09:00 PM
  2. Strange issue with Alertpay
    By Chaitan in forum Payza
    Replies: 3
    Last Post: 13th May 2012, 01:01 PM
  3. [MyBB] Strange problem
    By praveer in forum Web Application/Script Support
    Replies: 0
    Last Post: 28th Feb 2012, 03:30 AM
  4. Strange problem with my rdp..
    By BeitarJerusalem in forum Hosting Discussion
    Replies: 5
    Last Post: 12th Feb 2012, 10:10 AM
  5. PayPal Strange Issue :|
    By l0calh0st in forum Paypal
    Replies: 17
    Last Post: 9th Jan 2012, 01:10 AM

Tags for this Thread

BE SOCIAL