I've added two PHP includes to my vBulletin. But I'm having some trouble getting the plugin codes to work.
This is the first:
PHP Code:
ob_start();
include('statsinner.php');
$includedphp = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('cpage_Statsmain', array('includedphp' => $includedphp));
and this is the second:
PHP Code:
ob_start();
include('schoolstatsinner.php');
$otherphp = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('cpage_Stats', array('otherphp' => $otherphp));
Should I put these into one hook plugin or two? - if so how would I construct that code?
I'm also under the impression I need to use ob_clean if i'm using more than one include, but I'm not sure where I should put it. Any advice would be really appreciated