Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Import External Images Details »
Import External Images
Mod Version: 1.0.5, by y2ksw (Coder) y2ksw is offline
Developer Last Online: Feb 2020 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (38 votes - 4.68 average) Installs: 302
Released: 07 Nov 2010 Last Update: 14 Feb 2011 Downloads: 1885
Supported DB Changes Uses Plugins Additional Files Translations  

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

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	08-11-2010-11.32.53.jpg
Views:	3990
Size:	112.4 KB
ID:	123480   Click image for larger version

Name:	02-02-2011-22.06.39.jpg
Views:	2772
Size:	126.0 KB
ID:	126356  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #166  
Old 23 Feb 2011, 09:29
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Real name: Doug
Update:

Changing PHP memory_limit variable from 16 MB to 32 MB worked great ...

Fixed 90% of the hangs, however still chokes and locks up mod on any pic thats 2000x1600 referenced through IMG tag. I wish there was some automated way of recognizing members are IMG linking to pics over a certain size as it's happening, stop the process and send them an error message asking them to resize their pics.

I can't stop members from linking to those as many of our members aren't really that computer literate (most 60+ years old) so I'm going to ask our tech support to increase the PHP memory_limit variable once again, this time from 32 MB to 48 MB. I suspect that will work for the latter large pixel sizes.

Will advise when I've done that and re-tested ...

Thanks ..

Regards,
Doug
Reply With Quote
  #167  
Old 24 Feb 2011, 18:52
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Real name: Doug
Final Update:

Problem solved ... mod working fine now with one limitation

I further increased the PHP memory again, this time from 32 MB to 64 MB....

I then tried to once again process a pic that was 2000x1600 pixels and it still hangs, so it seems that if the size is as large as this, even 64 MB of PHP memory is not enough to handle it.

I've decided to not bother trying to automate using this mod to handle any 2000x1600 pixel sized pics, opting instead to try to discourage members from linking with IMG to them, or if they do link to them, manually circumventing those posts with this mod by manually resizing the member's pics.

Is there some way of checking in advance (even a separate mod) to stop people from linking via IMG's to pics larger than a certain pixel size?

Thanks again to y2ksw and BirdOPrey5 for all the help and guidance in getting this mod going for our site.

Regards,
Doug
Reply With Quote
  #168  
Old 24 Feb 2011, 20:18
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
In my admittedly quick search I couldn't find any way of finding the image dimensions without downloading the full image- and if that is what is causing the problem checking what we get would not be a solution- if it's too big it will bug out anyway.
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #169  
Old 24 Feb 2011, 20:30
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Real name: Doug
Originally Posted by BirdOPrey5 View Post
In my admittedly quick search I couldn't find any way of finding the image dimensions without downloading the full image- and if that is what is causing the problem checking what we get would not be a solution- if it's too big it will bug out anyway.
I agree... a chicken and egg syndrome...

I wonder if there's any javascript or other already written query type code that can be run against a graphic file, in order to test for embedded pic data or something else, without having to download the whole file...

Regards,
Doug
Reply With Quote
  #170  
Old 06 Mar 2011, 13:14
d19rnyxx d19rnyxx is offline
 
Join Date: Jan 2011
I needed to know if this mod has any issues with vbOptimise running memcache
Thanks
Reply With Quote
  #171  
Old 07 Mar 2011, 08:30
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by d19rnyxx View Post
I needed to know if this mod has any issues with vbOptimise running memcache
Thanks
None I can think of.
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #172  
Old 16 Mar 2011, 21:38
Old-Git Old-Git is offline
 
Join Date: Dec 2009
Greta mod and I've been looking for something like this for a while.

You may change the task code (query) in order to limit it to certain forum sections. I believe I never will add an option for selecting forum ID's since to my opinion it does not make much sense to import only images for a few sections.
I don't want to grab every image that is posted to my forum, just the ones worthy of keeping. What I want to do is

1.) Create some archive forums for storing threads that are worthy of retention

2.) My archives are structured under one Category called Archives. Under that there are 7 or 8 other Sub-categories for historical eras. Under each sub-category there are 3 sub-forums.

3.) only Admins will be allowed to post in the Archives

4.) When Admin move a thread from normal posting forums to the 'Archive' forums all external images are then 'grabbed' and moved to localhost store (either in database or file system). This would mean the mod would have to treat a moved thread as a new post.

In my opinion this would make the perfect archiving solution and would mean I wasn't saving every piece of crud my users posted to the forums, just the stuff that needs saving. Yes, there's a manual element to it but then archiving is very much a manual process. So the ability to exclude all forums and set specific forums would be essential in this process.

Rgds

Pete
__________________
My Wife married Mr Right, she simply failed to appreciate that my first name is always!
Reply With Quote
  #173  
Old 17 Mar 2011, 16:05
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by Old-Git View Post
Greta mod and I've been looking for something like this for a while.



I don't want to grab every image that is posted to my forum, just the ones worthy of keeping. What I want to do is

1.) Create some archive forums for storing threads that are worthy of retention

2.) My archives are structured under one Category called Archives. Under that there are 7 or 8 other Sub-categories for historical eras. Under each sub-category there are 3 sub-forums.

3.) only Admins will be allowed to post in the Archives

4.) When Admin move a thread from normal posting forums to the 'Archive' forums all external images are then 'grabbed' and moved to localhost store (either in database or file system). This would mean the mod would have to treat a moved thread as a new post.

In my opinion this would make the perfect archiving solution and would mean I wasn't saving every piece of crud my users posted to the forums, just the stuff that needs saving. Yes, there's a manual element to it but then archiving is very much a manual process. So the ability to exclude all forums and set specific forums would be essential in this process.

Rgds

Pete
Yeah, I agree

The philosophy of this plugin is however less archiving than saving images from disappearing over time. However, you may change the parsed sections and subfolders from time to time and achieve then a kind of archiving feature as you describe.
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #174  
Old 17 Mar 2011, 21:53
Old-Git Old-Git is offline
 
Join Date: Dec 2009
Thumbs up

The philosophy of this plugin is however less archiving than saving images from disappearing over time.
Ah....but maybe I've given you something to think about?

At any rate I shall be installing this on my test rig this weekend and having a play, thanks for making it available Giovanni!
__________________
My Wife married Mr Right, she simply failed to appreciate that my first name is always!
Reply With Quote
  #175  
Old 19 Mar 2011, 10:12
Baitona Baitona is offline
 
Join Date: May 2005
HI,

is it possible to import the images to other domain?
__________________
Baitona.com - Always One Step Ahead
ASP, JSP, PHP, SQL - Programming, Hosting and Design
Web: http://www.baitona.com
Email: [email protected]
Reply With Quote
  #176  
Old 19 Mar 2011, 12:21
yahooooh yahooooh is offline
 
Join Date: Dec 2009
perfect mod,is there way to add Watermark Image at specific position
__________________
بيع شراء
الوطنية
اخبار عصام مطير البلوي
Reply With Quote
  #177  
Old 19 Mar 2011, 16:58
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by Baitona View Post
HI,

is it possible to import the images to other domain?
Short answer: no

You would like to store the images to a media server which would need a lot of more operations. However, if you have Linux, you can use the fsftp file system in order to move imported files into another server, or a symbolic link to move it on the same server to another domain. Together with the Forum URL Replacement option, you may achieve then the desired effect.
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #178  
Old 19 Mar 2011, 17:07
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by yahooooh View Post
perfect mod,is there way to add Watermark Image at specific position
Watermarking is beyond the idea of this product.

I feel it's also a bit unethical to sign images as if they were yours, when they have been taken from an external site, instead. With adding watermarking, I would need to add special policies to my software in order to ensure that copyright infringement wouldn't harm me, in case you get sued. Depending on the laws in the country of the persuer, the software producer may have responsibilities regarding copyright infringements.
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #179  
Old 19 Mar 2011, 21:31
maznos maznos is offline
 
Join Date: Oct 2006
Originally Posted by y2ksw View Post
Short answer: no

You would like to store the images to a media server which would need a lot of more operations. However, if you have Linux, you can use the fsftp file system in order to move imported files into another server, or a symbolic link to move it on the same server to another domain. Together with the Forum URL Replacement option, you may achieve then the desired effect.
first of all thank you for your good work

secondly I have a giant forum (over 1 million posts) and I love to install your hack, I am thinking of a small script file that will do the operation of moving uploaded files to multiple domains to spread the files and reduce the multi million files to be congested in single hosting account.

I'll let you know of what result I am getting into

thanks again
Reply With Quote
  #180  
Old 20 Mar 2011, 02:17
sweetpotato sweetpotato is offline
 
Join Date: Oct 2010
I have this error for some images:

Database error in vBulletin 4.1.2:

Invalid SQL:
INSERT IGNORE INTO iei_img (
oldurl,
newurl
) VALUES (
'http://.....com/.21847008.lO70/christmasposter5.jpg',
'http://....net/images/imported/2010/12/6.jpg'
);

MySQL Error : MySQL server has gone away
Error Number : 2006
Request Date : Saturday, March 19th 2011 @ 07:08:56 PM
Error Date : Saturday, March 19th 2011 @ 07:10:43 PM
Script : http://..../cronadmin.php?do=runcron&cronid=90
Referrer : http://..../cronadmin.php?do=runcron&cronid=90
Reply With Quote
Reply

Tags
lisansdevir


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 18:17.

Layout Options | Width: Wide Color: