It has been brought to my attention that there is a minor bug in the code for this mod.
BUG:
Everytime someone edits a post, their post count goes up by 1 and so does the count of topics posted on the index page.
FIX:
The problem occurs in the following section of the mod (the line in bold):
#
#-----[ FIND ]------------------------------------------
#
submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length);
#
#-----[ REPLACE WITH ]------------------------------------------
#
if ( $mode == 'reply_post' )
{
submit_post_in_reply_to($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length);
}
else
{
submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length);
}
$mode = 'reply';
To fix this problem on existing installations, simply delete the line in blue bold (above), and then apply the following:
Code: Select all
#
#-----[ FIND ]------------------------------------------
#
$user_id = ( $mode == 'reply' || $mode == 'newtopic' ) ? $userdata['user_id'] : $post_data['poster_id'];
#
#-----[ REPLACE WITH ]------------------------------------------
#
$user_id = ( $mode == 'reply' || $mode == 'reply_post' || $mode == 'newtopic' ) ? $userdata['user_id'] : $post_data['poster_id'];
The ZIP files containing this mod have been updated with this change, so new installations should be bug free (I hope).
Sorry for the inconvenience!
