ok, I think I'm almost there. In the phpinclude_start template I have this;
Code:
/*
// Example of how to include a seperate file:
ob_start();
include('yourheader.html');
$your_code = ob_get_contents();
ob_end_clean();
// Now place a reference to $your_code where you want the resulting HTML to be displayed.
// This will most likely be the header or footer template.
*/
<!-- recent wiki changes -->
ob_start();
include('./includes/wiki_recent_changes.php');
$script_output = ob_get_contents();
ob_end_clean();
<!-- /recent wiki changes -->
The file wiki_recent_changes.php just echo's the html I want to display in the navbar template. The navbar template now has this;
Code:
<!-- wiki recent activity -->
<div style="float:center; background-color:#FFFFFF; border:1px solid #AAAAAA; margin-top:-20px;">
<span style="padding:5px;">
$script_output
</span>
. . . etc
Is this looking right?
Thanks again,
-Ross
Quote:
Originally Posted by RossOliver
ok, I think I'm almost there. In the phpinclude_start template I have this;
Code:
/*
// Example of how to include a seperate file:
ob_start();
include('yourheader.html');
$your_code = ob_get_contents();
ob_end_clean();
// Now place a reference to $your_code where you want the resulting HTML to be displayed.
// This will most likely be the header or footer template.
*/
<!-- recent wiki changes -->
ob_start();
include('./includes/wiki_recent_changes.php');
$script_output = ob_get_contents();
ob_end_clean();
<!-- /recent wiki changes -->
The file wiki_recent_changes.php just echo's the html I want to display in the navbar template. The navbar template now has this;
Code:
<!-- wiki recent activity -->
<div style="float:center; background-color:#FFFFFF; border:1px solid #AAAAAA; margin-top:-20px;">
<span style="padding:5px;">
$script_output
</span>
. . . etc
Is this looking right?
Thanks again,
-Ross
|
[edit]
Nevermind, I just hard-coded it into global.php....