1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How do forum scripts handle read/unread posts?

Discussion in 'PHP' started by sanchez, Jun 10, 2012.

  1. #1
    Hello all,

    I've written a nice forum script for my website and I'm quite happy with it. The way I handled marking threads as read etc. was to save all that info in MYSQL. As the forum grows, I realize that it might not have been the best way. Marking all forums read takes quite a while for the script to execute. I was wondering, how do other forum scripts handle it? Do they use Cookies instead? Please advise.
    SEMrush
    Thank you
     
    sanchez, Jun 10, 2012 IP
    SEMrush
  2. NetStar

    NetStar Notable Member

    Messages:
    2,465
    Likes Received:
    539
    Best Answers:
    21
    Trophy Points:
    245
    #2
    They user a server side method...

    I'm quite sure there's a seperate Table with columns holding the threadid and a username.
     
    NetStar, Jun 10, 2012 IP
  3. ketting00

    ketting00 Well-Known Member

    Messages:
    751
    Likes Received:
    27
    Best Answers:
    3
    Trophy Points:
    128
    #3
    For me, I update a thread that user click. If there is no click they remain not updated and counted.
     
    ketting00, Jun 10, 2012 IP
  4. rae081

    rae081 Member

    Messages:
    145
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #4
    Gotta check into this...
     
    rae081, Jun 11, 2012 IP