Author |
Topic |
|
Martha2Mary
Junior Member
New Zealand
250 Posts |
Posted - 05 April 2004 : 19:06:05
|
Hi,
I have had a request from a Member at my Forum regarding the Active Topics page. She was wanting to know if, when you are at the active topics page, click on one of the active topic links, and post a reply, that you are then returned to the Active Topics page, rather than default.asp
I assume that the modification would need to be made in topic.asp, and the code would need to check the 'referrer', and redirect according to which page the user came from ~ but then I could be gathering wrong. Is there anyone here that might be able to help me achieve this?
Thanks! |
*If Knowledge is Power, and Power Corrupts, what hope is there for Mankind * |
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 05 April 2004 : 19:42:54
|
The modification would be needed in post_info.asp, where the actual message posting and redirect is done. The difficult thing is that you'd need to redirect not to post.asp (the referer to post_info.asp), but to the previous referer (active.asp). This could complicate the logic a bit...but there is a mod that does that.
If you're using 3.4.04, you can apply the Referer Mod, which will do exactly what you want. If you're using a previous version, at least you know what you need to add to inc_header.asp and inc_header_short.asp and then you'll need to use the referer info passed from those pages in post_info.asp. It will be just a matter of redirecting from there to the page pointed to by strRefScriptName, a variable defined by the Referer mod. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
Edited by - ruirib on 05 April 2004 19:43:37 |
|
|
|
Topic |
|
|
|