MyBB Community Forums

Full Version: MySupport - Deactivate autosolve when mark as best answer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
I'm using mySupport plugin and saw that it automatically mark post as solved when user set any answer as a best answer, Can anybody tell me how to deactivate this feature, so that it will not mark the post as solved automatically.
It is not in the settings portion.
Open inc/plugins/mysupport.php
Remove line 1730-1754
			// if this thread isn't solved yet, do that too whilst we're here
			// if they're marking a post as the best answer, it must have solved the thread, so save them marking it as solved manually
			if($post_info['status'] != 1 && mysupport_usergroup("canmarksolved"))
			{
				$mod_log_action = "";
				$redirect = "";
				
				// change the status
				mysupport_change_status($post_info, 1);
				
				if(!empty($mod_log_action))
				{
					$mod_log_data = array(
						"fid" => intval($post_info['fid']),
						"tid" => intval($post_info['tid'])
					);
					log_moderator_action($mod_log_data, $mod_log_action);
				}
				mysupport_redirect_message($lang->bestanswer_redirect);
			}
			else
			{
				$redirect = "";
				mysupport_redirect_message($lang->bestanswer_redirect);
			}


Tell me if that works Wink.

Kind regards,
Perfectly working. Thanks Big Grin