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

0 Members and 1 Guest 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 v3.7.3
« Reply #75 on: September 21, 2006, 03:03:41 PM »
its already attached to the original post...
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 klawitter

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v3.7.3
« Reply #76 on: September 21, 2006, 03:08:08 PM »
Sorry Vano, to bother you again. Being an absolute beginner I have no idea where to find the attached MOD . When I click on
2. Download this file.
all I get is an error message !
Any more help would be appreciated.
Tanks and best wishes from germany
Werner

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 v3.7.3
« Reply #77 on: September 21, 2006, 03:25:17 PM »
scroll down the first message (on first page) untill you hit my signature. The attached file is above it. All attachments are placed at the end of the reply.

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 klawitter

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v3.7.3
« Reply #78 on: September 21, 2006, 03:32:11 PM »
WOW, what a service ! I found it ! :-) Thanks for your help.
Dumb me should have found it by myself, now that I see it.
Well, blame it on my age.
Thanks again, i really appreciate it.
Best wishes from germany
Werner

Offline paburmester

  • Full Member
  • ***
  • Posts: 244
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v3.7.3
« Reply #79 on: September 23, 2006, 03:59:42 AM »
this mod works in 1.7.3 ??

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 v3.7.3
« Reply #80 on: September 23, 2006, 04:11:31 AM »
yes
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 paburmester

  • Full Member
  • ***
  • Posts: 244
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v3.7.3
« Reply #81 on: September 23, 2006, 05:10:12 AM »
ok, thanks men..
installing.........................

Offline e-trader_2002

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v3.7.3
« Reply #82 on: September 23, 2006, 12:54:42 PM »
Hi,

I'm using this clever and timesaving MOD quite often to move images among categories. It is ok if you can select the images via the provided search-fields.
But as a new frequent task I have to move a lot of images from different categories into a single target category. But the problem is that those images don't fit any simple, single search-condition.
I would like to gather all the images manually into the lightbox for transfer. So I needed three things as a little ADD-ON to this MOD:

==> Don't forget to backup every module before applying changes !!!

#1: A radio button saying "Process images in lightbox only".

To have this insert the red code-fragment into \admin\images.php

Quote
  show_input_row($lang['field_hits_upper'], "hitsupper", "", $textinput_size);
  show_input_row($lang['field_hits_lower'], "hitslower", "", $textinput_size);
#
#   [MOD] Process images in lightbox only <Start Part #1>
#
   show_radio_row($lang['lightbox_only'], "lightbox_only", $lightbox_only);
#
#   [MOD] Process images in lightbox only <END Part #1>
#
  show_table_separator($lang['sort_options'], 2);

#2: The code performing what the radio button promises:

To have this insert the red code-fragments also into \admin\images.php

Quote
  $limitnumber = (isset($HTTP_POST_VARS['limitnumber'])) ? trim($HTTP_POST_VARS['limitnumber']) : 1;
  if (!$limitnumber) {
    $limitnumber = 1;
  }
 
#
#   [MOD] Process images in lightbox only <Start Part #2>
#
  $lightbox_only = (isset($HTTP_POST_VARS['lightbox_only'])) ? trim($HTTP_POST_VARS['lightbox_only']) : 0;
  if (!$lightbox_only) {
    $lightbox_only = 0;
  }
#
#   [MOD] Process images in lightbox only <End Part #2>
#

  if (isset($HTTP_GET_VARS['direction']) || isset($HTTP_POST_VARS['direction'])) {
    $direction = (isset($HTTP_GET_VARS['direction'])) ? trim($HTTP_GET_VARS['direction']) : trim($HTTP_POST_VARS['direction']);
  }
  else {
    $direction = "ASC";
  }

Quote
  if ($nextpage && !$nextpageabort) {
    $limitstart = $limitstart + $limitnumber;
  }
#
#   [MOD] Process images in lightbox only <Start Part #3>
#
     if ($lightbox_only == 1)
     {
         if (!empty($user_info['lightbox_image_ids']))  {
           $image_id_sql = str_replace(" ", ", ", trim($user_info['lightbox_image_ids']));
         } else {
           $image_id_sql = "0";
         }
        $sql = "SELECT COUNT(*) AS images
                FROM (".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)
                LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id) 
                WHERE image_active = 1 AND image_id IN ($image_id_sql) AND c.cat_id = i.cat_id AND i.cat_id NOT IN (".get_auth_cat_sql("auth_viewcat", "NOTIN").")";
        $countimages = $site_db->query_firstrow($sql);
     } else {

        $sql = "SELECT COUNT(*) AS images
                FROM ".IMAGES_TABLE." i
                LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
                WHERE $condition";
        $countimages = $site_db->query_firstrow($sql);
     }
#
#   [MOD] Process images in lightbox only <End Part #3>
#

  $limitfinish = $limitstart + $limitnumber;

Quote
    echo "<td class=\"tableseparator\">".$lang['field_category']."</td>\n<td class=\"tableseparator\">".$lang['field_username']."</td>\n<td class=\"tableseparator\">".$lang['field_date']."</td>\n<td class=\"tableseparator\">".$lang['options']."</td>\n</tr>\n";

#
#   [MOD] Process images in lightbox only <Start Part #4>
#
     if ($lightbox_only == 1)
     {
         if (!empty($user_info['lightbox_image_ids']))  {
           $image_id_sql = str_replace(" ", ", ", trim($user_info['lightbox_image_ids']));
         } else {
           $image_id_sql = "0";
         }
       $sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_active, i.image_name, i.image_media_file, i.image_thumb_file, i.image_date, i.image_description, i.image_keywords".get_user_table_field(", u.", "user_name")."
                FROM (".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)
                LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id) 
                WHERE image_active = 1 AND image_id IN ($image_id_sql) AND c.cat_id = i.cat_id AND i.cat_id NOT IN (".get_auth_cat_sql("auth_viewcat", "NOTIN").")
                ORDER BY $orderby $direction
                LIMIT ".(($limitstart) ? $limitstart-1 : 0).", $limitnumber";
        $result = $site_db->query($sql);
     }
     else
     {

       $sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_media_file, i.image_thumb_file, i.image_date, i.image_description, i.image_keywords".get_user_table_field(", u.", "user_name")."
               FROM ".IMAGES_TABLE." i
               LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
               WHERE $condition
               ORDER BY $orderby $direction
               LIMIT ".(($limitstart) ? $limitstart-1 : 0).", $limitnumber";
       $result = $site_db->query($sql);
     }
#
#   [MOD] Process images in lightbox only <END Part #4>
#

    $i = 0;
    while ($image_row = $site_db->fetch_array($result)) {


Quote
    show_hidden_input("hitsupper", $hitsupper);
    show_hidden_input("hitslower", $hitslower);
#
#   [MOD] Process images in lightbox only <Start Part #5>
#
    show_hidden_input("lightbox_only", $lightbox_only);
#
#   [MOD] Process images in lightbox only <End Part #5>
#

    show_hidden_input("orderby", $orderby, 1);

#3: The text displayed by the radio button:

To have this insert  the red code-fragment into \lang\deutsch\admin.php ...

Quote
$lang['field_hits_upper'] = "Anzahl Hits größer als";
$lang['field_hits_lower'] = "Anzahl Hits kleiner als";
$lang['lightbox_only'] = "Nur Bilder aus Leuchtkasten bearbeiten";

//-----------------------------------------------------
//--- Navigation --------------------------------------
//-----------------------------------------------------

... and into \lang\english\admin.php ...

Quote
$lang['field_hits_upper'] = "Hits higher than";
$lang['field_hits_lower'] = "Hits lower than";
$lang['lightbox_only'] = "Process images in lightbox only";

//-----------------------------------------------------
//--- Navigation --------------------------------------
//-----------------------------------------------------

That's all folks. I hope my ADD-ON will be usefull to somebody.

e-trader_2002
« Last Edit: September 22, 2008, 06:22:30 AM by V@no »
A hobby is a great way to spent time you actually don't have! :wink:


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 v3.7.3
« Reply #83 on: September 23, 2006, 06:16:19 PM »
nice! thanks for sharing :D
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 Lunique

  • Full Member
  • ***
  • Posts: 109
  • V 1.7.7
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v3.7.3
« Reply #84 on: September 28, 2006, 06:14:27 AM »
Das Problem liegt nicht an diesem Mod, Lösung bietet dir http://4homepages.de/forum/index.php?topic=1096.0

Gruß, Luna

Offline 2ndzenith

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v3.7.3
« Reply #85 on: September 29, 2006, 09:41:08 PM »
I have this mod working on version 1.7.3. I have added a few mods including multi-upload, auto image resize, avatar, alternate directory for download.

Right now when an image is uploaded it stores:
1. A scaled version within /data/media/{folder number}/example.jpg
2. The original in /data/media/{folder number}/big/example.jpg

When I go to delete the photo it removes the scaled version but leaves the file within the /big folder. How can I have it remove it in both places when deleted from the members detail page and also the control panel?

Offline cpuswe

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v3.7.3
« Reply #86 on: October 09, 2006, 11:39:42 AM »
This mod has saved me alot of time in the short period i have used 4images, thanks!

...but, i have a question. Where do you define the size of the text input field for "Image name"? I have rather long Image names and would like to edit the whole name without scrolling. Today its 20 chars i think.

Possible?

/Thomas

Offline desperate_housewif

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v3.7.3
« Reply #87 on: October 29, 2006, 09:41:19 AM »
Ich habe die image.php getauscht. Offline funktioniert es wunderbar. In meiner Online Datenbank erscheint folgender Fehler:
I exchanged image.php. Off-line functions it marvelously. In my on-line data base the following error appears:

Quote
I exchanged image.php. Off-line functions it marvelously. In my on-line data base the following error appears:

Dies ist die Zeile / this is the line:

Quote
show_hidden_input("old_file_name", $image_row['image_media_file']);

Was muß ich ändern?   
What do I have to change?

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v3.7.3
« Reply #88 on: October 29, 2006, 02:55:39 PM »
thx V@no,
working fine for me!
cheers
Nicky
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 ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline __G__

  • Sr. Member
  • ****
  • Posts: 286
    • View Profile
Re: [MOD] Batch Copy/Move/Edit Images v3.7.3
« Reply #89 on: October 30, 2006, 06:14:46 AM »
gave this error on my 1.7.4 Parse error: syntax error, unexpected $end in /home3/mehsus/public_html/admin/images.php on line 1732