Welcome Guest, Not a member yet? Register   Sign In
How to identify 'unviewed' or 'new' resources?
#3

(05-14-2016, 09:47 PM)albertleao Wrote: This might help

http://stackoverflow.com/questions/10952...s-per-user

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 Sad

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.
Reply


Messages In This Thread
RE: How to identify 'unviewed' or 'new' resources? - by PaulD - 05-14-2016, 10:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB