Thank you so much RichieBoy, that is an awesome mod which I will definitely make use of. While fidgeting with everything, I finally found something that works:
Code:
<?php
define('THIS_SCRIPT', 'Supplier Grid');
$specialtemplates = array();
$phrasegroups = array();
$globaltemplates = array('shell_blank');
require_once('./global.php');
// ########################## content ##############################
ob_start();
include("/var/www/workshopwarrior.com/grid/suppliers.php");
$html = ob_get_contents();
ob_clean();
// build
$navbits[] = 'Supplier Grid';
$navbits = construct_navbits($navbits);
$navbar = render_navbar_template($navbits);
$templater = vB_Template::create('shell_blank');
$templater->register_page_templates();
$templater->register('html', $html);
$templater->register('navbar', $navbar);
print_output($templater->render());
?>
It was always dumping the included PHP file at the top of the page till I used the ob_start and ob_clean code.