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.

New Posts?

Discussion in 'PHP' started by kc3, Aug 3, 2005.

  1. #1
    Okay, in phpBB, Invision Powerboard, VBulletin, and other forum software the icon for unread posts and forums is different than read posts and forums. So, my question is how do I make it so something such as a forum software will be able to tell each user (individualy) what forums and posts are not read without having to create a new field for each time one is read.
     
    kc3, Aug 3, 2005 IP
  2. kc3

    kc3 Peon

    Messages:
    857
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Please somebody reply. This is extremely important.
     
    kc3, Aug 3, 2005 IP
  3. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You obviously need user-thread relation for each user that logs on. Then it gets tricky because of the size (e.g. DP has 4K active members and 22K threads = 88M pairs). However, because users only need to see the read/unread flag for those threads that are visible, you can keep this size under control. For example, only track those threads that were created a few minutes prior to user's last request. Other tricks could include tracking forums that a user visits rarely and marking a couple of top threads as unread as soon as a user visits such forum, but at the same time, track many threads in those forums that user visits daily.

    Try going to DP forums that you don't visit often and you will see what I mean.

    J.D.
     
    J.D., Aug 3, 2005 IP
  4. kc3

    kc3 Peon

    Messages:
    857
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks, the help is appreciated.
     
    kc3, Aug 4, 2005 IP
  5. sarahk

    sarahk iTamer Staff

    Messages:
    28,641
    Likes Received:
    4,486
    Best Answers:
    123
    Trophy Points:
    665
    #5
    Alot of forums only track for the last 30 days so are using cron jobs to purge old records.

    Did you understand the bit about the M:M table linking users and threads?

    sarah
     
    sarahk, Aug 4, 2005 IP
  6. kc3

    kc3 Peon

    Messages:
    857
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #6
    lol, I believe I did.
     
    kc3, Aug 4, 2005 IP