The icons associated with the messages are controlled by the add function in /includes/classes/message_stack.php:
Code:
function add($class, $message, $type = 'error') {
global $template, $current_page_base;
$message = trim($message);
$duplicate = false;
if (strlen($message) > 0) {
if ($type == 'error') {
$theAlert = array('params' => 'class="messageStackError larger"', 'class' => $class, 'text' => zen_image($template->get_template_dir(ICON_IMAGE_ERROR, DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . ICON_IMAGE_ERROR, ICON_ERROR_ALT) . ' ' . $message);
} elseif ($type == 'warning') {
$theAlert = array('params' => 'class="messageStackWarning larger"', 'class' => $class, 'text' => zen_image($template->get_template_dir(ICON_IMAGE_WARNING, DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . ICON_IMAGE_WARNING, ICON_WARNING_ALT) . ' ' . $message);
} elseif ($type == 'success') {
$theAlert = array('params' => 'class="messageStackSuccess larger"', 'class' => $class, 'text' => zen_image($template->get_template_dir(ICON_IMAGE_SUCCESS, DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . ICON_IMAGE_SUCCESS, ICON_SUCCESS_ALT) . ' ' . $message);
} elseif ($type == 'caution') {
$theAlert = array('params' => 'class="messageStackCaution larger"', 'class' => $class, 'text' => zen_image($template->get_template_dir(ICON_IMAGE_WARNING, DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . ICON_IMAGE_WARNING, ICON_WARNING_ALT) . ' ' . $message);
} else {
$theAlert = array('params' => 'class="messageStackError larger"', 'class' => $class, 'text' => $message);
}
for ($i=0, $n=sizeof($this->messages); $i<$n; $i++) {
if ($theAlert['text'] == $this->messages[$i]['text'] && $theAlert['class'] == $this->messages[$i]['class']) $duplicate = true;
}
if (!$duplicate) $this->messages[] = $theAlert;
}
}
You'll want to remove (or comment out) the stuff I've highlighted in red and note that you're making a change to a CORE file (i.e. no override possibilities exist).
Bookmarks