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 |
#802
|
|||
|
|||
In addition, here is the error I received a few times relating to the database timing out. What changes can I make to the settings to avoid this?
Database error in vBulletin 4.2.4: Invalid SQL: INSERT IGNORE INTO vb_iei_img ( oldurl, newurl ) VALUES ( 'http://217.118.128.96/charlesironside/FMPro?-db=ecar2dta.fp5&key=41457&-img', 'https://www.500eboard.com/forums/clear.gif' ); MySQL Error : MySQL server has gone away Error Number : 2006 Request Date : Friday, November 17th 2017 @ 11:43:51 AM Error Date : Friday, November 17th 2017 @ 11:44:52 AM Script : http://www.500eboard.com/forums/admi...ron&cronid=171 Referrer : https://www.500eboard.com/forums/adm....php?do=modify IP Address : 100.16.101.179 Username : gerryvz Classname : vB_Database_MySQLi MySQL Version : |
#803
|
||||
|
||||
Quote:
|
#804
|
||||
|
||||
Quote:
If this is your box, please make sure that the mysql server never drops connections, but also disallow permanent connections. The speed loss is won back by making less connections due to timed out pages and user refreshes. |
#805
|
|||
|
|||
Hi Giovanni,
Thank you for your responses. Rarely is a developer so responsive and engaged, particularly so many years after creating the code. For that, I thank you. I solved the problem of my image downloads stopping, and I hope this solution is helpful for other people. What I found is that the database is timing out, because the image downloader is waiting for hosts that once had images that were posted in forum posts, that are not responding or no longer have the images on them. What I do is to run the image downloader code manually from the vBulletin Administrative control panel, in the "Scheduled Task Manager" panel, hitting the "Run Now" button. This forces your image downloader code to run manually (in between the 10-minute cron job period). The downloader code will run until it encounters an unresponsive host, and times out. There will be a database error (like I showed in the text I posted previously...you see the URL with the "charlesironside" text in it) that shows the host URL where the timeout occurred. I note this in the database error, and then I add this host (not the entire URL, just the "www.xxxxx.com" portion or equivalent) to the "Ignore" list. After adding the unresponsive host to the Ignore list, then I restart the image downloader manually (as above)...or wait for the cron job to start it again. It will automatically begin the downloading of the images, until it hits another unresponsive host. I check on the downloading every couple of hours. If via my FTP program, I see that there have been no images downloaded for at least 30 minutes, then I run the code manually until I receive another database error. Then I add the offending host to the Ignore list, and start the process again. So, what it comes down to, is hosts that are now off-line or otherwise unresponsive in posts made years ago. This won't be an issue going forward (after all past posts' images are downloaded) because of the ongoing cron job, which will download external images from all future posts regularly -- before the hosts go off-line or otherwise become unresponsive. I hope this makes sense, and I think it is probably the cause of many other peoples' problems with the image downloader abruptly stopping. The solution has worked for me and allowed me to "catch up" on the downloading for all of my past posts. Regards, Gerry |
Благодарность от: | ||
MarkFL |
#806
|
||||
|
||||
Quote:
I am an old style worker and it is my duty and pleasure to reply when I can Regards, Giovanni |
#807
|
|||
|
|||
Quote:
|
#808
|
||||
|
||||
Quote:
|
#809
|
|||
|
|||
Is there really no way to solve this with the importer? That would be an elegant way and the function to re-sort is already built.
|
#810
|
||||
|
||||
Quote:
However, the most elegant function is to move the files and update the database with queries. It has a much smaller impact on a system than importing, namely the additional space it would eat up. |
#811
|
|||
|
|||
OK thanks. What I have to change if the folder named picupload?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|