Thanks for this DrByte.
I've actually done things a different way now. Yes, it involves editing a core file (sorry), but it's only commenting out stuff! :)
Lines 43 to 49 in includes/classes/message_stack.php were changed to this...
Code:
$this->messages[] = 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') {
$this->messages[] = 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') {
$this->messages[] = 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') {
$this->messages[] = 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);
I did this last night, but it didn't work. However, it wa only until this morning that I realised I was editing the admin message_stack.php file! :|
A quick question, since I have edited a core file, will Zen Cart feature overrides for more directories/files in future releases?
Finally, the reason for removing these icons is simple. They didn't really fit in with my template, so I was going to change then. Then I just decided to get rid of them.
Thanks again for the help. :)
Bookmarks