Print Page | Close Window

Mod Req: Jump to first unread post

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=19604
Printed Date: 28 March 2026 at 5:51am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Mod Req: Jump to first unread post
Posted By: LNSEMSF
Subject: Mod Req: Jump to first unread post
Date Posted: 28 April 2006 at 9:17am
I tried throwing this code from my 7.92 forum in to 8.01 and ended up with an error. Can anybody re-write?
 
This if from my Active_topics.asp file for 8.01
 
Display the subject of the topic
  Response.Write("<a href=""forum_posts.asp?TID=" & lngTopicID & strQsSID2)
  If intPriority = 3 Then Response.Write("&FID=" & intForumID & "&PR=3" & strQsSID2)
  Response.Write(""" title=""" & strFirstPostMsg & """>" & strSubject & "</a>")
'********************** First Unread post Mod *********************
  If blnNewPost = True Then
                       %>
                       <a href="forum_posts.asp?TID=<% = lngTopicID %>&PN=<% = intRecordPositionPageNum %><% If intPriority = 3 Then Response.Write("&FID=" & intForumID & "&PR=3") %>&TPN=<% = intTopicPagesLoopCounter %>&get=#<% = lngFirstUnreadMessageID %>" target="_self"><img src="<% = strImagePath %>right_arrow.gif" align="absmiddle" border="0" alt="<% = strTxtFirstUnreadPost %>"></a>
   <%
  End If       
'******************************************************************

  
   'Calculate the number of pages for the topic and display links if there are more than 1 page
   intNumberOfTopicPages = ((lngNumberOfReplies + 1)\intThreadsPerPage)
 
 
I added Dim strTxtFirstUnreadPost   and
Dim lngFirstUnreadMessageID to the top of the file as well, so  I can get it to show the icon, and to go to the post, but it goes to the first post, and not the first post that I'd not seen yet.
 
Instead of loading for example
 
xxx.xxx/forum/forum_posts.asp?TID=3178&PN=1&TPN=1&get=#75377
it loads just
xxx.xxx/forum/forum_posts.asp?TID=3178&PN=1&TPN=1&get=#
 
 
Anybody know what I'm missing? I lost the original code with directions years ago, and not sure if they would have helped anyway as it was for version 6 or version 7, can't remember how long ago I first put it in.
 
All help is appreciated
 



Replies:
Posted By: gölge
Date Posted: 29 April 2006 at 2:41pm
'********************** First Unread post Mod *********************
  If blnNewPost = True Then
                       %>
                       <a href="forum_posts.asp?TID=<% = lngTopicID %>&PN=<% = intRecordPositionPageNum %><% If intPriority = 3 Then Response.Write("&FID=" & intForumID & "&PR=3") %>&TPN=<% = intTopicPagesLoopCounter %>&get=#<% = lngFirstUnreadMessageID %>" target="_self"><img src="<% = strImagePath %>right_arrow.gif" align="absmiddle" border="0" alt="<% = strTxtFirstUnreadPost %>"></a>
   <%
  End If       
'******************************************************************
i think the error in here: >&get=#<% = lngFirstUnreadMessageID %>"
 
it must be :
 
>&get=<% = lngFirstUnreadMessageID %>#"
 
 
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net