Quote:
Originally posted by zap
But in my code there is a exit; after the close msg so it shouldn't display a second thanks msg.
I don't know what your mistake is because on my board it work fine without a second msg.
Check your code again !!
|
I checked every step told by you and there's nothing to do... I'm not used with PHP so dunno what's wrong/missing.

Anyway if you/someone else can help me here's a sample of the "thank you" msg around line 170 that I would not like to see while closing a thread:
Code:
// redirect
if ($prevpost[visible]==1) {
$goto="showthread.php?postid=$postid#post$postid";
} else {
$goto="forumdisplay.php?forumid=$forumid";
}
eval("echo standardredirect(\$bbtitle,\"".gettemplate("redirect_postthanks")."\",\"$goto\");");
} else {
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,pagetext,allowsmilie,email,signature,ipaddress,iconid,visible) VALUES (NULL,$threadid,'".addslashes($title)."','".addslashes($postusername)."',$userid,".time().",'".addslashes($message)."',$allowsmilie,$email,$signature,'$ipaddress',$iconid,$visible)");
$postid=$DB_site->insert_id();
[Edited by Cr4z33 on 12-16-2000 at 07:45 AM]