Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 First unread post
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

spg
Starting Member

26 Posts

Posted - 15 November 2002 :  19:32:06  Show Profile
I have had some users in my forum ask for a First Unread Post feature. What they want is a link where instead of taking them to the last post in a topic, they can go to the first post in the topic that they haven't read. vBulliten has a similar feature to this.

Now I am an ASP programmer, but I'm not familiar enough with the code of Snitz to be able to add a feature like this. What would I have to go through to program a feature like this?

~Spencer
Owner-Editor of TabletPCBuzz.com
Microsoft MVP - Tablet PC

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 15 November 2002 :  19:37:54  Show Profile  Visit Gremlin's Homepage
There is a similar feature called "Jump to Last Post" already built into version 3.4 of Snitz Forums this automatically links to the last post of each thread. What version are you currently running ?

Kiwihosting.Net - The Forum Hosting Specialists

Edited by - Gremlin on 15 November 2002 19:38:45
Go to Top of Page

spg
Starting Member

26 Posts

Posted - 16 November 2002 :  22:00:55  Show Profile
Yeah, I know it is similar. I am running the latest version (3.4.03). What they want though is slightly different. Instead of just the jump to the last post in the topic, they want to jump to the first post in the topic that they haven't read yet.

So for example say that I posted here, left the site and came back 5 hours later. In that time 10 people responded to my post. Now, what they want is a link that will take them to the first post that was posted after I left. Make sense?

~Spencer
Owner-Editor of TabletPCBuzz.com
Microsoft MVP - Tablet PC
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 16 November 2002 :  22:40:41  Show Profile  Send ruirib a Yahoo! Message
Yeah, I guess it does make sense. One thing you'll need to do that is the value of the last visit date by the user, kept in the M_LASTHEREDATE field in the FORUM_MEMBERS table. What I would do is create the link so that invokes topic.asp with a special querystring value, say, mode=FirstUnread, and when the mode has that value, when querying for the replies, just query for the very first one after the last visit date (which also includes time), and get its ID (admit, FirstUnreadReplyID). Then just redirect the user to the very same topic, like this: topic.asp?TOPIC_ID=SameTopicIDAs Before#FirstUnreadReplyID.

Beware that this will only produce true results, if the users click the Mark All Read Topics just before leaving the forum. Otherwise the last visit date will keep the start time of their last visit to the forum, leaving all the posts made since as "unread" posts, even if they have been read by the user. Snitz does not take note of the read posts, it just uses the last visit date. To avoid this "annoyance" I always click the Mark All Read button in active.asp before leaving the forum.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

James
Average Member

USA
539 Posts

Posted - 23 November 2002 :  13:39:29  Show Profile  Visit James's Homepage
GauravBhabu made a mod for this that can be found at http://forum.snitz.com/forum/topic.asp?TOPIC_ID=36018. I never could get it to work quite as I wanted and finally gave up on it, but it does what you request.

*Interested in Radio Control*
*The RC Web Board - http://www.rcwebboard.com/*
Go to Top of Page

spg
Starting Member

26 Posts

Posted - 25 November 2002 :  16:37:11  Show Profile
Thanks for the information ruirib. I think I have it working now. Really fairly simple to code once you know how snitz stores the information. Thanks again.

~Spencer
Owner-Editor of TabletPCBuzz.com
Microsoft MVP - Tablet PC
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 25 November 2002 :  18:28:58  Show Profile  Send ruirib a Yahoo! Message
Nice that you have it working and I'm glad I could be of help .


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07