Print Page | Close Window

How to upgrade 7.01 to 7.5 selectively

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=6184
Printed Date: 03 April 2026 at 11:38am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: How to upgrade 7.01 to 7.5 selectively
Posted By: clavi
Subject: How to upgrade 7.01 to 7.5 selectively
Date Posted: 05 October 2003 at 7:28pm

Hi,

May I know how can I upgrade my 7.01 (Access 2k) to 7.5 selectively
for the following features:
- Next and previous links on posts over multiple pages
- Long text strings in messages now wrap at the 60th character to keep the formatting of tables correct to prevent left and right scrolling in a browser window
- Compact and repair access database from the admin area (Access only)

Thank you in advance.


Rgds,
Clavi 




Replies:
Posted By: fernan82
Date Posted: 05 October 2003 at 8:12pm

- You'll have to find the code on forum_posts.asp and copy it to your file. <edit> Actually you MIGHT be able to replace forum_posts.asp, I don't see why it wouldn't work, but make sure you make backups first, just in case...

- MAYBE if you replace the files function_format_post.asp and function_edit_post.asp it will work.... Doit at your own risk and make backups first... You might also have to replace function_filters.asp.

- See which files are those and copy them to your admin folder and then add links to it on the admin menus.



-------------
FeRnAN
http://www.danasoft.com/">


Posted By: clavi
Date Posted: 06 October 2003 at 6:26pm

Sorry, I don't get you.
Your solution referring to which of the 3 functionalities?
Thanks.


Rgds,



Posted By: fernan82
Date Posted: 06 October 2003 at 7:42pm
Three solutions for all 3 functionalities.... In the same order you posted them.

-------------
FeRnAN
http://www.danasoft.com/">


Posted By: clavi
Date Posted: 06 October 2003 at 9:48pm

Well, I manage to incorporate the 1st functionality by editing forum_posts.asp and forum_topics.asp. You cannot replace the files as there are other differing lines such as cookie, etc. Thus must edit manually.

As for 2nd functionality, you are suggesting that I replace function_format_post.asp, function_edit_post.asp and function_filters.asp? No extra manual editing?

As for the 3rd functionality, same question arises. No extra manual editing? Just replace all files?

Thanks.



Posted By: fernan82
Date Posted: 06 October 2003 at 10:02pm

For the 2nd I say it MIGHT work, but I just went over the code and figured it wont, so this is what you need to do:

On v7.5's functions_filters.asp look for a function called removeLongText and copy the whole function to your v7.1 file, then open your post_message.asp and add this line:

strMessage = removeLongText(strMessage)

after this line:

strMessage = checkHTML(strMessage)

That should do it...

On the 3rd one I said you will have to copy the files used for that feature and then add the links manually to your admin menus...

 



-------------
FeRnAN
http://www.danasoft.com/">


Posted By: clavi
Date Posted: 07 October 2003 at 1:52am
Brilliant, thanks fenan82! It works nicely.

Back to 1st functionality, I just realised prev and next links had been added to not only forum_topics.asp and forum_posts.asp, but also to members.asp, active_topics.asp and search.asp. I managed to edit all without difficulties except for search.asp. Somehow the prev and next links plus the droplist do not show up properly. Any idea?

Thanks.


Posted By: fernan82
Date Posted: 07 October 2003 at 1:57am

I have no idea cuz I can't see your code, and 'do not show up properly' don't say much.... But why don't try try replacing the whole page? ....mostlikely it will work.



-------------
FeRnAN
http://www.danasoft.com/">


Posted By: clavi
Date 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>



Posted By: fernan82
Date 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
http://www.danasoft.com/">


Posted By: clavi
Date 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.


Posted By: clavi
Date 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.




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