Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - How to upgrade 7.01 to 7.5 selectively
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to upgrade 7.01 to 7.5 selectively

 Post Reply Post Reply Page  <12
Author
clavi View Drop Down
Newbie
Newbie


Joined: 11 June 2003
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote clavi Quote  Post ReplyReply Direct Link To This Post Posted: 07 October 2003 at 3:35am

Well, basically I cut and paste the code (of search.asp) from 7.5 to 7.01... such that the last portion of my new search.asp looks like this.. (no changes to the other portions were made):

<table width="<% = strTableVariableWidth %>" border="0" cellspacing="0" cellpadding="4" align="center">

<tr>

<td><!-- #include file="includes/forum_jump_inc.asp" --></td>

<%

'If there is more than 1 page of topics then dispaly drop down list to the other topics

If intTotalNumOfPages > 1 Then

'Display an image link to the last topic

Response.Write (vbCrLf & " <td align=""right"" class=""text"">")

'Display a prev link if previous pages are available

If intRecordPositionPageNum > 1 Then Response.Write("<a href=""search.asp?KW=" & Server.URLEncode(Request.QueryString("KW")) & "&SM=" & strSearchMode & "&SI=" & strSearchIn & "&FM=" & intForumID & "&OB=" & Trim(Mid(Request.QueryString("OB"), 1, 3)) & "&SPN=" & intRecordPositionPageNum - 1 & """>&lt;&lt&nbsp;" & strTxtPrevious & "</a>&nbsp;")

Response.Write (strTxtPage & " " & _

vbCrLf & " <select onChange=""ForumJump(this)"" name=""SelectTopicPage"">")

'Loop round to display links to all the other pages

For intTopicPageLoopCounter = 1 to intTotalNumOfPages

'Display a link in the link list to the another topic page

Response.Write (vbCrLf & " <option value=""search.asp?KW=" & Server.URLEncode(Request.QueryString("KW")) & "&SM=" & strSearchMode & "&SI=" & strSearchIn & "&FM=" & intForumID & "&OB=" & Trim(Mid(Request.QueryString("OB"), 1, 3)) & "&SPN=" & intTopicPageLoopCounter & """")

'If this page number to display is the same as the page being displayed then make sure it's selected

If intTopicPageLoopCounter = intRecordPositionPageNum Then

Response.Write (" selected")

End If

'Display the link page number

Response.Write (">" & intTopicPageLoopCounter & "</option>")

Next

'End the drop down list

Response.Write (vbCrLf & " </select> " & strTxtOf & " " & intTotalNumOfPages)

'Display a next link if needed

If intRecordPositionPageNum <> intTotalNumOfPages Then Response.Write("&nbsp;<a href=""search.asp?KW=" & Server.URLEncode(Request.QueryString("KW")) & "&SM=" & strSearchMode & "&SI=" & strSearchIn & "&FM=" & intForumID & "&OB=" & Trim(Mid(Request.QueryString("OB"), 1, 3)) & "&SPN=" & intRecordPositionPageNum + 1 & """>" & strTxtNext & "&nbsp;&gt;&gt;</a>")

Response.Write("</td>")

End If

 

'Reset Server Objects

Set rsTopic = Nothing

Set rsCommon = Nothing

adoCon.Close

Set adoCon = Nothing

%>

</tr>

</table>

Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post Posted: 07 October 2003 at 7:07am

Did you tried replacing the whole page?? I'm pretty sure it will work. If it don't then you need to say what is wrong with your page. I don't think anybody will bother to look at that code if you don't say what's wrong with the page...

FeRnAN
Back to Top
clavi View Drop Down
Newbie
Newbie


Joined: 11 June 2003
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote clavi Quote  Post ReplyReply Direct Link To This Post Posted: 07 October 2003 at 10:45am
Well, with that code, only the drop list will appear, and nothing else, not even any labelling Page X of Y. Neither do the Prev or Next links appear.

Any idea? Thanks.
Back to Top
clavi View Drop Down
Newbie
Newbie


Joined: 11 June 2003
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote clavi Quote  Post ReplyReply Direct Link To This Post Posted: 07 October 2003 at 8:28pm

Solved the search.asp problem.

Problem arises because strSearchMode and strSearchIn were not properly defined.

Hope it helps for other users who encounter the same thing.

Back to Top
 Post Reply Post Reply Page  <12

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.