• [MOD] Batch Copy/Move/Edit Images v4.15.7 (2011-01-09) 5 0 5 1
Currently:  

Author Topic: [MOD] Batch Copy/Move/Edit Images v4.15.7 (2011-01-09)  (Read 547909 times)

0 Members and 2 Guests are viewing this topic.

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: [MOD] Batch Copy/Move/Edit Images v4.10 (2008-11-06)
« Reply #255 on: November 14, 2008, 03:43:29 PM »
sorry, but get_exif_insert_link() is not part of 4images. It must be from a mod you've installed.
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 thehammer

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • DigitalWhisper
Re: [MOD] Batch Copy/Move/Edit Images v4.10 (2008-11-06)
« Reply #256 on: November 14, 2008, 05:11:27 PM »
Sorry!

This is the code to insert in the admin_functions.php 

Code: [Select]
function get_exif_insert_link($file, $input, $add_text = 1) {
  $exif = read_exif_data($file);
  ereg("([0-9]{4}):([0-9]{2}):([0-9]{2}) ([0-9]{2}):([0-9]{2}):([0-9]{2})", $exif["DateTimeOriginal"], $exif_data_created);
  $value = $exif_data_created[1].'-'.$exif_data_created[2].'-'.$exif_data_created[3].' '.$exif_data_created[4].':'.$exif_data_created[5].':'.$exif_data_created[6];
  if (!empty($value)) {
          $html = "\n<input type=\"hidden\" name=\"hidden_".$input."\" value=\"".trim($value)."\">\n";
          $html .= "<script language=\"javascript\">\n<!--\n";
          $html .= "this.document.writeln('<br /><br /><input type=\"button\" value=\"EXIF Date Time Original &raquo;: $value \" onClick=\"this.form.".$input.".value=".(($add_text) ? "this.form.".$input.".value + " : "")."this.form.hidden_".$input.".value\"> <br /><br />');";
          $html .= "\n//-->\n</script>\n";
          return $html;
     }
}

Offline thehammer

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • DigitalWhisper
Re: [MOD] Batch Copy/Move/Edit Images v4.10 (2008-11-06)
« Reply #257 on: November 14, 2008, 09:21:13 PM »
...my 2 cents for this MOD:

open images.php

goto to line 2846

after :

Code: [Select]
echo "<br />yyyy-mm-dd hh:mm:ss";

ADD
Code: [Select]
// EXIF Date
          $exif = read_exif_data(MEDIA_PATH. '/' .$image_row['cat_id'].'/'.$image_row['image_media_file']);
          ereg("([0-9]{4}):([0-9]{2}):([0-9]{2}) ([0-9]{2}):([0-9]{2}):([0-9]{2})", $exif["DateTimeOriginal"], $exif_data_created);
          $exif_value[i] = $exif_data_created[1].'-'.$exif_data_created[2].'-'.$exif_data_created[3].' '.$exif_data_created[4].':'.$exif_data_created[5].':'.$exif_data_created[6];
          if ( $exif_value[i] <> '-- ::' ){     
             echo "<br /><br /><a href='#' onClick=\"document.getElementById('image_date[$i]').value='$exif_value[i]'\";>EXIF date: <b>$exif_value[i]</b></a><br /><br />";
          }


Now you can, with a click, change the image date to original EXIF date  :)
 

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: [MOD] Batch Copy/Move/Edit Images v4.11 (2008-11-22)
« Reply #258 on: November 22, 2008, 07:37:40 PM »
Try v4.11

Changes log:
Quote
- Fixed: Multi image upload adds user_id from last image to all images.
- Fixed: Wrong message showed when error occur while deleting image comments.
- Added: EXIF support, for now only DateTimeOriginal, DateTimeDigitized and DateTime EXIF values used in edit image page and in quick edit.
- Added: When selected "User ID" in quick edit it allowes you enter username instead of user id. To activate this feature you must install this: http://www.4homepages.de/forum/index.php?topic=23387.0
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 Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v4.11 (2008-11-22)
« Reply #259 on: December 11, 2008, 04:48:42 PM »
Hi Vano,

I have to say that this mod is the best MOD ever made for 4images.

I have a question for you:

Is it possible to make it save your search choice as a template (Quick edit)?

I will explain:

I want the code save these choices:

1- Description + Date + Name
2- Name + 'additional field' + Activate


Is that a challenge for you? Is that possible?

Thanks in advance,



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: [MOD] Batch Copy/Move/Edit Images v4.11 (2008-11-22)
« Reply #260 on: December 11, 2008, 05:24:56 PM »
I'll think of this, but for now as a possible solution you could use two different browsers or different profiles in firefox...
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 Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v4.11 (2008-11-22)
« Reply #261 on: December 11, 2008, 05:26:15 PM »
Thanks in advance :wink:

Offline Mimiru

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v4.11 (2008-11-22)
« Reply #262 on: December 14, 2008, 05:02:54 PM »
EXIF function probably not full. Even with adding function get_exif_insert_link it can't find read_exif_data() =\

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: [MOD] Batch Copy/Move/Edit Images v4.11 (2008-11-22)
« Reply #263 on: December 14, 2008, 05:58:37 PM »
Sorry, don't understand. Please explain.

If you meant exif_read_data() then it's php built-in function (php must be compiled with exif extension) If no such function available the script should continue work without exif support.
« Last Edit: December 14, 2008, 07:05:34 PM by V@no »
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 Mimiru

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v4.11 (2008-11-22)
« Reply #264 on: December 15, 2008, 04:38:54 PM »
Quote
Sorry, don't understand. Please explain.
Ok. Here some quotes from previous post:

sorry, but get_exif_insert_link() is not part of 4images. It must be from a mod you've installed.

and

Sorry!

This is the code to insert in the admin_functions.php 

Code: [Select]
function get_exif_insert_link($file, $input, $add_text = 1) {
  $exif = read_exif_data($file);
  ereg("([0-9]{4}):([0-9]{2}):([0-9]{2}) ([0-9]{2}):([0-9]{2}):([0-9]{2})", $exif["DateTimeOriginal"], $exif_data_created);
  $value = $exif_data_created[1].'-'.$exif_data_created[2].'-'.$exif_data_created[3].' '.$exif_data_created[4].':'.$exif_data_created[5].':'.$exif_data_created[6];
  if (!empty($value)) {
          $html = "\n<input type=\"hidden\" name=\"hidden_".$input."\" value=\"".trim($value)."\">\n";
          $html .= "<script language=\"javascript\">\n<!--\n";
          $html .= "this.document.writeln('<br /><br /><input type=\"button\" value=\"EXIF Date Time Original &raquo;: $value \" onClick=\"this.form.".$input.".value=".(($add_text) ? "this.form.".$input.".value + " : "")."this.form.hidden_".$input.".value\"> <br /><br />');";
          $html .= "\n//-->\n</script>\n";
          return $html;
     }
}

But function from
Code: [Select]
$exif = read_exif_data($file);doesn't exist and script get error.
So probably this is mistake and read_exif_data we need replace to exif_read_data or we need add a missed function.

BTW does anybody test v4.11 with multiupload? It works fine?

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: [MOD] Batch Copy/Move/Edit Images v4.11 (2008-11-22)
« Reply #265 on: December 16, 2008, 01:14:03 AM »
As I said in my previous reply read_exif_data() is built-in PHP function, but it must be enabled in php configuration. I sure can add detection if such function is enabled, but I only can guaranty it to work if you don't use the mod which add get_exif_insert_link() in admin_functions.php
In either case in next update I will add a settings to enable/disable exif.
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 mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v4.11 (2008-11-22)
« Reply #266 on: December 16, 2008, 01:32:10 AM »
@Mimiru

... only as a hint and information ...
... PHP and function exif_read_data ...
... http://www.4homepages.de/forum/index.php?topic=18352.msg100155#msg100155 ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Mimiru

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v4.11 (2008-11-22)
« Reply #267 on: December 16, 2008, 01:57:16 PM »
I have checked php config, exif was disabled so problem has been found. ^^"

Quote
In either case in next update I will add a settings to enable/disable exif.
That was be great.  :roll:

Offline shadowhunter

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • Fotogalerie & Fotocommunity scluzern.com
Re: [MOD] Batch Copy/Move/Edit Images v4.11 (2008-11-22)
« Reply #268 on: December 19, 2008, 10:41:46 AM »
@V@no
Good work! It's a very useful tool! Thanks a lot!

But something I missing (or it would be good to have):
- If i upload a new thumbnail on "images.php?action=editimage", then should be an option to select: New thumbnail resize automatically to the setting value in settings.
- If I have a html-file (or another file e.g video, music etc) to edit (on the same page as above), then should be possible with the right mouseclick or so to download the file from the ACP (better to type the changes directly in the ACP in the html-file :D )

This things is my    suggestion to make the best tool ;)
Thanks!
Greetings

Offline amboutwe

  • Pre-Newbie
  • Posts: 5
    • View Profile
    • Tim And Angi
Re: [MOD] Batch Copy/Move/Edit Images v4.12 (2008-12-26)
« Reply #269 on: December 28, 2008, 12:52:05 AM »
Thanks for the wonderful mod. I've been wishing for this and never though about looking for a mod to do it. I'm gunna look for mods next time I am wishing I could do something as it usually already exists.
--
Angi