To get a really customised appearance, here are the few changes to make (besides the breadcrumb function already described above):
1) In the function msg_box in functions.inc.php:
function msg_box($title, $msg_text, $button_text="", $button_link="", $width="-1")
{
if (function_exists('theme_msg_box'))
{
theme_msg_box($title, $msg_text, $button_text, $button_link, $width);
return;
}
...and the rest of the function left unchanged.
2)In the function cpg_die of the same file:
function cpg_die($msg_code, $msg_text, $error_file, $error_line, $output_buffer = false)
{
global $CONFIG, $lang_cpg_die, $template_cpg_die;
// Simple output if theme file is not loaded
if(!function_exists('pageheader')){
echo 'Fatal error :<br />'.$msg_text;
exit;
}
$ob = ob_get_contents();
if ($ob) ob_end_clean();
if (function_exists('theme_cpg_die'))
{
theme_cpg_die($msg_code, $msg_text, $error_file, $error_line, $output_buffer);
return;
}
...the rest being left unchanged.
3)And the beginning of the function generate_smilies in smilies.inc.php may be replaced by:
function generate_smilies($form = 'post', $field = 'message')
{
global $THEME_DIR;
$smilies = get_smilies_table2();
$paths = array($THEME_DIR.'/smiles/','images/smiles/');
if (function_exists('theme_generate_smilies'))
{
$html = theme_generate_smilies($smilies, $form);
}
else
{
$html = '<table width="100%" border="0" cellspacing="0" cellpadding="0">' . "\n" . ' <tr align="center" valign="middle">' . "\n";
foreach($smilies as $smiley) {
$smile_path = (file_exists($paths[0].$smiley[1]))?($paths[0]):($paths[1]);
$caption = $smiley[2] . " " . $smiley[0];
$html .= ' <td width="5%"><img src="images/smiles/' . $smiley[1] . '" alt="' . $caption . '" width="15" height="15" border="0" style="cursor:pointer;cursor:hand;" title="' . $caption . '" onclick="javascript:emoticon_' . $form . '(\'' . $smiley[0] . '\')"></td>' . "\n";
}
$html .= ' </tr>' . "\n" . '</table>' . "\n";
}
...the rest being left unchanged.
With these changes it is possible to create a completely tablefree theme, while leaving the possibility of a table design. I will release such a theme as soon as it is ready.
Cheers,
== Olivier