Got it! Let me know if this works for you.
Code:
ob_start();
include('/Forum/statsinner.php');
$includedphp = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('TEMPLATE_NAME_YOU_ARE_ADDING_CALL_INTO', array('includedphp' => $includedphp));
Then in your page template call {vb:raw $includedphp}
My example:
Code:
ob_start();
include("$_VhostPath/html/custom/vbulletin_display_login.php");
$pb_header_include = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('header', array('pb_header_include' => $pb_header_include));
--------------- Added [DATE]1271453321[/DATE] at [TIME]1271453321[/TIME] ---------------
Quote:
Originally Posted by NickyDee
I think the problem we both have is that template/variables need to be pre-registered now whereas in the past they didn't.
But I can't for the life of me figure out where I'm going wrong. I've tried adding this (below) code into both my include PHP and my custom page PHP and still no luck:
Code:
vB_Template::preRegister('cpage_Stats',array('includedphp ' => $includedphp));
|
Check your call. Are you using {vb:raw $includedphp} instead of what your original post showed {vb:raw includedphp} ?