• [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 547982 times)

0 Members and 1 Guest are viewing this topic.

Offline Mr Kennedy

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v4.14 (2008-12-28)
« Reply #285 on: December 30, 2008, 05:34:29 PM »
Maybe my mistake but always when i change Category ID with Edit Images the "Picture" change the Category - but the Picture-File and the Thumbnail-File are still in the old category.

My mistake? Or a Bug?

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v4.14 (2008-12-28)
« Reply #286 on: December 30, 2008, 05:36:56 PM »
I have the same problem with the quick edit (Cat_id)

Offline V@nо

  • Addicted member
  • ******
  • Posts: 1.223
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v4.14 (2008-12-28)
« Reply #287 on: December 30, 2008, 09:29:32 PM »
hi guys. I will look into it this evening, but it would very helpful if you'd post step-by-step how to reproduce the issue.
Thanks
Your first three "must do" before you ask a question:
If I asked you to PM me, I meant PM to my primary account, this account doesn't accept PMs.

Offline Mr Kennedy

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v4.14 (2008-12-28)
« Reply #288 on: December 30, 2008, 09:59:48 PM »
hi guys. I will look into it this evening, but it would very helpful if you'd post step-by-step how to reproduce the issue.
Thanks

Ok.
So i go to the ACP.
Click on Edit Images, activate Category ID at Quick Edit Options, search images, and then found images changed the Category ID by quick editing.
Saved with the button, down on the site.
Then just the Image is moved, the Image-File and the Thumbnail-File is still in the old category.

Hope you understand  :)

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v4.14 (2008-12-28)
« Reply #289 on: December 30, 2008, 10:02:49 PM »
Excactly :?

Offline V@nо

  • Addicted member
  • ******
  • Posts: 1.223
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v4.14 (2008-12-28)
« Reply #290 on: December 30, 2008, 10:21:05 PM »
Perfect explanation. Thank you.
Is this only afect quick edit? Single image full edit works fine?
Your first three "must do" before you ask a question:
If I asked you to PM me, I meant PM to my primary account, this account doesn't accept PMs.

Offline Mr Kennedy

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v4.14 (2008-12-28)
« Reply #291 on: December 30, 2008, 10:43:47 PM »
Perfect explanation. Thank you.
Is this only afect quick edit? Single image full edit works fine?

No Problems with Single editing or normal moving of images, just with quick category changing ;)

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.14.1 (2008-12-30)
« Reply #292 on: December 31, 2008, 04:43:20 AM »
Ok, I think it's fixed now in v4.14.1

Changes:
Code: [Select]
- Fixed: incorrect loaded preset name displayed when clicked "back" button
 - Fixed: would not let save new preset if "Default" selected in the dropdown
 - Fixed: quick edit category id would not move images
 - Changed: save at quick edit will only update images that had changes
 - Changed: "Media file" and "Thumb file" removed from quick edit options. This is due to possible conflicts with existing filenames
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 Mr Kennedy

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v4.14.1 (2008-12-30)
« Reply #293 on: December 31, 2008, 08:24:10 AM »
Awesome Job  :thumbup:

Working :)

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v4.14.1 (2008-12-30)
« Reply #294 on: December 31, 2008, 10:32:47 PM »
Hi V@no,

The preset function did not work for me. When I press "Save" I got an empty page. No error and no results.

The file images_presets.txt is writable (666).

I wonder why.

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.14.1 (2008-12-30)
« Reply #295 on: January 01, 2009, 01:36:23 AM »
how about other buttons?
did you try different browser?
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.14.1 (2008-12-30)
« Reply #296 on: January 01, 2009, 01:41:16 AM »
Happy new year V@no.

By the quick edit I chose the image name then I typ the preset name and then I click on save. The results is a blank page.

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.14.1 (2008-12-30)
« Reply #297 on: January 01, 2009, 01:44:29 AM »
oh wait...is your PHP v4 or 5?

I forgot add support for PHP v4...will be fixed in next version.
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.14.1 (2008-12-30)
« Reply #298 on: January 01, 2009, 01:49:12 AM »
PHP Version 4.4.8

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.14.1 (2008-12-30)
« Reply #299 on: January 01, 2009, 08:19:14 AM »
I don't have access to PHP v4, would please test this code: (add it at the top of images.php, below <?php)

//PHP 4.2.x Compatibility function
//http://php.net/manual/en/function.file-get-contents.php#80707
if (!function_exists('file_get_contents'))
{
  function 
file_get_contents($filename$incpath false$resource_context null)
  {
    if (
false === $fh fopen($filename'rb'$incpath))
    {
      
trigger_error('file_get_contents() failed to open stream: No such file or directory'E_USER_WARNING);
      return 
false;
    }
    
    
clearstatcache();
    if (
$fsize = @filesize($filename))
    {
      
$data fread($fh$fsize);
    }
    else
    {
      
$data '';
      while (!
feof($fh))
      {
        
$data .= fread($fh8192);
      }
    }
    
fclose($fh);
    return 
$data;
  }
}
//http://www.phpbuilder.com/board/showthread.php?t=10292234#post10721510
if (!function_exists('file_put_contents'))
{
  
// Define flags related to file_put_contents(), if necessary
  
if (!defined('FILE_USE_INCLUDE_PATH'))
    
define('FILE_USE_INCLUDE_PATH'1);
  if (!
defined('FILE_APPEND'))
    
define('FILE_APPEND'8);
  function 
file_put_contents($filename$data$flags 0)
  {
    
// Handle single dimensional array data
    
if (is_array($data))
    {
      
// Join the array elements
      
$data implode(''$data);
    }
    
// Flags should be an integral value
    
$flags = (int)$flags;
    
// Set the mode for fopen(), defaulting to 'wb'
    
$mode = ($flags FILE_APPEND) ? 'ab' 'wb';
    
$use_include_path = (bool)($flags FILE_USE_INCLUDE_PATH);
    
    
// Open file with filename as a string
    
if ($fp fopen("$filename"$mode$use_include_path))
    {
      
// Acquire exclusive lock if requested
      
if ($flags LOCK_EX)
      {
        if (!
flock($fpLOCK_EX))
        {
          
fclose($fp);
          return 
false;
        }
      }
      
      
// Write the data as a string
      
$bytes fwrite($fp"$data");

      
// Release exclusive lock if it was acquired
      
if ($flags LOCK_EX)
      {
        
flock($fpLOCK_UN);
      }
      
fclose($fp);
      return 
$bytes// number of bytes written
    
}
    return 
false;
  }
}
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)