osCmax v2.5 User Manual
Results 1 to 5 of 5

Removing Error Image

This is a discussion on Removing Error Image within the osCMax v2 Features Discussion forums, part of the osCmax v2.0 Forums category; Hi Guys, Just a quickie (hopefully!), I'm trying to remove the little exclaimation mark image that appears next to an ...

      
  1. #1
    Member
    Join Date
    Jan 2007
    Posts
    63
    Rep Power
    6


    Default Removing Error Image

    Hi Guys,

    Just a quickie (hopefully!), I'm trying to remove the little exclaimation mark image that appears next to an error message e.g. when you enter incorrect login details on the customer login page?

    Thanks,

    James

  2. #2
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Smile Re: Removing Error Image

    Easiest way is to replace the image with a 1x1px transparent image ...

    You will find it in:
    catalog/images/icons/warning.gif &
    catalog/admin/images/icons/warning.gif

    Depends on if you want to hide this on the client side or admin side.

    You could also looking in warnings.php for the specific code if you want to only do it on specific warnings. (There are quite a lot of different ones throughout the store)

    Hope this helps,

    Regards,
    pgmarshall
    _______________________________

  3. #3
    Member
    Join Date
    Jan 2007
    Posts
    63
    Rep Power
    6


    Default Re: Removing Error Image

    Hi,

    Thanks for your help on this, I've resized the gif as per your instructions but the layout on the page is still a little of (which is my main concern), I need the error text to line up with everything else, at the moment it's indented by a few pixels.

    Looks like there's a space in there as well from looking at the code which isn't in the language file for the page:

    Code:
    <img src="images/icons/error.gif" border="0" alt="Error" title=" Error " width="1" height="1">&nbsp;
    Any ideas where I can go to totally remove both?

    Cheers,

    James

  4. #4
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Smile Re: Removing Error Image

    If you re-read my post I did say "transparent" image - then you won't see it and it will only be 1px wide.

    However, if you want to try and remove all the images from the message stack completely ...

    Look in catalog/includes/classes/message_stack.php

    Around line 38 find:

    $this->messages[] = array('params' => 'class="messageStackError"', 'class' => $class, 'text' => tep_image(DIR_WS_ICONS . 'error.gif', ICON_ERROR) . '&nbsp;' . $message);
    and replace with:

    $this->messages[] = array('params' => 'class="messageStackError"', 'class' => $class, 'text' => $message);
    Should do the trick on the catalog side ... There will be others in wishlist.php.

    Hope this helps,
    pgmarshall
    _______________________________

  5. #5
    Member
    Join Date
    Jan 2007
    Posts
    63
    Rep Power
    6


    Default Re: Removing Error Image

    Thanks for getting back to me, I'll give that a go and keep my fingers crossed!

    Cheers for all the help,

    James

Similar Threads

  1. Image does not exist error in OSCommerce Admin
    By nyalaman in forum osCommerce 2.2 Discussion
    Replies: 7
    Last Post: 08-26-2009, 11:48 AM
  2. Javascript Error for image popups
    By jwilson721 in forum osCmax v2 Installation issues
    Replies: 11
    Last Post: 04-10-2009, 08:15 AM
  3. removing "Other images for this product", image mi
    By deuce in forum osCmax v2 Customization/Mods
    Replies: 11
    Last Post: 01-11-2007, 12:38 PM
  4. fatal error when click on an image to enlarge it?
    By ghost in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 08-31-2004, 07:27 AM
  5. FPDF error: Unsupported image file type: gif, pdf_catalogue
    By vandiike in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 02-24-2004, 03:20 AM

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
  •