Image names in Joomla/virtuemart

Discussion in 'Joomla' started by darksat, Oct 23, 2007.

  1. #1
    I am putting together a site in Joomla and I am using the virtuemart shopping cart, however when I upload an image for the product the image name it creates is something like
    8ddcce27b3306d8d891c9a20027a8591.jpg

    First of all, it seems excessivly long, second and perhaps most importantly I would like to have an image name thats descriptive of the actual image, both for SEO and google images.
    eg productname.jpg instead of 8ddcce27b3306d8d891c9a20027a8591.jpg
    I already have sh404sef installed and while its great with URLs it has no capability to rename image urls.
    Anyone know of a way to do this, is there a plugin, do I need to go into the code.
    Advice would be greatly appreciated.
     
    darksat, Oct 23, 2007 IP
  2. thenetninja

    thenetninja Peon

    Messages:
    314
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    yeah you will need to find the piece of code in virtuemart which uses md5_file()'s value to rename the file, then change it to something like $product_name.$file_ext.
     
    thenetninja, Oct 23, 2007 IP
  3. darksat

    darksat Guest

    Messages:
    1,239
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks.
    Any idea where that would be.
    Im fairly new to virtuamart
     
    darksat, Oct 23, 2007 IP
  4. thenetninja

    thenetninja Peon

    Messages:
    314
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    not off the top of my head, but i know the function you are looking for is called md5_file(

    So a search for that in /components/com_virtuemart & /administrator/components/com_virtuemart would be a good start
     
    thenetninja, Oct 23, 2007 IP