HTML editor doesn't show all images

If the insert image feature within the HTMLArea editor doesn't show all your images, it might be because the extensions are capitalized (ie. JPG or GIF instead of jpg or gif).

The 2.51 version corrects this issue. If you're using an earlier system version, you can make a change to the insert_image_inc.php page (in the /popups/ folder in the /htmlarea/ directory within the /storeadmin/ folder) so that it recognizes the capital letter extensions.

Open that file, then locate the line:

if(substr($file, -3) == "gif" OR substr($file, -3) == "jpg" OR substr($file, -4) == "jpeg" OR substr($file, -3) == "png")

Change the $file to strtolower($file) in that line, so you have:

if(substr(strtolower($file), -3) == "gif" OR substr(strtolower($file), -3) == "jpg" OR substr(strtolower($file), -4) == "jpeg" OR substr(strtolower($file), -3) == "png")

Then save the file. Now all the images with uppercase extensions should appear correctly in the drop down box in the HTML editor.