Author Topic: Help rquest . Script/app for changing image links.  (Read 844 times)

Offline elciego

  • Full Member
  • ****
  • Posts: 25
Help rquest . Script/app for changing image links.
« on: July 10, 2017, 03:11:08 PM »
Hi all,

Are there any scrips or apss for searching and repacing the image links in our posts? Am in the process of uploading and changing to the coppermine host, and it just took me nearly 2 hours to manualy edit one post with 50 odd photos.

Cheers
Abraham

Online Kim

  • Global Moderator
  • Full Member
  • *****
  • Posts: 7950
  • Portland, Oregon, USA
Re: Help rquest . Script/app for changing image links.
« Reply #1 on: July 10, 2017, 04:21:11 PM »
I've been copying my old post into word and doing a replace on the whole URL minus the base photo name.  To make this work, you have to use the same base name for your photos.  And for me, I had been keeping all of my photos in separate sub-directories so that I didn't get too confused.  Since Coppermine only supports one level of folders for your images, I used a free tool called "Bulk Rename Utility" and it helped me quickly append the subdirectory name to all my JPGs.

And I in my search/replace, I added the directory name in too.

To make it a little easier I wrote a macro/script to do the search/replace.  I'd be happy to share it with people, but it is really rather quick and dirty.  And you'll need to change the hard coded coppermine URL to your gallery, not mine :)  But if it would be helpful to anyone, I'm happy to share.

Kim

Offline elciego

  • Full Member
  • ****
  • Posts: 25
Re: Help rquest . Script/app for changing image links.
« Reply #2 on: July 10, 2017, 09:02:49 PM »
Hi Kim,

Have not thought of Word, will give it a try and see how it goes.

Cheers
Abraham

 

SimplePortal 2.3.5 © 2008-2012, SimplePortal