zivester
07-28-2008, 06:15 PM
I've done this before, but on my new plugin, the same hook location doesn't work.
I have a php file that I want to use to create a specific nav. I've put into my header a variable, $ppheader that gets filled by the following code:
ob_start();
include('/ma/path/header2.php');
global $ppheader = ob_get_contents();
ob_end_clean();
if I hook it on global_start, $ppheader gets the content from the file, but bbuserinfo has not been properly filled out for the user, so It doesn't output the right data (it outputs according to a visitor)
If I put it on global_setup_complete, the header isn't filled out (because ppheader is being filled after the header is sent I imagine?)
Where should I hook this?
I have a php file that I want to use to create a specific nav. I've put into my header a variable, $ppheader that gets filled by the following code:
ob_start();
include('/ma/path/header2.php');
global $ppheader = ob_get_contents();
ob_end_clean();
if I hook it on global_start, $ppheader gets the content from the file, but bbuserinfo has not been properly filled out for the user, so It doesn't output the right data (it outputs according to a visitor)
If I put it on global_setup_complete, the header isn't filled out (because ppheader is being filled after the header is sent I imagine?)
Where should I hook this?