4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Plugins => Topic started by: V@no on March 15, 2005, 08:00:45 AM

Title: [Plugin] Check Files on server v1.2 (2009-03-29)
Post by: V@no on March 15, 2005, 08:00:45 AM
Ones I was browsing my site and all of the sudden I discovered that some images and thumbnails were missing (it showed 404.gif and red cross where thumbnails where missing). To check if image file missing is easy - just go to "Edit images" and it shows " ! " if it missing, but with thumbnail files u have to edit the image to find it out - that would take forever editing 3000+ images.
I desided just write something that will find the broken images automaticaly 

------[ Overview ]------------------

This plugin could save lots of time if u need check/find missing/broken files/thumbnails


------[ How does it work ]---------

It scans files from all/selected categories and check if they are actual exist on the server


------[ Installation ]----------------

1. Create admin/plugins/ folder
2. Download files_check_XX.zip from the attachment (#post_attachment) at the bottom of this post
3. Extract it and upload in admin/plugins/


------ [ How to use ] ----------------

Login to your 4images Admin Control Panel
On left side u should see new link Files Check

Scanning:
(http://img212.exs.cx/img212/1476/scan0as.png)

Error Report:
(http://img212.exs.cx/img212/1460/scanf7hh.png)

------ [ Version history ] -----------

v1.2 (2009-03-29)
- Fixed: possible problem on some servers related to incorrect ROOT_PATH
- Added: "include sub-categories" option
- Added: "check thumbnails" option

v1.1
- Added batch delete option

v1
- First release
Title: Re: [Plugin] Check Files on server v1.1
Post by: mawenzi on March 15, 2005, 12:00:08 PM
Thank you V@no for this great tool. 
It works absolutely perfectly and is very efficient.
Title: Re: [Plugin] Check Files on server v1.1
Post by: Matthias70 on August 23, 2005, 02:40:57 AM
Hi V@no,
is it possible to check the images in the "big"-folder?

Matthias
Title: Re: [Plugin] Check Files on server v1.1
Post by: Acidgod on September 27, 2005, 11:29:16 AM
the javascript redirect doesn't work in my Netscape 7.1

the redirect url look like this
files_check.php?action=checkimages&imchkstart=50&imchksize=50&autoredirect=1&local=1&cat=0
Title: Re: [Plugin] Check Files on server v1.1
Post by: Lunique on October 11, 2005, 02:17:50 PM
Is it possible to choose a folder and it's subfolders ? Or is only possible in the two ways to check the whole gallery or each folder in a single way ?
Title: Re: [Plugin] Check Files on server v1.1
Post by: Acidgod on October 11, 2005, 03:06:03 PM
Quote
Or is only possible in the two ways to check the whole gallery or each folder in a single way ?

Thats it... (o:
Title: Re: [Plugin] Check Files on server v1.1
Post by: Matthias70 on November 14, 2005, 08:49:44 PM
Hi V@no,
is an extension possible to check the images in the "big"-folder?

Matthias
Title: Re: [Plugin] Check Files on server v1.1
Post by: Rübe on January 12, 2006, 08:46:11 PM
Hello V@no,

excellent, thanks!  :P
Title: Re: [Plugin] Check Files on server v1.1
Post by: Catman on May 06, 2006, 08:19:40 PM
Can I use this Plugin with 4images 1.7.2 ?
Title: Re: [Plugin] Check Files on server v1.1
Post by: V@no on May 06, 2006, 09:21:43 PM
probably
Title: Re: [Plugin] Check Files on server v1.1
Post by: MetallicAchu on May 19, 2006, 06:57:50 AM
Sweeeeeet!
Very nice done!

Keep up the good work!
Title: Re: [Plugin] Check Files on server v1.1
Post by: sigma. on May 19, 2006, 03:29:08 PM
how about checking the download link?
Title: Re: [Plugin] Check Files on server v1.1
Post by: n32 on August 08, 2006, 08:09:40 PM
I have about 4000! broken thumbnails according to this tool and it is accurate. I have about 12,000 images. I can't use the delete option :( is there a way to forcibly set that the items have no thumbnail and run the thumbnail tool again ?

Thanks.
Title: Re: [Plugin] Check Files on server v1.1
Post by: V@no on August 09, 2006, 12:44:31 AM
There is a mod "rebuild thumbnails", it might help you.
Title: Re: [Plugin] Check Files on server v1.1
Post by: blondl on October 08, 2006, 10:01:31 AM
Hey V@no!

can u please post the file? Thx!

Title: Re: [Plugin] Check Files on server v1.1
Post by: valbuz on October 30, 2006, 04:15:46 PM
hi

where can i find the file?
i didn't see it as attachement...

thanks a lot
pat
Title: Re: [Plugin] Check Files on server v1.1
Post by: mawenzi on October 30, 2006, 04:50:11 PM
... I updated the first post and the attachment ... ;)
Title: Re: [Plugin] Check Files on server v1.1
Post by: valbuz on October 30, 2006, 08:32:06 PM
... I updated the first post and the attachment ... ;)

Great  :!:
many thanks
pat
Title: Re: [Plugin] Check Files on server v1.1
Post by: dhamee on November 29, 2006, 12:08:19 PM
awesome work buddy
Title: Re: [Plugin] Check Files on server v1.1
Post by: dbranko on August 07, 2007, 06:50:48 PM
Great plugin but i have problem!
Is it possible to turn off thumbnail checking!
Thanks!
Title: Re: [Plugin] Check Files on server v1.1
Post by: amboutwe on March 30, 2009, 01:01:21 AM
First, I'll say thank you for this plugin. It has been a lifesaver for me. As usual, V@no has a better solution to my dilemmas than I could have dreamed up. :D

I, too, would love to have the option to check sub folders. I have a gallery over 12,000 subcategories with less than 30 main categories and over 400,000 files. It takes a long time to run check files on the entire gallery but is even worse if I run folder by folder because there is not sub folder option. It would be fantastic if I could select X category and have it check the sub folders just like the improved check new images.
Title: Re: [Plugin] Check Files on server v1.1
Post by: V@no on March 30, 2009, 02:16:47 AM
@dbranko
@amboutwe:

Your feature requests added in v1.2.

changes since v1.1:
Quote
- Fixed: possible problem on some servers related to incorrect ROOT_PATH
- Added: "include sub-categories" option
- Added: "check thumbnails" option
Title: Re: [Plugin] Check Files on server v1.1
Post by: amboutwe on March 30, 2009, 02:33:13 AM
Your feature requests added in v1.2.

Wow. I didn't expect an answer, let alone an update, this quickly. Thank you so much. You made my day!  :D
Title: Re: [Plugin] Check Files on server v1.2 (2009-03-29)
Post by: AKIN on June 10, 2009, 02:36:19 PM
1.7.7 is working.
Title: Fixed: Re: [Plugin] Check Files on server v1.2 (2009-03-29)
Post by: Eagle Eye on October 10, 2009, 12:56:28 PM
@V@no

Is it possible to disable the check thumbnail where the script looks for missing thumbnails and keep the remaining features.... which line should i comment out?

Thanks  :D

ok, I guess i have solved it myself ;)

Code
Code: [Select]
if ($ok || $ok_t) {
$log .= $row['image_id'].",".$ok.",".$ok_t.",".$where.",".$where_t.";";
}
changed to
Code: [Select]
if ($ok) {
$log .= $row['image_id'].",".$ok.",".$ok_t.",".$where.",".$where_t.";";
}
Title: Re: [Plugin] Check Files on server v1.2 (2009-03-29)
Post by: henary on December 14, 2010, 10:46:13 AM
Hello,

thank you v@no for this excellent plugin!

I've a lot of 4images sites with using big-folder and som use MOD histogram.

I'd like to have some plugin-functions to manage this files:

- check for files in $big-folder, if there files without having image-file, it would be nice to delete, but sensitive by extension (usualy i use flv as image-File and in big-dir mp4)
- check for files in $histo-folder, if there files without having image-file, it would be nice to delete

and i need also:
- delete all big-files in selected category
- delete all histogramm.files in selected category (i use "define('HISTO_PATH', ROOT_PATH.HISTO_DIR);" in global.php)

May it is possible to include the first to into files_check.php as well?

I think, the second two easier have an own plugin-file or may include in categories.php like my own modifications:
(http://www.4homepages.de/forum/index.php?action=dlattach;topic=6760.0;attach=6136)

Thanks & Regards
Henry