If you want to add new locations where middleboxes can be displayed, you will need to insert a
<?php
$box_loc = '#';//middlebox group
require($template->get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php');
?>
statement block in the desired location, with the new location number (10 or higher) substituted for # in $box_loc.
Then you will need to modify the SQL to update the middlebox location settings in the admin menu, adding the new locations, and run the SQL in Tools > Install SQL Patches.
Alternatively, you can simply move one of the existing require(...'/tpl_middleboxes.php') statement blocks from a location you do not need to a new location or file where you want to use it. This requires no SQL modifications, though the admin setting descriptions will not describe your new location.
Bookmarks