Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Bulk Title / Description All Files in an Album  (Read 4849 times)

0 Members and 1 Guest are viewing this topic.

scohen125

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • Retina Gallery
Bulk Title / Description All Files in an Album
« on: November 17, 2015, 03:04:08 pm »

Most albums on my website, retinagallery.com, have files all of which need the same title.  Is there a plugin or method to add a title, description, and tags, to all files in an album at once?  That would save me a lot of time.

Thanks,
Steven Cohen
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 1813
Re: Bulk Title / Description All Files in an Album
« Reply #1 on: November 17, 2015, 06:54:43 pm »

There is no plugin or method that I know of.

I tossed the attached file together for you. Place it in the root of your CPG installation. Make sure you are logged in as admin, then access the site as: <site url>/retitle.php

I did not test this on CPG 1.5.20, but I believe it should work for you.  You really should update your site to the latest version of CPG (1.5.38). And, for the future, if you use the HTML5 Upload Plugin (http://forum.coppermine-gallery.net/index.php/topic,75927.0.html), it will allow you to title all images the same during upload.

[edit] Added capability to bulk set Title, Description or Keywords.
[update] Added version for CPG 1.6.x
« Last Edit: December 09, 2018, 02:26:01 pm by ron4mac »
Logged

scohen125

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • Retina Gallery
Re: Bulk Title / Description All Files in an Album
« Reply #2 on: November 17, 2015, 07:29:37 pm »

THANK YOU!!
Logged

scohen125

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • Retina Gallery
Re: Bulk Title / Description All Files in an Album
« Reply #3 on: November 17, 2015, 07:32:36 pm »

That works perfectly.  I appreciate the help.  I uploaded using the Flash uploader and this still worked.  At the risk of seeming greedy, is there a similar script that could bulk add a description to all files in an album?

All the best,
Steve
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 1813
Re: Bulk Title / Description All Files in an Album
« Reply #4 on: November 17, 2015, 08:07:26 pm »

At the risk of seeming greedy, is there a similar script that could bulk add a description to all files in an album?

Changed the file (above) to do title and/or description and/or keywords (just leave blank what you don't want changed).
« Last Edit: November 18, 2015, 01:23:23 am by ron4mac »
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15760
Re: Bulk Title / Description All Files in an Album
« Reply #5 on: November 18, 2015, 10:52:20 am »

Probably a good addition to the admin tools for cpg1.6.x (with the option of selecting a specific or all albums).
Logged

scohen125

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • Retina Gallery
Re: Bulk Title / Description All Files in an Album
« Reply #6 on: November 19, 2015, 02:18:30 pm »

I appreciate the help.  Can you make one more edit to the script?  When I use it on my website, I have 905 albums.  It doesn't order the albums alphabetically or by date.  So I have to search through the list for the album in order to edit the file titles and descriptions.  Can you make it order the albums either alphabetically or by data added with the most recent on top?

Thanks you,
Steve
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 1813
Re: Bulk Title / Description All Files in an Album
« Reply #7 on: November 19, 2015, 06:01:43 pm »

Can you make it order the albums either alphabetically
Done.  No more requests, please.

Update CPG on your site and use the HTML5 Upload Plugin.
Logged

scohen125

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • Retina Gallery
Re: Bulk Title / Description All Files in an Album
« Reply #8 on: November 19, 2015, 06:30:19 pm »

I did a slight modification to the script and tested it.  This file lists all the albums in the site alphabetically.  For my site with a lot of albums, it is a little easier to navigate than the original script. 


Thanks for all the help.

« Last Edit: November 19, 2015, 08:05:59 pm by ron4mac »
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 1813
Re: Bulk Title / Description All Files in an Album
« Reply #9 on: November 19, 2015, 06:50:04 pm »

I did a slight modification to the script and tested it.
Sorry, Steve, you may have misunderstood.  By "Done." in the above post, I meant that I had finished making the changes to the file to sort the albums for you ;)

Your file doesn't have the keyword modification feature that I had added, either.
Logged

scohen125

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • Retina Gallery
Re: Bulk Title / Description All Files in an Album
« Reply #10 on: November 19, 2015, 07:05:07 pm »

Thank you.  I feel kind of like a jerk.  I appreciate the help.  I thought by done you meant I need to stop asking for stuff.
I'm through asking for stuff on this and I am very thankful.
Have a good Thanksgiving.
All the best,
Steve
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.