Forum Moderators: coopster
I'm planning to make my own hosting system for custom built blog/forum software. I have everything planned out, except that how do i make my forum check if registered member has read posts or not.
I figured out one way, but it would take awful lot of resources and would definately be not usable for mass blog host.
Does anyone know some tutorial or anything like that to help me?
I didn't find anything in Google. Only some Vbulletin and IPB bug fixes and mods.
Tomi
And if member doesn't log out after he/she has read a message, the message will still be marked as unread.
I figured out one way
Agree with Jatar, posts since last login is the simplest and easiest way to proceed. Although this method do not show the read/unread messages but messages created before/after the lastlogin date.
And if member doesn't log out after he/she has read a message, the message will still be marked as unread.
My2cents.
I thought that if I would add a field of persons who have read the masseage. In that DB field, there would be the member ID's seperated with comma.
But if I do that, i would have to figure out a way to save the string in database and do that comma seperation.
Sure will be glad if it works out :)
As others have said, you would have to somehow keep a list of every post each person has read.
The most efficient way would be to create a table listing your user and listing all the posts they have read. You may want to number each post. The table could have two colums listing each category and post#. When the user goes to a category you can pull in the list and use that to mark read/unread. Until the user reads 10000+ posts in a category it likely won't strain the server. If you get to that point you could then have it only pull posts that are less than x days old. If you have a lot of users and a lot of posts this is how I would go.