All, new, sale and featured item images appear incorrectly (v. 2.8 - 2.94 Build 4)

If the system is installed on a site using a temporary IP address with a tilda character, all, new, sale and featured images may not appear correctly. These images use the tilda character to note a mouseover image, and the full URL causes confusion.

To combat this, you can do one of two things:

Option 1: Ignore it. This only affects temporary URLs with a tilda, and it will not persist when the site transfers to a domain

- or -

Option 2: Remove the base URL from the image by opening the stconfig.php file and:

  1. Add the line:

    $baseaddlimg = str_replace($URL, '', $addlimg);

    just after the following line in the 'additionalLinks' function:

    global $URL;

    (note: in earlier versions, use the line that starts with 'global'.)

  2. Change the code:

    else if (substr_count($addlimg, "~") == 1)

    to:

    else if (substr_count($baseaddlimg, "~") == 1)
  3. Change the code:

    $navsplit = explode("~", $addlimg);

    to:

    $navsplit = explode("~", $baseaddlimg);