I’ve searched an’ searched, and I can’t find a definitive answer to this question.
I’m looking to display, to a logged-in user, the number of “unread comments,” and another instance, maybe, unread posts, marking them as “new”. This is using a regular ol’ weblog (aka channel now, I guess).
So I’m giving the users (no matter who they are) the total number of comments, and I was hoping to put a “(X new)” next to it for logged in people. Potentially same with posts though that’s not as urgent, comments are more important.
Though, if I could mark things from an incoming RSS feed I’m building as “unread” that would be super keen and impress all my readers…
Thanks in advance.
Oh, once you go to the single entry page for that post, actually.
So, I would have an index of multiple posts listed, with a comment_total, and total unread, then when you click on the entry and get to its single entry page with the comments for that post all iterated, I would want those considered “read” for that user.
I don’t think there’s any trivial answer. You’d have to at the very least do some custom PHP and/or create an add-on of some kind to handle this. It probably would involve a new database table, or a VERY complicated cookie, to store the unread numbers.
I recommend trying to get the attention (via PM, probably) of one of the prolific EE add-on developers: someone like Victor Gutierrez or Silenz or Laisvunas.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.