Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Return page from Edit Post
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Return page from Edit Post

 Post Reply Post Reply
Author
suedechaser View Drop Down
Groupie
Groupie


Joined: 25 February 2006
Location: USA
Status: Offline
Points: 129
Post Options Post Options   Thanks (0) Thanks(0)   Quote suedechaser Quote  Post ReplyReply Direct Link To This Post Topic: Return page from Edit Post
    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

Edited by suedechaser - 23 January 2007 at 12:58am
Back to Top
suedechaser View Drop Down
Groupie
Groupie


Joined: 25 February 2006
Location: USA
Status: Offline
Points: 129
Post Options Post Options   Thanks (0) Thanks(0)   Quote suedechaser Quote  Post ReplyReply Direct Link To This Post 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
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.