MyBB Community Forums

Full Version: Disable Version Checker
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to disable the MyBB version Checker?  I am not going to update to 1.8 for a while but I don't like looking at the giant warning banner on my ACP Dashboard.  Any suggestions?
you need to edit http://your forum/admin/modules/home/index.php


// Fetch the last time an update check was run
 $update_check = $cache->read("update_check");

// If last update check was greater than two weeks ago (14 days) show an alert
if(isset($update_check['last_check']) && $update_check['last_check'] <= TIME_NOW-60*60*24*14)
{
$lang->last_update_check_two_weeks = $lang->sprintf($lang->last_update_check_two_weeks, "index.php?module=home&amp;action=version_check");
$page->output_error("<p>{$lang->last_update_check_two_weeks}</p>");
}

// If the update check contains information about a newer version, show an alert
if(isset($update_check['latest_version_code']) && $update_check['latest_version_code'] > $mybb->version_code)
{
$lang->new_version_available = $lang->sprintf($lang->new_version_available, "MyBB {$mybb->version}", "<a href=\"http://www.mybb.com/downloads\" target=\"_blank\">MyBB {$update_check['latest_version']}</a>");
$page->output_error("<p><em>{$lang->new_version_available}</em></p>");
}
Thank you!  Should I just memo it out for now or just remove the entire update checker bit?  What is the best way to write it out in case I ever do decide to update the forum? 
you can just comment that part out, so you can revert back in future if needed...


/** CODES **/