• [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 389265 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.10.3
« Reply #30 on: March 13, 2005, 08:37:41 PM »
V@no
you forgott to answer my part!
vincent
sorry, its not possible
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 Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: [MOD] Check new images in ALL categories v2.10.3
« Reply #31 on: March 13, 2005, 08:44:32 PM »
 :D
we are talking about informatiq - it means everithing is possible  :wink:

but how - thas the question!?

vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline susigirl

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [MOD] Check new images in ALL categories v2.1.2
« Reply #32 on: March 14, 2005, 07:07:55 AM »
What about my questions guys??? :cry:

Hi guys! Sorry for my %$#@ englisj!!! :D

This MOD is superSUPERB but it's giving me some problems (note that I din't said erros!), so I hope you can help me!!! :wink

Let's see:

 :idea: 1.- FEATURE REQUEST: checkimages.php only works for images uploaded directly by me (the admin). Is there a way to make it work with user's images too? I love to have 3 different sizes for the images (thumbnail, detailed view and original in big folder), but I NEED this for the users too! :cry: I always validate images except for some users.

 :?: 2.- BUG? I have the SLL's annotation watermark MOD installed too, but when I use it through checkimages.php only the thumbnails are watermarked!!! :? I don't care it I have watermarked thumbs but I at least want the mark for the detailed images too!!!

 :!: 3.- HELP!!! How to use big folder's images??? I mean: how do I link them from details.php and only for registered users??? How do I show the size and weight of both images just like V@no has in his site?

Too much work??? Is it so difficult to let checkimages.php to work with the tmp_media folder? What about direct uploads? Am I asking too much??? Sorry!!! And I'm really sorry if this have been asking before!!!

Thank you so much guys!!! :wink:

 :roll: :) :P

Offline G4

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: [MOD] Check new images in ALL categories v2.10.3
« Reply #33 on: March 14, 2005, 07:31:30 AM »
question 1 seems to be the same like my question in the other thread. am i right?
http://www.4homepages.de/forum/index.php?topic=6622.0


Offline erikito

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
    • http://www.erikito.com/hotornot/
Re: [MOD] Check new images in ALL categories v2.10.3
« Reply #34 on: March 14, 2005, 06:52:35 PM »
hey, great mod!

I just miss one thing right now: the option to delete new images found that have not been entered to the database.

later!

Visit my gallery if you want to see the hottest chicks on the net.
No spam, no crap, it's just for fun ;)

Thanks for the great script and your help guys!

http://www.erikito.com/

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] Check new images in ALL categories v2.10.3
« Reply #35 on: March 14, 2005, 11:35:04 PM »
Hi

I have two questions:

Where can I change the default for "image file size in pixel"?

I want to copy the original picture into the folder .../media/number_of_category/original/ befor resizing the picture.
What are the modifications to do?

Thank you for helping me.

Serge

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.10.3
« Reply #36 on: March 14, 2005, 11:47:10 PM »
hey, great mod!

I just miss one thing right now: the option to delete new images found that have not been entered to the database.

later!


yes, as u could noticed on the screenshot this feature already in development, I'm working on it ;)
Hopefuly it will be included in next version.'

Hi

I have two questions:

Where can I change the default for "image file size in pixel"?

I want to copy the original picture into the folder .../media/number_of_category/original/ befor resizing the picture.
What are the modifications to do?

Thank you for helping me.

Serge
did u see the settings inside the file? ;)
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 TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] Check new images in ALL categories v2.10.3
« Reply #37 on: March 14, 2005, 11:58:35 PM »
Hi V@no

Yes, I have seen the settings...

but I can not see the value "1820".
The value "1820" is shown in the field "image file size in pixel" in the ACP.

In the settings I entered
Code: [Select]
$big_folder_default = "original";Then I created a folder .../media/number_of_category/original/
But the original picture is not copied in this folder. And I don't get any error message.

Further more the Description and the Keywords are not updated in the database. When I enter the description in "edit picture", the database is updated.... strange, isn't it?

Offline erikito

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
    • http://www.erikito.com/hotornot/
Re: [MOD] Check new images in ALL categories v2.10.3
« Reply #38 on: March 15, 2005, 12:05:54 AM »
cool thx!

Oh and TIMT: open checknewimages.php and search for $max_dimension_default = 600;

Check out V@no's first post:
Quote
v2.1.1
    - Added image max width/height for "Detailed version" view (usefull when u have small screen resolution and large images)
     Edit the file, u'll find new variable at the top ( $max_dimension = 600; ), set desired max size.

And for a copy of the original image: (v@no's mod!)

Open member.php
Find:
Quote
//--------------------------------------------
//--------- Auto Image Resizing --------------
//--------------------------------------------

Add before:

Quote
//save full size backup mod

    $backup = 0;
    if ($image_info[2] == 1 || $image_info[2] == 2 || $image_info[2] == 3)
    {
      $src_backup = BACKUPDIR."/".$cat_id;
      $result = true;
      if (!@is_dir($src_backup)) {
        $oldumask = umask(0);
        $result = @mkdir($src_backup);
        umask($oldumask);
        if (!is_dir($src_backup) || !$result) {
          $result = @mkdir($src_backup, 0755);

        }
      }
      if ($result == true){
        $backup = copy($src, $src_backup."/".$new_name);
      }
    }

//end save full size backup mod

Then open then in includes/constants.php

add this code:

Quote
define('BACKUPDIR', "/full/path/to/your/backup/dir/"); //no trailing slash!


Quote
(create folder anywhere on your server, I'd suggest somewhere outside of web accessible directory, make sure its writible (CHMOD 755 or CHMOD 777) and update the BACKUPDIR contant with your folder's FULL PATH (on linux something like /home/blah/4mages_backup or on windows something like D:\\4images_backup play with single back/foward slashes if it doesnt work)

This was originally posted 05.02.2005, 19:29 by V@no so I think it was lost (due to hack)...

Good luck!


 :? I think I misunderstood your question.... :?
« Last Edit: March 15, 2005, 12:14:19 AM by erikito »
Visit my gallery if you want to see the hottest chicks on the net.
No spam, no crap, it's just for fun ;)

Thanks for the great script and your help guys!

http://www.erikito.com/

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.10.3
« Reply #39 on: March 15, 2005, 12:11:27 AM »
but I can not see the value "1820".
The value "1820" is shown in the field "image file size in pixel" in the ACP.

In the settings I entered
Code: [Select]
$big_folder_default = "original";Then I created a folder .../media/number_of_category/original/
But the original picture is not copied in this folder. And I don't get any error message.
ok, the image size is taken from the settings (max image width/height)
and images being copied into your "original" folder ONLY if they are about to be modifyed (resized or annotation added). There is no point copy the original if the original stays original :p ;)

Further more the Description and the Keywords are not updated in the database. When I enter the description in "edit picture", the database is updated.... strange, isn't it?
yes it is strange.
I'll take a look at it, but would like if somebody else confirm this issue as well.

@erikito:
I belive TIMT was talking about specificly about this mod ;)
But thank you for posting that code!
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 TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] Check new images in ALL categories v2.10.3
« Reply #40 on: March 15, 2005, 12:27:32 AM »
do you mean from the following setting:
Code: [Select]
$dimension_default = $config['max_image_width']  ; //image dimension
so where exactly do I have to enter the value?

This are the settings in my checkimages.php
Code: [Select]
//--------| Default Settings |-------------

$quality_default = ($config['auto_image_quality']) ? $config['auto_image_quality'] : 85; //image quality
$quality_thumbs_default = $config['auto_thumbnail_quality']; //thumbnail quality
$dimension_default = $config['max_image_width']; //image dimension
$dimension_thumbs_default = $config['auto_thumbnail_dimension']; //thumbnail demension
$max_dimension_default = 140; //displayed in preview image dimension (not image resizing)
$num_newimages_default = 30; //images per circle
$big_folder_default = "big"; //name of the "big" folder where original image will be copied to, if its bigger then size set in the settings.
$big_annotate = 0; //add annotation to the "original" images in "big" folder? (0 or 1)
$backup_orig = ""; //leave empty if u dont want backup files when it needed resize or add watermark (to preserve IPTC and EXIF headers) NO TRAILING SLASH!
$filter = 1; //use a filter on filenames. Any non-standart characters will be replaced with _ or just be deleted. (0 or 1)
$thumbpreview = 1; //create temporary thumbnails for preview if no original was found. (only for none-detailed view) (0 or 1)
$thumbpreview_quality = 75; //quality for temporary thumbnails
$thumbpreview_dimensions = 140; //max dimensions for temporary thumbnails
$thumbpreview_tempdir = ROOT_PATH.'data/temp'; //directory for temporary files. Must be writable (CHMOD 777).
$rescan = 1; //rescan for new images after first portion of images added (0 or 1)
if (!$mode)
{
  $annotate_default = (isset($config['annotation_use'])) ? $config['annotation_use'] : 0; //add annotation to the images (require "Annotation MOD" by SLL)
  $big_default = 1; //save original image (0 or 1)
  $auto_iptc_default = 0; //auto insert IPTC (0 or 1)
  $date_iptc_default = 0; //auto insert date from IPTC (0 or 1)
  $detailed_default = 1; //detailed view (0 or 1)
  $auto_resize_default = 1; //resize images (0 or 1)
  $auto_thumbs_default = 1; //create thumbs (0 or 1)
  $subcats_default = 0; //include subcategories (0 or 1)
}

//----------| End Settings |---------------

and the picture is not copied, even the picture is resized....

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.10.3
« Reply #41 on: March 15, 2005, 12:44:39 AM »
do you mean from the following setting:
Code: [Select]
$dimension_default = $config['max_image_width']  ; //image dimension
Yes, thats the one. U can replace $config['max_image_width'] with a number u wish


and the picture is not copied, even the picture is resized....
that should not happend. what does it say in the logs? (after its "imported" it shows the log of what was done)
« Last Edit: March 15, 2005, 12:48:59 AM 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 susigirl

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [MOD] Check new images in ALL categories v2.1.2
« Reply #42 on: March 15, 2005, 02:48:10 AM »
What about my questions guys??? :cry:

Hi guys! Sorry for my %$#@ englisj!!! :D

This MOD is superSUPERB but it's giving me some problems (note that I din't said erros!), so I hope you can help me!!! :wink

Let's see:

 :idea: 1.- FEATURE REQUEST: checkimages.php only works for images uploaded directly by me (the admin). Is there a way to make it work with user's images too? I love to have 3 different sizes for the images (thumbnail, detailed view and original in big folder), but I NEED this for the users too! :cry: I always validate images except for some users.

 :?: 2.- BUG? I have the SLL's annotation watermark MOD installed too, but when I use it through checkimages.php only the thumbnails are watermarked!!! :? I don't care it I have watermarked thumbs but I at least want the mark for the detailed images too!!!

 :!: 3.- HELP!!! How to use big folder's images??? I mean: how do I link them from details.php and only for registered users??? How do I show the size and weight of both images just like V@no has in his site?

Too much work??? Is it so difficult to let checkimages.php to work with the tmp_media folder? What about direct uploads? Am I asking too much??? Sorry!!! And I'm really sorry if this have been asking before!!!

Thank you so much guys!!! :wink:

 :roll: :) :P

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] Check new images in ALL categories v2.10.3
« Reply #43 on: March 15, 2005, 09:26:24 AM »
Hi V@no

I have changed the settings as follow:
Code: [Select]
$big_folder_default = "original";
Then I have created the following folder (755 everytime I change the rights on 777 it is re-changed by the system to 755)
.../media/number_of_category/original

In the ACP (Auto Risizer) the Folder "original" is displayed

Then I deactivate the flag "all picture" and chose a single one (the first picter on the list)

The name of the picture is displayed automaticly

I enter the description and the keywords.

All other information is per default ok.

Now I click on the button "add"

The log shows the following information:
Working on data/media/2/fenster.jpg file:
Copied original file into data/media/2/original/ folder.
Image resized.
Created thumbnail.
Bild erfolgreich hinzugefügt: Blaue Fassade

In data/media/2/original/ exist no files...
And description and keywords are not stored in the database.





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.10.3
« Reply #44 on: March 15, 2005, 09:42:28 AM »
1) u dont need create any folders, the script will create them automaticaly if needed
2) I just tryed on 4images v1.7 and everything worked just fine...are u sure u have the lattest version of this mod?
3) what 4images version do u use?
4) just for testing purposes, remove all @ from the checkimages.php and see if any error messages showed.
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)