Geeklog is great (hey, check Groklaw.net ) but the fixed html messages in lib-common.php are driving me nuts. I am not a php wizard, so can anyone give me some tips on how to tell Geeklog to use a new template file?
For example:
Text Formatted Code
function COM_showMessage( $msg )
{
global $MESSAGE, $_CONF;
$retval = '';
if( $msg > 0 )
{
$timestamp = strftime( $_CONF['daytime'] );
$retval .= COM_startBlock( $MESSAGE[40] . ' - ' . $timestamp, '',
COM_getBlockTemplate( '_msg_block', 'header' ))
. '<img src="' . $_CONF['layout_url']
. '/images/sysmessage.gif" border="0" align="top" alt="">'
. $MESSAGE[$msg] . '<br><br>'
. COM_endBlock( COM_getBlockTemplate( '_msg_block', 'footer' ));
}
return $retval;
}
I don't want to simply alter the html in that, I want to create a pair of new template files and tell it to use them.
Like:
Text Formatted Code
<!-- sys_msg_header.thtml -->
<img srce="{layout_url}/images/sysmessage.gif"><br>
<!-- / sys_msg_header.thtml-->
<!-- sys_msg_footer.thtml -->
<br><br>
<!-- sys_msg_footer.thtml -->
The function would then put its $MESSAGE[$msg] with those template files wrapped around it.
The problem I have is that each time I try to define a new template file, it reverts to blockheader.thtml and blockfooter.thtml.
Help?