The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Import External Images Details »» | |||||||||||||||||||||||||||||||||||
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. Download Now
Screenshots
Supporters / CoAuthors Show Your Support
|
20 благодарности(ей) от: | ||
Baja, bond010007, cRipTz, da_judge, Delfi_r, hivitro, imported_EkSeS, john7911, kafi, mescalin, mohammadxxx, RichieBoy67, sweetpotato, tbworld, Techno Cowboy, The_Hawk, thomas, Virus81, xertox, Zero13 |
Comments |
#222
|
|||
|
|||
I noticed a very small number of images are saved with some unexpected filenames. For instance: 1.gif?t=1264708348 and so on. What should I do about those, I'm fairly sure they do not work; am I correct?
|
#223
|
||||
|
||||
Quote:
In almost all cases you can erase the ? and everything after it and it will still work as normal. My "fix" for it therefore was to simply enforce the extension was only 3 characters long. If you edit the cron file, you'll see I added a line to the function near line 124 of the file. This is what I'm using and it's working in all the tests I've tried- again the OP please feel free to include this code in the next release if you feel it is useful. PHP Code:
|
#224
|
|||
|
|||
Thanks BirdOPrey5 ....
My download of the latest version 1.0.5.iei4.zip showing the cron.php as Feb 14, 2011, already shows your changes above as being incorporated in that file? Am I missing something? Regards, Doug |
#225
|
||||
|
||||
Quote:
The relevant function included in that file is: Code:
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; } } } Code:
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); // Force extension to 3 characters only $extension = substr($extension, 0, 3); //Increment number if file exists for($i = 1;; $i++) { $filename = "$path/$oldfilename-$i.$extension"; if(!file_exists($filename)) { return $filename; } } } |
#226
|
|||
|
|||
Quote:
Made that change .... Regards, Doug |
#227
|
||||
|
||||
Quote:
If entire folders disappear, you have a system problem and if I was you I would concentrate on that, because it does potentially destroy your forums, too. The only other option which comes to my mind is an old cPanel version which has had a sort of inbuilt "protection", which would purge all folders which weren't built from within FTP or the cPanel. If that is the case, this option has to be disabled at least. |
#228
|
||||
|
||||
Yes. I suggest to convert all imported images to JPG, which also would remove eventual tampered images. A sort of inbuilt Antivirus ...
|
#229
|
|||
|
|||
any for 3.8.x?
|
#230
|
||||
|
||||
This works fine on 3.8 as is.
|
#231
|
||||
|
||||
Ok I think Im screwed here. Every single post on my site that linked to an image on my photopost is now gone. All I have now is the replacement image.
Site structure is mysite/forum mysite/gallery What do I do now? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|