Is this possible?

Discussion in 'PHP' started by turulojko, Jun 14, 2008.

  1. #1
    Ex. I have site with posts. When someone view some post, the post views counts +1.

    What i want...
    is it possible to count the post views +1 only when the visitros view that post for 10 or more seconds?
    if its possible, how can i do that?

    Sorry for my bad english. :(
     
    turulojko, Jun 14, 2008 IP
  2. eng152

    eng152 Banned

    Messages:
    1,377
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think it can be done by using programming languages.
    Eg: PHP

    But what's the web site configuration? Is it a forum or blog?
     
    eng152, Jun 14, 2008 IP
  3. nile1483

    nile1483 Active Member

    Messages:
    345
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Everything is Possible, Just Describe exactly what you Want to do and where you want to do?
     
    nile1483, Jun 14, 2008 IP
  4. samirkumardas

    samirkumardas Banned

    Messages:
    123
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can use javascript setTimeout() function to count the time. After completing the specified time, call the page again and update the counter. Thats all
     
    samirkumardas, Jun 15, 2008 IP
  5. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #5
    You can do that using AJAX, setting a timeout when the page is loaded to 10 seconds and then call ajax to add another view to the page.
     
    EricBruggema, Jun 15, 2008 IP