I have been using the custom header modification for a year or so now, with great luck. Thank you for explaining that to me then. I now have a new problem.
I have read all the forums, and every message that my search popped up. I have found many people asking the same questions about includes. I found a few that asked my question (comming) but it was never answered.
I am trying to put {smf_welcome} into the breadcrumb section in the theme.php, but either it is not parsed, or the echo output is ignored.. It is displayed just as typed. I can use {smf_welcome} in the template.html, but that is not where I need it.
This is what the bread crumb section looks like:
// HTML template for the breadcrumb
$template_breadcrumb = <<<EOT
<!-- BEGIN breadcrumb -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><b>{BREADCRUMB}</b></td>
<td align="right">
{smf_welcome}
{smf_logonline}
</td></tr></table>
<!-- END breadcrumb -->
<!-- BEGIN breadcrumb_user_gal -->
<tr>
<td colspan="3" class="tableh1">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><span class="statlink"><b>{BREADCRUMB}</b></span></td>
<td align="right"><span class="statlink"><b>{STATISTICS}</b></span></td>
</tr>
</table>
</td>
</tr>
<!-- END breadcrumb_user_gal -->
EOT;
I tried escaping the EOT, and starting it up again, but that didnt work (coppermine can't fine the code block then). I tried using $smf_welcome, and that displayed blank (could be echo issue). I tried {smf_welcome} and it is not parsed.
I have multiple php ssi functions that work in the template.html with the following code:
function pageheader($section, $meta = '')
{
global $CONFIG, $THEME_DIR;
global $template_header, $lang_charset, $lang_text_dir;
if(empty($smf_welcome)){
include('http://www.nukeworker.com/forum/SSI.php?ssi_function=welcome');
$smf_welcome = ob_get_contents();
ob_clean();
}
if(empty($smf_logonline)){
include('http://www.nukeworker.com/forum/SSI.php?ssi_function=logOnline');
$smf_logonline = ob_get_contents();
ob_clean();
}
if(empty($smf_boardstats)){
include('http://www.nukeworker.com/forum/SSI.php?ssi_function=boardStats');
$smf_boardstats = ob_get_contents();
ob_clean();
}
if(empty($cpg_statistics)){
include('http://www.nukeworker.com/pictures/statistics_ssi.php');
$cpg_statistics = ob_get_contents();
ob_clean();
}
if(empty($smf_latestmember)){
include('http://www.nukeworker.com/forum/SSI.php?ssi_function=latestMember');
$smf_latestmember = ob_get_contents();
ob_clean();
}
header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
user_save_profile();
$template_vars = array('{LANG_DIR}' => $lang_text_dir,
'{TITLE}' => $CONFIG['gallery_name'] . ' - ' . $section,
'{CHARSET}' => $CONFIG['charset'] == 'language file' ? $lang_charset : $CONFIG['charset'],
'{META}' => $meta,
'{GAL_NAME}' => $CONFIG['gallery_name'],
'{GAL_DESCRIPTION}' => $CONFIG['gallery_description'],
'{MAIN_MENU}' => theme_main_menu(),
'{ADMIN_MENU}' => theme_admin_mode_menu(),
'{smf_welcome}' => $smf_welcome,
'{smf_logonline}' => $smf_logonline,
'{smf_boardstats}' => $smf_boardstats,
'{cpg_statistics}' => $cpg_statistics,
'{smf_latestmember}' => $smf_latestmember,
);
echo template_eval($template_header, $template_vars);
}
Any help you could give me would be appreciated.
I am working on a derivitive of the SMF theme. I have made the "TREE" style navigation for the bread crumbs, and made a few other changes. When I have everything finished, I will share it with the community. I need to learn this trick first, so I can finish my customizations.
Here are a few links:
http://www.nukeworker.com/pictures/thumbnails.php?album=1http://www.nukeworker.com/pictures/