Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Remove MessageStack Icons...

    Does anyone know how to remove the MessageStack icons that appear with some messages?

    For example, when you update you account details a message appears with a small icon of a lightbulb. Or, when you have incorrect permissions set on your configure.php file a message appears with a warning triangle.

    I had a little play around with the code, but been unable to get rid of these icons... yet.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Remove MessageStack Icons...

    You could change the ICON_IMAGE_ERROR, ICON_IMAGE_WARNING, ICON_IMAGE_SUCCESS definitions to point to pixel_trans.gif instead of their current settings in your icon_names.php file in your languages folders.

    Code:
    define('ICON_IMAGE_ERROR', 'error.gif');
    define('ICON_IMAGE_WARNING', 'warning.gif');
    define('ICON_IMAGE_SUCCESS', 'success.gif');
    But ... it begs the question "why" ...
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Remove MessageStack Icons...

    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. :)

 

 

Similar Threads

  1. messageStack question
    By tlahtine in forum Contribution-Writing Guidelines
    Replies: 1
    Last Post: 28 Feb 2011, 11:46 PM
  2. messageStack Puzzle
    By hengster in forum General Questions
    Replies: 0
    Last Post: 31 Aug 2010, 08:35 AM
  3. Need to remove to remove the sidebox icons - TruBlu template
    By gaffettape in forum Addon Templates
    Replies: 1
    Last Post: 4 Jun 2009, 09:21 PM
  4. Moving messagestack
    By batman36 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 17 Mar 2008, 09:08 PM
  5. how do i remove the cc icons on step 2 of 3
    By pwoens in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 16 Feb 2008, 08:01 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR