Jump to the first unread post in topic - نوشته شده در (4409 Views)
Average Member
Webbo
مطلب: 982
982
Having done a search for a 'Jump to first unread post in a topic' the nearest I could find relating to it was this old thread... http://forum.snitz.com/Forum/topic.asp?ARCHIVE=true&TOPIC_ID=31927

We already have this which will 'Jump to Last Post'


How hard would it be to convert it to 'jump to first unread post' within a thread for logged in members and leave it as 'jump to last post' for visitors who would not be 'cookied' so therefore the software wouldn't know what they'd read or not?
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Forum Admin
HuwR
مطلب: 20611
20611
The forum has no way of knowing what the last post you read was as it is not tracked
نوشته شده در
Forum Moderator
AnonJr
مطلب: 5768
5768
You could make a decent guess based on the last visit time and the post time, but I forget exactly when the last visit time is updated.
نوشته شده در
Forum Admin
HuwR
مطلب: 20611
20611
the last visit time does not indicate whether you have read a post, or even looked in a particular forum. Plus that is exactly how Active.asp works by default, it will show you posts since your last visit.
The two thinks are by no means the same, I can visit without reading anything at all.
نوشته شده در
Average Member
Webbo
مطلب: 982
982
What would be required for the forum to know the last post you read, would it be possible to add this using cookies?
نوشته شده در
Forum Admin
HuwR
مطلب: 20611
20611
yes, you could track it with cookies, you could create a cookie using the forum_id as part of its name and store the date against it, then retrieve when you want to use it
نوشته شده در
Advanced Member
Carefree
مطلب: 4224
4224
You'd have to track the last post read in each/every forum that a person has access to. You would have to update the cookie every time a post is read.
نوشته شده در
Average Member
Webbo
مطلب: 982
982
What kind of load would that put on a server for a busy forum ?
نوشته شده در
Forum Admin
HuwR
مطلب: 20611
20611
Not entirely sure smile
نوشته شده در
Forum Moderator
AnonJr
مطلب: 5768
5768
True, didn't quite think it all the way through.
Now that I'm thinking of it, maybe this would be a good use for some of the local storage options instead of cookies? In either case, you still have the fun of figuring out what to do if I read it on my laptop and am now viewing the forum on my tablet... to a programmer, it makes sense that the cookie/local storage didn't follow you from device to device; but to the average user, there would likely be confusion as to why it's telling me I didn't read it when I did.
نوشته شده در
Forum Admin
HuwR
مطلب: 20611
20611
Originally posted by AnonJr
True, didn't quite think it all the way through.
Now that I'm thinking of it, maybe this would be a good use for some of the local storage options instead of cookies? In either case, you still have the fun of figuring out what to do if I read it on my laptop and am now viewing the forum on my tablet... to a programmer, it makes sense that the cookie/local storage didn't follow you from device to device; but to the average user, there would likely be confusion as to why it's telling me I didn't read it when I did.

Yes, that is very true, so may be better to store in a table perhaps, but you would also need to think about house keeping so if a topic is deleted it would remove it from being tracked (otherwise the table will get full of junk records)
شما باید یک متن وارد کنید