Print Page | Close Window

Return page from Edit 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=22486
Printed Date: 30 March 2026 at 12:10pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Return page from Edit Post
Posted By: suedechaser
Subject: Return page from Edit Post
Date Posted: 23 January 2007 at 12:56am

Hi all,

We have a modified forum_posts.asp called swap.asp for one forum only. ( different colors etc )

When any posts in that forum are edited, it goes back to forum_posts.asp and not to swap.asp.

We have looked through the code to see where the return page may be specified and have only found the following within edit_post.asp:

<snip>

'******************************************
'***      Get return page details      *****
'******************************************

'If there is no     number must be a new post
If Request.Form("PN") = "" Then
     intReturnPageNum = 1
Else
     intReturnPageNum = CInt(Request.Form("PN"))
End If

'calcultae which page the tread     is posted on
If Request.Form("ThreadPos") <> "" Then

     'If the     position in the     topic is on next page add 1 to the return page number
     If CInt(Request.Form("ThreadPos")) > (intThreadsPerPage     * intReturnPageNum) Then
          intReturnPageNum = intReturnPageNum + 1
     End If
End If

<snip>


Is this the code that specifies the return page after editing a post? If so, how do we point to return to swap.asp instead of forum_posts.asp.

regards

suede



Replies:
Posted By: suedechaser
Date Posted: 23 January 2007 at 3:25am
Found it!

Right at the very bottom of edit_post.asp.

<snip>

'Redirect
If blnCheckFirst Then     
     'Redirect to a page letting the user know their post is check first
     Response.Redirect("swap.asp?TID=" & lngTopicID &     "&PN=" & intReturnPageNum & "&MF=Y" & strQsSID2)
Else
     'Return     to the page showing the     posts
     Response.Redirect("swap.asp?TID=" & lngTopicID &     "&PN=" & intReturnPageNum & strQsSID2)
End If

<snip



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