Open post.php
Find:
// If the posting user is logged in, increment his/her post count if (!$pun_user['is_guest']) { $low_prio = ($db_type == 'mysql') ? 'LOW_PRIORITY ' : ''; $db->query('UPDATE '.$low_prio.$db->prefix.'users SET num_posts=num_posts+1, last_post='.$now.' WHERE id='.$pun_user['id']) or error('Unable to update user', __FILE__, __LINE__, $db->error()); }
Replace with
$my_fid=4; // Replace this with your forum id number if(!$fid) { $myresult = $db->query('select t.forum_id from '.$db->prefix.' posts p inner join '.$db->prefix.'topics t on p.topic_id = t.id where p.id='.$new_pid); $fid = $db->result($myresult); } // If the posting user is logged in, increment his/her post count if (!$pun_user['is_guest'] && $fid != $my_fid) { $low_prio = ($db_type == 'mysql') ? 'LOW_PRIORITY ' : ''; $db->query('UPDATE '.$low_prio.$db->prefix.'users SET num_posts=num_posts+1, last_post='.$now.' WHERE id='.$pun_user['id']) or error('Unable to update user', __FILE__, __LINE__, $db->error()); }
Be sure to use your forum id on the first line
Thank you soo much, this worked perfectly. Is there any way i can disable it in more than 1 forum or will it only allow 1 forum to have the count disabled?