• [MOD] Check new images in ALL categories v2.11 (updated 22-04-2006) 5 0 5 1
Currently:  

Author Topic: [MOD] Check new images in ALL categories v2.11 (updated 22-04-2006)  (Read 364458 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] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #240 on: February 22, 2010, 02:41:47 PM »
it should automatically delete "big" images as well...does it show any kind of errors or messages regarding "big" images?:

1) No Original size (big) Found (Kein Original in Big Ordner gefunden)
2) Error deleting "big" file (Error gelцschte "Big" Datei)
3) Image file successfully deleted from "big" folder (this message is hugely misconfigured originally, it almost doesn't make sense) (Bild-Datei in Big Ordner erfolgreich gelцscht)
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 viadata

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: [MOD] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #241 on: February 23, 2010, 01:23:40 AM »
Danke für die schnelle Antwort. Ich bekomme keine Fehlermeldung. Meine Meldung ist:

Bild erfolgreich gelöscht via090403ujia-025 (ID: 1489)
Bild-Datei erfolgreich gelöscht (via090403ujia-025.jpg)
Thumbnail-Datei erfolgreich gelöscht (via090403ujia-025.jpg)
Kommentare erfolgreich gelöscht

Das Bild im Big Ordner wird aber leider nicht gelöscht. Es ist bestimmt nur eine Kleinigkeit.

Danke für Ihre Hilfe

Holger

Offline Tiburon

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
    • http://www.hintergrundbilder.de
Re: [MOD] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #242 on: March 09, 2010, 05:11:28 PM »
Danke für die schnelle Antwort. Ich bekomme keine Fehlermeldung. Meine Meldung ist:

Bild erfolgreich gelöscht via090403ujia-025 (ID: 1489)
Bild-Datei erfolgreich gelöscht (via090403ujia-025.jpg)
Thumbnail-Datei erfolgreich gelöscht (via090403ujia-025.jpg)
Kommentare erfolgreich gelöscht

Das Bild im Big Ordner wird aber leider nicht gelöscht. Es ist bestimmt nur eine Kleinigkeit.

Danke für Ihre Hilfe

Holger

So ist es mir auch erst gegangen, ich habe dann noch einmal die Rechte neu gesetzt und dann funktionierte auch das Löschen einwandfrei. Vielleicht läßt es sich bei Dir ja auch so einfach lösen.
----------------------------------

Have a nice Day

Offline viadata

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: [MOD] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #243 on: March 13, 2010, 10:51:36 PM »
Danke für den Hinweis.

ich glaube aber daran liegt es bei mir nicht. Ich denke eher, es liegt am fehlerhaftem pfad. Über checkimages lasse ich beim Einchecken der Bilder automatisch den Pfad zum "Big-Bild" eintragen (data/media/cad_id/big/name.jpg)
Kann mir jemand sagen, in welcher php der Löschbefehl ausgeführt wird? Dann könnte ich mal gucken ob ich da was finde.

Danke schön.

Holger

Nachtrag:

Ich hab es hinbekommen. Ich habe unter Admin die images.php modifiziert. Jetzt werden alle Dateien sauber gelöscht.
Danke schön für die Inspiration.

Holger
« Last Edit: March 13, 2010, 11:41:50 PM by viadata »

Rembrandt

  • Guest
Re: [MOD] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #244 on: March 14, 2010, 07:43:10 PM »
Hi!
Danke für den Hinweis........

..... Ich habe unter Admin die images.php modifiziert. Jetzt werden alle Dateien sauber gelöscht.

wäre halt nett wenn du andere auch an deinen erkenntnissen teilhaben lässt.

mfg Andi

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] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #245 on: March 14, 2010, 09:39:03 PM »
I just realized, the problem you've described has nothing to do with this mod...
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 viadata

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: [MOD] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #246 on: March 14, 2010, 09:59:41 PM »
Hallo Zusammen,

V@no: Ich benutze den Checkimages MOD um die mit FTP hochgeladenen Bilder einzuchecken. Somit wird über die MOD das Bild in den big Ordner kopiert, für die Detail Seite kleingerechnet und das Thumbnail für die Kategorieen gebastelt. Jetzt nahm ich an, dass das Löschen der Bilder auch über die MOD gehen muss, um die Originalbilder auch im big Ordner zu löschen. Deshalb hab ich das Problem hier hinterlassen.

Wohin soll ich meinen funktionierenden, wenn auch leihenhaften Lösungsweg hinschreiben? Es scheint sich ja trotzdem jemand dafür zu interessieren.

Holger

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] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #247 on: March 14, 2010, 10:13:30 PM »
No, this mod only does the adding images to 4images, editing/deleting images is done via admin/images.php
If you haven't install yet, I'd suggest you install [MOD] Batch Copy/Move/Edit Images it has support for "big" 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 viadata

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: [MOD] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #248 on: March 14, 2010, 10:19:28 PM »
V@no,

die MOD hatte ich noch nicht gesehen.

Danke sehr.

Holger

Offline DanielsImage

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [MOD] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #249 on: March 27, 2010, 03:56:40 AM »
Although I check in on a periodic basis and read what's new and do my upgrades, it has been so long since I have posted here (well before the hack) that I forgot my original user name and  had to register again.  I have been using 4 images since 2002 and have made many modifications, but I am unsure of how to accomplish this one.
In the checkimages.php file based on V@no's wonderful mod "Check new images in ALL categories v2.11", I need to add 2 things. 

1. I have numbers in the IPTC field "Special Instructions."  Depending on what the numbers are, it needs to insert a specific html block of code into an additional field that I have already created.
Example: if Special Instructions contains the numbers 123, then the code <h2>123 abc</h2> needs to be inserted into the additional field.  If Special Instructions contains 456, then the code <h2>456 abc</h2>  needs to be inserted into the additonal field.
This is much like inserting Title and Description from the IPTC fields.

2. Once the correct html code is inserted into the additional field (eg, <h2>123 abc</h2> or <h2>456 abc</h2> or whatever) then the "abc" part of the html code needs to be changed to the title of the picture.  <h2>123 abc</h2> becomes <h2>123 A Nice Picture</h2>

Currently I manually insert the code into the additional field in the Edit Images ACP  and then batch change the "abc" part in phpMyAdmin with the Update SQL command.


I really should be able to automate the whole process at the Check All New Images command, just like using the IPTC fields to update the name and description fields.

My programming skills are just not good enough to figure out the correct syntax.  I would appreciate the help!
« Last Edit: March 28, 2010, 12:06:39 AM by DanielsImage »

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] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #250 on: March 27, 2010, 03:01:07 PM »
1. find:
        $additional_value_sql "";

insert below:
        if (!$detailed)
        {
          
$imageinfo = @getimagesize(MEDIA_DIR.(($old_cat_id != 0) ? "/".$old_cat_id "")."/".stripslashes($image_media_file), $info);
          if (isset(
$iptc['2#040'][0])) //$iptc['2#040'][0] contains "Special Instructions" data
          
{
            
$HTTP_POST_VARS['image_paypal_'.$i] = $iptc['2#040'][0]; //just iptc data
//            $HTTP_POST_VARS['image_paypal_'.$i] = $iptc['2#040'][0] . "abc"; //iptc and extra data
          
}
        }



Then find:
	
      
show_additional_fields("image", array(), IMAGES_TABLE$ii);


Replace with:
	
      
$array = array();
	
      if (!
$iptc)
	
      {
	
        
$imageinfo = @getimagesize(MEDIA_PATH.$cat_path."/".$image_list[$key][$i-1], $info);
          if (isset(
$info['APP13']))
          {
            
$iptc iptcparse($info['APP13']);
          }
	
      }
        if (isset(
$iptc['2#040'][0]))
        {
          
$array['image_paypal'] = $iptc['2#040'][0];
//          $array['image_paypal'] = $iptc['2#040'][0] . "abc";
        
}
	
      
show_additional_fields("image"$arrayIMAGES_TABLE$ii);



2. try change templates (details.html, thumbnail_html.html, etc)

Code: (HTML template) [Select]
{if image_paypal}{image_paypal}{endif image_paypal}{image_name}
P.S. I would not recommend insert any HTML code into additional fields, do it in templates instead. Also, I don't know what is your "abc" data is, but I'd store original data from IPTC and add that extra "abc" in templates instead.
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 DanielsImage

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [MOD] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #251 on: March 27, 2010, 04:02:19 PM »
Thank you so much for the quick reply!  That is close to what I want, but it is not the "abc" that needs to change based on the Special Instructions, it is the "123" or "456"  The "abc" is always the same and always needs to change to the name of the picture.

Example: we sell our pictures.  each picture is a different size ratio.  the prices depend on the size ratio. 

The choices are different for each one.  We pass those values to PayPal.
When we upload the pictures to the site, the IPTC field "Special Instruction" contains the picture size ratio.  So if the picture is a 4x6 ratio, Special instructions will say  4x6.  If the picture is 5x7 ratio, Special Instructions will say 5x7.

Now I have to edit images and manually insert the correct code to pass to PayPal.  I have an additional field that is named "paypal". If the IPTC Special Instructions say 5x7, I copy and paste the correct code for 5x7.
All paypal codes for all sizes have the words "SOME COOL PICTURE" for the name of the picture. 
After I paste in all the correct codes for all the correct pictures, I go to MySql and batch change "SOME COOL PICTURE" for the actual picture name.

You will understand why the the additional field "PayPal" needs to have the html form code in it and why it does not work in the template file instead.  And really, setting up the paypal code there works elegantly with no problems.  (the actual values are in a javascript code in  header.html )  Of course {image_paypal} is on the details.html page.

Does that clarify my intent?
I think it will be the same as inserting other iptc values, except that it should probably say:
IF iptc_special_instructions="4x6" then insert {<form 4x6 gobbledygook code name="SOME COOL PICTURE" </form>}
ELSE IF iptc_special_instructions="5x7" then insert {<form 5x7 gobbledygook code name="SOME COOL PICTURE" </form>}
ELSE IF iptc_special_instructions="8x10" then insert {<form 8x10 gobbledygook code name="SOME COOL PICTURE" </form>}

and so on

Then, after all the code is in the PayPal field, we need to change SOME COOL PICTURE to the real name of the picture.

So, from my first example  the 123 or 456 represents the picture size.  the abc is just the picture name.

Does it make sense now?  I know it can all be done in checkimages.php, I'm just not that great at the correct syntax.

Thanks again for all your help!
 
« Last Edit: March 27, 2010, 10:26:22 PM by DanielsImage »

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] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #252 on: March 27, 2010, 05:45:21 PM »
In my first code replace
            $HTTP_POST_VARS['image_paypal_'.$i] = $iptc['2#040'][0]; //just iptc data

with:
            $HTTP_POST_VARS['image_paypal_'.$i] = '{<form ' $iptc['2#040'][0] . 'gobbledygook code name="SOME COOL PICTURE" </form>}';

and if you are using "detailed view" option in this mod, then in second code replace
          $array['image_paypal'] = $iptc['2#040'][0];

with
          $array['image_paypal'] = '{<form ' $iptc['2#040'][0] . 'gobbledygook code name="SOME COOL PICTURE" </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 Guldstrand

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: [MOD] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #253 on: June 02, 2010, 02:31:54 PM »
I can´t get this mod to work.
I´m always getting:
Quote
No new images added!
..when trying to auto insert new images with "Check new images" -option in admin.

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] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #254 on: June 02, 2010, 02:52:59 PM »
Please provide step-by-step how you do it.
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)