View Single Post
Old 02-06-2004, 07:53 PM   #7
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
In search_function.php, the "ob" part is the very first statements in the code, and looks like this.
Code:
ob_start(); 
require("/home/napathon/public_html/ssi/header.php"); 
$my_header_file = ob_get_contents(); 
ob_end_clean();

ob_start(); 
require("/home/napathon/public_html/ssi/footer.php"); 
$my_footer_file = ob_get_contents(); 
ob_end_clean();
The $t_mstrings statement is toward the bottom of the file, and looks like this:
Code:
if ($template == 'array' || is_file($template)) {
    $phpdig_version = PHPDIG_VERSION;
    $t_mstrings =   compact('my_header_file','my_footer_file','powered_by_link','title_message','phpdig_version','result_message','nav_bar','ignore_message','ignore_commess','pages_bar','previous_link','next_link','templates_links');
Word wrapping was removed.

The config.php file has this:
Code:
$template = "$relative_script_path/templates/template.php";
and that is the correct path and filename for it.

I took a phpDig template and modified it so that the header and footer have this, respectively:
Code:
<phpdig:my_header_file/>

<phpdig:my_footer_file/>
Is there anything I missed?
vinyl-junkie is offline   Reply With Quote