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

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

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.