We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Marking unread comments, posts in regular weblog

Development and Programming

LynneL's avatar
LynneL
239 posts
16 years ago
LynneL's avatar LynneL

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.

       
silenz's avatar
silenz
1,648 posts
16 years ago
silenz's avatar silenz

How would you determine if a comment has been read?

       
LynneL's avatar
LynneL
239 posts
16 years ago
LynneL's avatar LynneL

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.

       
LynneL's avatar
LynneL
239 posts
16 years ago
LynneL's avatar LynneL

Hmm, anyone know an answer to this one? Thanks in advance!

       
Adrienne L. Travis's avatar
Adrienne L. Travis
213 posts
16 years ago
Adrienne L. Travis's avatar Adrienne L. Travis

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.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.