How to identify 'unviewed' or 'new' resources? |
(05-14-2016, 09:47 PM)albertleao Wrote: This might help Thanks for that. I thought about checking how some forums do it but I thought it would take ages and it might be a bit misleading, as I am not making a forum. But I suppose it has to be a table for viewed items, there is just no other way of doing it. I suspect I am conflating two issues, 'new items' and 'unread items'. Now I know new items are unread, but when you next log in, they may not be new, but may still be unread. That means, I need to do both a creation_date/last_login_date comparison and a lookup on the viewed table Oh well. Was hoping there was some really clever way of doing it I hadn't thought of. If only CI5 was here, I am sure there was some feature in there that would have done it automatically. $this->load->library(magic_history); Thanks again, Paul. |
Messages In This Thread |
How to identify 'unviewed' or 'new' resources? - by PaulD - 05-14-2016, 08:35 PM
RE: How to identify 'unviewed' or 'new' resources? - by albertleao - 05-14-2016, 09:47 PM
RE: How to identify 'unviewed' or 'new' resources? - by PaulD - 05-14-2016, 10:11 PM
|