Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Mod Req: Jump to first unread post
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Mod Req: Jump to first unread post

 Post Reply Post Reply
Author
LNSEMSF View Drop Down
Newbie
Newbie


Joined: 08 October 2002
Location: United States
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote LNSEMSF Quote  Post ReplyReply Direct Link To This Post Topic: Mod Req: Jump to first unread post
    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
 


Edited by LNSEMSF - 28 April 2006 at 9:19am
Back to Top
gölge View Drop Down
Groupie
Groupie


Joined: 16 April 2005
Location: Turkey
Status: Offline
Points: 182
Post Options Post Options   Thanks (0) Thanks(0)   Quote gölge Quote  Post ReplyReply Direct Link To This Post 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 %>#"
 
 
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.