Quote:
04-25-03 at 10:44 PM Anime-loo said this in Post #22
Xenon's Prevent Double Posting hack fix:
----------------------------
Open newreply.php
----------------------------
Find:
PHP Code:
if ($visible) {
$goto = "showthread.php?s=$session[sessionhash]&postid=" . $lastpost['postid'] . "#post" . $lastpost['postid'];
} else {
$goto = "forumdisplay.php?s=$session[sessionhash]&forumid=$threadinfo[forumid]";
}
eval("standardredirect(\"".gettemplate("redirect_postthanks")."\",\"$goto\");");
exit;
}
Replace with:
PHP Code:
if ($visible) {
$goto = "showthread.php?s=$session[sessionhash]&goto=lastpost&threadid=$threadid";
} else {
$goto = "forumdisplay.php?s=$session[sessionhash]&forumid=$threadinfo[forumid]";
}
@header ("Location: $goto");
exit;
}
// Dev note - if user has double posted he had the last post in thread anyway. Showthread link was changed because of this.
|
Everything works find and all, but when I post it doesn't take me to my post, takes me to the first page. I have the double post hack installed and really don't want to uninstall it because of this.
Is there some code to add or something?
Another thing is that it doesn't do it on ome new forums I added..
Seems to only do it every now and then.. any ideas?