Jump to content

How would I go about doing this (Mark All Posts Read)


MouseMuffin

Recommended Posts

I have my own custom forum software Made already.

 

I am just missing one key tool.

 

When  a user makes a Topic or a reply to a post, then when another user replies it shows "New Posts" next to that topic.

 

Then when they view it the new Posts goes away. But then if somone makes a new post again it shows New Posts.

 

am I over thinking this procccess or can somone give me a ideal just talk one how to do it?

 

Thx

Link to comment
Share on other sites

my best guess, is that this is done using sessions.

 

I am not 100% sure how the sessions would be set up though...

 

it would be something that would check the last post time against the last read time.

 

- if it has been read and no new posts, don't show that there are new posts

- if it has been read and there are new posts, show that there are new posts

 

- if it hasn't been read and no new posts, don't show that there are new posts

- if it hasn't been read and there are new posts show that there are new posts

Link to comment
Share on other sites

my best guess, is that this is done using sessions.

 

I am not 100% sure how the sessions would be set up though...

 

it would be something that would check the last post time against the last read time.

 

- if it has been read and no new posts, don't show that there are new posts

- if it has been read and there are new posts, show that there are new posts

 

- if it hasn't been read and no new posts, don't show that there are new posts

- if it hasn't been read and there are new posts show that there are new posts

 

How would i found out theres new post sin the first place lol

Link to comment
Share on other sites

my best guess, is that this is done using sessions.

 

I am not 100% sure how the sessions would be set up though...

 

it would be something that would check the last post time against the last read time.

 

- if it has been read and no new posts, don't show that there are new posts

- if it has been read and there are new posts, show that there are new posts

 

- if it hasn't been read and no new posts, don't show that there are new posts

- if it hasn't been read and there are new posts show that there are new posts

 

How would i found out theres new post sin the first place lol

 

if thread_postcount > viewed_postcount count, display 'new post'. It's not hard in logic.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.