So, Then, is this the whole code that will make the hack work right?
Code:
Doublepost = Not counted Hack
File edits: 2 (editpost.php, newreply.php)
#################################################
Step 1
#################################################
--------------------------
In editpost.php, find:
--------------------------
deletepost($postid,$foruminfo[countposts],$threadinfo[threadid]);
--------------------------
Replace it with:
--------------------------
// doublepost = no count hack
$lastpost = $DB_site->query_first("SELECT * FROM post WHERE threadid = '$threadid' AND postid<$postid ORDER BY postid DESC");
if($lastpost[userid]!=$bbuserinfo[userid] || (time()-$lastpost[dateline])>3600 || ($attachmentid and !$foruminfo[moderateattach])) {
deletepost($postid,$foruminfo[countposts],$threadinfo[threadid]);
} else {
deletepost($postid,$countposts=0,$threadinfo[threadid]);
}
// end doublepost = no count hack
--------------------------
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#################################################
Step 2
#################################################
--------------------------
In newreply.php, find:
--------------------------
".iif ($foruminfo[countposts],"posts=posts+1,","")."
--------------------------
Replace it with
--------------------------
// doublepost = no count hack
".iif ($foruminfo[countposts],"posts=posts+'".iif($threadinfo[lastposter] == "$bbuserinfo[username]",'0','1')."',","")."
// end doublepost = nocount hack
--------------------------
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Upload the two files and you're done. Enjoy =P.