Author Topic: Batch Comments  (Read 12385 times)

0 Members and 1 Guest are viewing this topic.

Offline Peaces

  • Newbie
  • *
  • Posts: 26
    • View Profile
Batch Comments
« on: May 12, 2009, 10:09:38 PM »
Is there a batch process or excel file or automated way I can add the same comments/keywords to multiple files in the same category without going into each individual file page?

I will have over 4000 images uploaded which are broken down into 8 categories. There are comments and keywords that will be the same for every image in a specific category.

I am just not looking forward to editing every image when the information will be exactly the same.

Suggestions? Thanks!

rinaldos

  • Guest
Re: Batch Comments
« Reply #1 on: May 12, 2009, 10:19:53 PM »
if it is possible, use phpmyadmin...... Be careful, Backup your database before!

try this.....

UPDATE 4images_images 
SET
`image_description` = 'your description',
`
image_keywords` = 'your keywordst'
WHERE `cat_id` = 'your category id';



Gruß



Offline Peaces

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Batch Comments
« Reply #2 on: May 13, 2009, 12:05:08 AM »
I have never used phpmyadmin so I will probably not wnat to try it.
Thank you for offering a good suggestion.
Warren

Offline Peaces

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Batch Description and Keywords
« Reply #3 on: May 18, 2009, 02:28:17 PM »
Ok, some follow up questions from my ignorance of not knowing php.

When I go into phpmyadmin, where do I place the code you suggested? Do I look for a particular location?

I have 8 categories... do I put the code into phpmyadmin 8 times or do I put it in for one category and it runs the script then I change it for the next category and then again for each category?
« Last Edit: May 18, 2009, 04:43:16 PM by Peaces »

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Batch Comments
« Reply #4 on: May 18, 2009, 04:37:41 PM »
Do you mean "description" instead of "comments"?
If so, then try first [MOD] Batch Copy/Move/Edit Images
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Peaces

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Batch Descriptions and Keywords
« Reply #5 on: May 18, 2009, 04:44:38 PM »
Yes, I meant Descriptions and Keywords.

Thanks for the response. I got instructions from my Host as to applying the script.

I appreciate the help!

Offline 4ella

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://www.dancersrecruit.com/pictures/
Re: Batch Comments
« Reply #6 on: May 18, 2009, 04:57:33 PM »
@ V@no.
I think he meant to put once descriptions and keywords for every category , for example I have Santa Teresa Gallura pictures which is the city on Sardinia (Italy) , I have 800 pics in this 1 category , I think that he meant to make once keywords (Santa Teresa Gallura , Sardinia , Sardegna , porto , cità , etc) and description (Santa Teresa Gallura is the small city on....) So one description and keywords for all pictures in each category batching these keywords in all 800 pics at once - with batch Copy /Edit /Move  he has to go everytime to Copy and Insert these keywords and description in each image separately . This would be a very useful Mod to make it once - not 800x. And then with Mod Batch Copy/Edit...  to repair some keywords of images - (add - delete)

@Peaces
If you are searching for this as I described above I don't think that you will find it here yet , I was searching for the same and till now didn't find it

http://www.dancersrecruit.com/pictures/
4IMAGES 1.7.6 version/default theme
Apache version   2.2.11 (Unix)
PHP version   5.2.9
MySQL version   5.0.75-community-log
Architecture   x86_64
Operating system   Linux

Offline Peaces

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Batch Description and Keywords
« Reply #7 on: May 18, 2009, 05:07:07 PM »
4ella,

You are exactly correct in your description of what I want to do. I have over 4000 pics to edit. I am going to try the myphpadmin script suggested by rinaldos to make it happen and will return to share my experience.

V@no,

Thank you for sharing your MOD! I have uploaded it and it looks great for many edits that I will want to do going forward.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Batch Comments
« Reply #8 on: May 18, 2009, 05:08:30 PM »
with batch Copy /Edit /Move  he has to go everytime to Copy and Insert these keywords and description in each image separately . This would be a very useful Mod to make it once - not 800x.

You can search for all images in one category, and then batch edit their description/keywords with a single form:
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Peaces

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Batch Comments
« Reply #9 on: May 18, 2009, 05:14:47 PM »
AWESOME! I will go try it.

Offline 4ella

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://www.dancersrecruit.com/pictures/
Re: Batch Comments
« Reply #10 on: May 18, 2009, 05:19:34 PM »
 :oops:  I didn't noticed that it works also for whole category , I'm silent now  :cry:

http://www.dancersrecruit.com/pictures/
4IMAGES 1.7.6 version/default theme
Apache version   2.2.11 (Unix)
PHP version   5.2.9
MySQL version   5.0.75-community-log
Architecture   x86_64
Operating system   Linux

Offline Peaces

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Batch Comments
« Reply #11 on: May 18, 2009, 05:23:48 PM »
OK, Sorry for my ignoance... I selected the Category... not sure how to select all the photos other than I know how many are in the category and change the number in "results per page".

Do I select a "Quick Edit" choice?  ex... Description? That does not get me to a screen like what you show.

Am I missing a step in getting to the Batch screen like your screen prints?

Offline Peaces

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Batch Comments
« Reply #12 on: May 18, 2009, 05:28:11 PM »
OK, I understnd choosing all images in a category. The only issue is not seeing the same screen (batch)  as what is in your post.

Offline 4ella

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://www.dancersrecruit.com/pictures/
Re: Batch Comments
« Reply #13 on: May 18, 2009, 06:06:55 PM »
I don't see it too , I'm controlling all the Mod I installed a time ago , I dont see this screen as V@no has published , maybe I have something forgot when installing   :cry:

http://www.dancersrecruit.com/pictures/
4IMAGES 1.7.6 version/default theme
Apache version   2.2.11 (Unix)
PHP version   5.2.9
MySQL version   5.0.75-community-log
Architecture   x86_64
Operating system   Linux

Offline Peaces

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Batch Descriptions and Keywords
« Reply #14 on: May 18, 2009, 08:22:37 PM »
OK, I took rinaldos recommendation:

UPDATE 4images_images
SET
`image_description` = 'your description',
`image_keywords` = 'your keywordst'
WHERE `cat_id` = 'your category id';

And went to myphpadmin on my Host site and ran the script. It works perfectly.