Directory Converter Plugin for PhpMyDirectory Logo Image Issue

This topic contains 30 replies, has 3 voices, and was last updated by  Matt Goodwin 4 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #532621
    #532632

    Kor
    Moderator
    Post count: 16516

    Hi Matt Goodwin,

    Thanks for your post. Could you please share your Website URL here in question along with some screenshots of the said issue? Also, please elaborate a little bit so that we know what you’re referring to.

    #532660

    Alex Rollin
    Moderator
    Post count: 27815

    Rename the images on your desktop with a program, then read out the new names with the same or a different program.
    Once you have a list of the names in a text file you can merge that back into your listing export CSV.

    #532661

    Matt Goodwin
    Full Member
    Post count: 84

    Hi,

    The site can be seen at https://nhtourguide.com/wp

    I really can’t think of any screenshots that would be helpful.

    The images and logo images are from a backup of the old PHPMyDirectory website. The images are in files/images and the logo images are in files/logo.

    When using PHPMyDirectory and add images they rename the image file automatically in both folders and rename each one with a number starting at 1.jpg, then the next image you add is 2.jpg and so on. The problem is that this happened in each of the two folders so if I try to upload them into a single WP folder like uploads/2020/01 the first set of uploads will be fine, but then when I try to upload the second PMD folder of images they will end up overwriting the images I previously uploaded.

    #532693

    Matt Goodwin
    Full Member
    Post count: 84

    Hi Alex,

    Not sure if I understand what you mean. The images are already linked to each listing. Both in the PMD site and the WP site.

    A good example would be here:
    https://nhtourguide.com/wp/places/page/4/ – at the bottom of the page there is a listing for Ripley Falls in Harts Location NH. The photo you see there is wrong. Its the inside of a cruise ship on Lake Winnipesaukee that was used in a different listing that PMD numbered 369.jpg. The image file is located here: https://nhtourguide.com/wp/wp-content/uploads/2020/01/369.jpg.

    If I upload the images from the PMD folder for logos (https://ayecode.b-cdn.net/files/logo/369.jpg) it will show the correct image but then it will overwrite the image where it is used correctly here: https://nhtourguide.com/wp/places/ms-mount-washington-cruise-ship-on-lake-winnipesaukee-2/ (its the 14th image in the top display).

    So the images on the new GD website are linked to the same image already. I would need to change the file name, or probably easier to change the folder name so I could just upload both 369.jpg images, one in each folder for them to appear correctly.

    #532695

    Alex Rollin
    Moderator
    Post count: 27815

    Yes, download the images and rename them on your desktop. Then export the listings, change the image file names in the CSV, then upload both.

    #532844

    Matt Goodwin
    Full Member
    Post count: 84

    Ok, so this will need to be done manually to each of the 400 images, and manually to each of the 400 listings in the exported csv file?

    Just want to be sure I am understand this correctly before I do this amount of work.

    #532878

    Alex Rollin
    Moderator
    Post count: 27815

    Have you already tested the import with an image that has the same filename?

    #532883

    Matt Goodwin
    Full Member
    Post count: 84

    The import, meaning the PMD conversion import? All I have done so far is convert the PMD database and moved over the images from PMD in the files>images folder. This is what gave me all the wrong logo (featured) images. When I looked into it deeper I realized what was going on. I then checked the PMD folder files>logo and saw those were also numbered in sequence 1-400 so I know these will want to overwrite the images from files>images I brought over to the GD site since they all have the same file names.

    #532894

    Alex Rollin
    Moderator
    Post count: 27815

    No, sorry, let me give you some additional information.

    GD has an import/export feature built into it.

    So, you would use that to export your listings, then change the logo filename. Then you would import the listings again.

    After that you would load your logo images, renamed, to the correct folder.

    You can read about the import/export feature here:
    https://wpgeodirectory.com/docs-v2/geodirectory/settings/import-export/

    You can find programs online to rename files in a directory. You would want to put all your logo images in a folder and rename them. Then another desktop tool can probably give you a text file with all the filenames in it. You would use that list of filenames to populate the CSV.

    It will take some manual work, yes, but hopefully not a lot of it.

    #532929

    Matt Goodwin
    Full Member
    Post count: 84

    Thanks Alex! Just for future reference if anyone else runs into this..

    I changed the image file names manually using my Windows desktop folder view and changed the window settings under “Change Your View” to “Details”. From there I just used copy/paste to add the same prefix to each image. The tab button brings you down the list and automatically puts you into edit file name mode. It only took me about 30 minutes to edit 400 image file names.

    #532931

    Matt Goodwin
    Full Member
    Post count: 84

    I downloaded the export CSV file from the WordPress admin at GeoDirectory>Settings>Import/Export. When I opened the file I found that the PMD logo images that should be used for the GD featured image was actually linked correctly to the proper image file. They are linked to /files/logo/___.jpg in the database. Just for testing I moved the files/logo and files/images folders to the WP directory where my WordPress installation is, that did not work. I know it was a long shot but I tried it anyway. I then went to “Places” on the public side of the site and checked the featured image location to see where it was getting the images from. It says wp/wp-content/uploads/2020/01/ – So I am a bit confused why the database appears to be linking correctly but what is being displayed is different.

    I looked through the CSV extensively to see if maybe these images were coming from somewhere else. I searched for the file name (ie: 138.jpg, 140.jpg, 165.jpg, etc) but all searches only produced one result, not two as I expected.

    #532936

    Matt Goodwin
    Full Member
    Post count: 84

    Sorry if this is posting multiple times. It is not appearing on my end…

    I downloaded the export CSV file from the WordPress admin at GeoDirectory> Settings> Import/Export. When I opened the file I found that the PMD logo images that should be used for the GD featured image was actually linked correctly to the proper image file. They are linked to /files/logo/___.jpg in the database. Just for testing I moved the files/logo and files/images folders to the WP directory where my WordPress installation is, that did not work. I know it was a long shot but I tried it anyway. I then went to “Places” on the public side of the site and checked the featured image location to see where it was getting the images from. It says wp/wp-content/uploads/2020/01/ – So I am a bit confused why the database appears to be linking correctly but what is being displayed is different.

    I looked through the CSV extensively to see if maybe these images were coming from somewhere else. I searched for the file name (ie: 138.jpg, 140.jpg, 165.jpg, etc) but all searches only produced one result, not two as I expected.

    #532937

    Matt Goodwin
    Full Member
    Post count: 84

    screenshots…

    #532944

    Kor
    Moderator
    Post count: 16516

    Hi Matt,

    Thanks for your reply. Could you please share your Website WP admin access and along with your FTP access here in private reply. I’d like to check and see if the images are in the correct folder.

    Thanks!

Viewing 15 posts - 1 through 15 (of 31 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket