Mihalism Multi Hoster[view counter for each individual image]

Discussion in 'PHP' started by moh3en, May 4, 2009.

  1. #1
    Hello,

    How i can view counter for each individual image?

    Please help me
     
    moh3en, May 4, 2009 IP
  2. bozghiyy

    bozghiyy Peon

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I installed the script and had a look.

    He does not counts views.

    To view a counter you will have to make it go throw a php script.
    for example:
    http://localhost/pichost/viewer.php?file=k0j7s4fdixptlg4qoosz.jpg
    this is possible to track.

    but the direct link not (or i don't know how)
    http://localhost/pichost/images/k0j7s4fdixptlg4qoosz.jpg

    So you have to make another field in the table: mmh_file_storage , that will count the views.

    On file viewer.php add a simple update to increment the count field.

    But for the direct view of a picture you have a lot of work to do.
     
    bozghiyy, May 4, 2009 IP
  3. moh3en

    moh3en Peon

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    can you give me the code for it
     
    moh3en, May 4, 2009 IP