Version: 1.0.5, by y2ksw
Developer Last Online: Feb 2023
Category: Administrative and Maintenance Tools -
Version: 4.x.x
Rating:
Released: 11-06-2010
Last Update: 02-13-2011
Installs: 300
DB Changes Uses Plugins
Additional Files Translations
No support by the author.
This vBulletin 4 product imports external images in your posts from external servers or paths into a specific path, normally your forum's image folder.
Differently than the previous product Image Cache for vBulletin 3.x., it parses the posts at regular intervals for new images and replaces the external references in the background. Also, instead of using only a single folder, it creates folders for years and months, making it much easier to handle large quantities of images. The source and destination image URL's are stored into database, too, avoiding unnecessary duplicates.
It moves and optionally converts images from one place to another. It is a handy tool in order to keep your images local to your forums.
Version 1.0.4 is temporarily in BETA stage until the users have confirmed the newly requested features.
Version 1.0.5 is still in BETA stage. It adds a new bunch of additional features, one of which allows you to test your mathematical understanding ... and a few other to fine-tune CURL and socket timeouts, and resizing on the fly of too large images. If you don't know what these options do, please leave them at their default values.
Wouldn't it be better to process the oldest threads first, simply because users who fail to renew their off-site storage, or their free 30 day trials run out, would get those pics moved internally first so there's less chance of ending up with missing pics when that happens?
By the way, thanks for the tips ..
Regards,
Doug
The way I looked at it were older threads probably already are missing images so they don't matter as much... I'm sure it can be debated either way.
I've gone back and forth with this issue (photo links being broken) and using this mod. How hard is it, if a member asks to have his or her photos removed to remove them from the server? I think the members still own the copyright to their photos and if they wish to pull it, it ultimately is their prerogative, right?
In my terms of service (and just about every forum TOS I ever saw) the simple act of posting anything on your forum be it text or picture grants you an irrevocable lifetime license to do with the content as you please. If the user owns the copyright they grant you a license to display it forever. The issue arises when a user posts an image they don't own the copyright to... in that case what is supposed to happen is the copyright holder sends you a take down notice you must comply with or face a lawsuit in which case you should comply.
However there is one well known company skipping the take down notice and going right to the lawsuits so it is a tough call.
I want to suggest one more change I've used successfully on my test forum that may be of use to people with established forums.
In that query change ORDER BY postid to ORDER BY postid DESC so that the newest threads are processed first since it might take days or weeks to process a large existing forum.
So the current option requests are:
make it possible to include and/or exclude forum sections
I've gone back and forth with this issue (photo links being broken) and using this mod. How hard is it, if a member asks to have his or her photos removed to remove them from the server? I think the members still own the copyright to their photos and if they wish to pull it, it ultimately is their prerogative, right?
I think it would be very difficult to accomplish this, because how would you handle quotes?
If I do delete posts (rarely), I hide the whole thread the author has started, but will not touch any of quoted and otherwise copied posts. Including photos. As for the Terms of Service (TOS), I never will delete any post. It has been saving me several times from getting sued by forum fighters
y2ksw, if you're taking feature requests, here is some code I made to keep the original file names...
1) It takes only the file name, not the path-
2) It strips all non alpha-numeric characters besides underscores
3) It sets a max length and truncates any characters over the max length
4) It still appends an integer number to the end so there will never be any file name conflicts.
I added 1 new function replacing iei_getfile_index with:
PHP Code:
//Custom Code To Save Filename function iei_get_file_index_name(&$path, &$extension, $oldfilename) { //Get only the file name (no directory info) $oldfilename = basename ($oldfilename, $extension); //Strip out non alpha-numeric characters $oldfilename = preg_replace("#[^A-Za-z0-9_]#", "", $oldfilename ); //Set max file name length to 40 characters $oldfilename = substr($oldfilename, 0, 40);
//Increment number if file exists for($i = 1;; $i++) { $filename = "$path/$oldfilename-$i.$extension"; if(!file_exists($filename)) { return $filename; } } }
And then the call to the function under the //Get File Index comment I changed it to:
And it's working great... brings in the files with their own (clean) names... In the off chance the file has the same name as another one, it increments the counter by 1 so they always save with a unique name.
Feel free to use some, all, or none of this as you see fit. :up:
y2ksw, if you're taking feature requests, here is some code I made to keep the original file names...
I'm an old Fortran programmer out of the 60's, so in order to save us the potential of screwing up the existing PHP file patching it, is there any chance of getting a copy of yours for testing with those changes already made? Thanks ..
Second, any idea how long you think it would take to run a 150,000 post forum through this process at 10 posts per shot?
I'm an old Fortran programmer out of the 60's, so in order to save us the potential of screwing up the existing PHP file patching it, is there any chance of getting a copy of yours for testing with those changes already made? Thanks ..
Second, any idea how long you think it would take to run a 150,000 post forum through this process at 10 posts per shot?
Regards,
Doug
This depends on the posts with images, external servers, script timeout, computing power of servers. On one of my customers site with a top class server, it took 1 week to catch up the latest post, out of about 900.000 posts with about 15% posts with images and a cronjob every one minute (all *).