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
Edited by LNSEMSF - 28 April 2006 at 9:19am