Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7852295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:23:10+00:00 2026-06-02T19:23:10+00:00

I know how to implement things in PHP and MySQL, but now i have

  • 0

I know how to implement things in PHP and MySQL, but now i have a little thinking problem.

There’s a forum-website. Every user could post a question (like stackoverflow). So how could it be done that when the user returns (after 2 days, or something) that he sees (a message, or alert…) that he has new posts on his thread?

Do you know what i mean? I can’t put that all into a database, I think that’s a little bit server-heavy??

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T19:23:13+00:00Added an answer on June 2, 2026 at 7:23 pm

    If I recall correctly, here’s how Simple Machines Forum handles it.

    Each user has a record for each thread that they’ve clicked on. The record stores the highest message ID for that thread at the time it was clicked.

    Since message IDs are auto incrementing integers, any new message will have a message ID larger than the previous.

    So, when the user views the list of threads, SMF sees if the current highest message ID in the thread is larger than the one stored in the user’s thread record. If it’s larger, there are new records, and the thread gets a “new messages” icon. Otherwise, the thread gets the “no new messages icon”. Also, if there is no thread record, then the user never visited the thread, and it gets a “new messages” icon.

    When the user actually clicks on the thread, the thread record is updated with the highest message ID again.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to fix things on a PHP site. There is a pair of
I have a website that basically only displays things without any forms and post-gets.
i am developing an online book store using php and mysql. now i want
OK, I know the technical answer is NEVER . BUT, there are times when
I have this strange problem parsing XML document in PHP loaded via cURL. I
I've been trying to implement PHP Tag Engine in my application but only succeeded
Does anyone know how to implement the standard bubble message that warns users whenever
Does anyone know how to implement an action badge, like the ones seen below
Does anyone know how to implement 3d stacked groups of images like that in
Does any one know how to implement In App SMS functionality in iPhone SDK

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.