Topic: Marking topics as read
Just wanting to have a quick brainpick on the basic idea. The existing mod looks somewhat overly complicated, so just wondering if there is an easier was to go about it.
The basic idea, (and very sketchy at the moment), is literally just checking the db topics table for the last_post time entry and comparing to the users table last_visit entry and creating a topic id's array from there, entering it into a new column in the user table, then comparing against those topic id's in the index/viewforum scripts. Is that general theory sound?
Would entering the id's into the new users table column as a comma separated list, and then using explode to create an array from those id's and using in_array when in index/viewforum viewing be the best way to go about it?
As I mentioned, this idea has only had minimal brain time at the moment, so may well be completely flawed.
Cheers,
Matt