No.
$table->construct_header($lang->controls, array("colspan" => 2, "class" => "align_center", "width" => 300));
needs to be changed to:
$table->construct_header($lang->controls, array("colspan" => 3, "class" => "align_center", "width" => 300));
Also:
if($installed == false)
{
if($compatibility_warning)
{
$table->construct_cell("{$compatibility_warning}", array("class" => "align_center", "colspan" => 2));
}
else
{
$table->construct_cell("<a href=\"index.php?module=config-plugins&action=activate&plugin={$codename}&my_post_key={$mybb->post_code}\">{$lang->install_and_activate}</a>", array("class" => "align_center", "colspan" => 2));
}
}
// Plugin is activated and installed
else if($active_plugins[$codename])
{
$table->construct_cell("<a href=\"index.php?module=config-plugins&action=deactivate&plugin={$codename}&my_post_key={$mybb->post_code}\">{$lang->deactivate}</a>", array("class" => "align_center", "width" => 150));
if($uninstall_button)
{
$table->construct_cell("<a href=\"index.php?module=config-plugins&action=deactivate&uninstall=1&plugin={$codename}&my_post_key={$mybb->post_code}\">{$lang->uninstall}</a>", array("class" => "align_center", "width" => 150));
}
else
{
$table->construct_cell(" ", array("class" => "align_center", "width" => 150));
}
}
// Plugin is installed but not active
else if($installed == true)
{
$table->construct_cell("<a href=\"index.php?module=config-plugins&action=activate&plugin={$codename}&my_post_key={$mybb->post_code}\">{$lang->activate}</a>", array("class" => "align_center", "width" => 150));
if($uninstall_button)
{
$table->construct_cell("<a href=\"index.php?module=config-plugins&action=deactivate&uninstall=1&plugin={$codename}&my_post_key={$mybb->post_code}\">{$lang->uninstall}</a>", array("class" => "align_center", "width" => 150));
}
else
{
$table->construct_cell(" ", array("class" => "align_center", "width" => 150));
}
}
should be replaced with:
if($installed == false)
{
if($compatibility_warning)
{
$table->construct_cell("{$compatibility_warning}", array("class" => "align_center", "colspan" => 2));
}
else
{
$table->construct_cell("<a href=\"index.php?module=config-plugins&action=activate&plugin={$codename}&my_post_key={$mybb->post_code}\">{$lang->install_and_activate}</a>", array("class" => "align_center", "colspan" => 2));
}
$table->construct_cell(" ", array("class" => "align_center", "width" => 150));
}
// Plugin is activated and installed
else if($active_plugins[$codename])
{
$table->construct_cell("<a href=\"index.php?module=config-plugins&action=deactivate&plugin={$codename}&my_post_key={$mybb->post_code}\">{$lang->deactivate}</a>", array("class" => "align_center", "width" => 150));
if($uninstall_button)
{
$table->construct_cell("<a href=\"index.php?module=config-plugins&action=deactivate&uninstall=1&plugin={$codename}&my_post_key={$mybb->post_code}\">{$lang->uninstall}</a>", array("class" => "align_center", "width" => 150));
}
else
{
$table->construct_cell(" ", array("class" => "align_center", "width" => 150));
}
$table->construct_cell($quickri, array("class" => "align_center", "width" => 150));
}
// Plugin is installed but not active
else if($installed == true)
{
$table->construct_cell("<a href=\"index.php?module=config-plugins&action=activate&plugin={$codename}&my_post_key={$mybb->post_code}\">{$lang->activate}</a>", array("class" => "align_center", "width" => 150));
if($uninstall_button)
{
$table->construct_cell("<a href=\"index.php?module=config-plugins&action=deactivate&uninstall=1&plugin={$codename}&my_post_key={$mybb->post_code}\">{$lang->uninstall}</a>", array("class" => "align_center", "width" => 150));
}
else
{
$table->construct_cell(" ", array("class" => "align_center", "width" => 150));
}
$table->construct_cell(" ", array("class" => "align_center", "width" => 150));
}
But I don't really see the usefulness of this - it just saves one click. If you really want to apply these changes, I recommend doing this with Patches plugin:
http://mods.mybb.com/view/patches