Jump to content

tracking read and unread post


kaser

Recommended Posts

i'm currently building a forum for a website of mine and the current method i have implemented had a big flaw over looked so i need to fix it.

I was suggested to take a look at some of other open source forums and how they do it, i've dug through some phpBB files and couldn't even find what i was looking for.

if any of you know where to point me, the help would be greatly appreciated.
Link to comment
https://forums.phpfreaks.com/topic/36448-tracking-read-and-unread-post/
Share on other sites

all you do is put a extra colum in the message collum and call it read if the user reads it put a 1 if they have not read it defult the colum to a 0.

so if read =="1" they read it, or if read=="0" not read it.

afther doing that then it gets even more exciting then you can do all columns with a 1 to be copied to the users privert sent messages then delete all the messages with 1.

or

delete all messages that got a 1.

good luck exstend the program ok.

the problem with that is if i view it, it marks it as read, and my buddy who hasn't read it, goes there, and it's marked as read because i read it.

would a users_who_read field where i store all the user's id's in the table seperated by ,'s

i just think that'd get a little resource savvy
Oh. yeah. No problem.

The way you explained would work perfectly for private messages. you are correct. infact that's what i use in my private message script...

this is for forums.
each user is going to have a different read / unread post and i also need to display the results accordingly.

A user logs on to the forum therefore the user has a id that id would be entered into the database updating a read colum and also entering that colum id then only if that user is logged on the link shows read else not read to others got me i hope?

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.