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:	3991
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.
  #211  
Old 23 May 2011, 11:00
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Your database connection timed out before the php script. This never should happen, though, and is a general problem to your forums.

The connection timeout of your database needs to be the same or larger than the PHP script timeout.

Normally this error appears when a query is too long, but in this case I truly believe it's the query timeout
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #212  
Old 23 May 2011, 22:39
TundraSoul TundraSoul is offline
 
Join Date: Mar 2002
Originally Posted by y2ksw View Post
Your database connection timed out before the php script. This never should happen, though, and is a general problem to your forums.

The connection timeout of your database needs to be the same or larger than the PHP script timeout.

Normally this error appears when a query is too long, but in this case I truly believe it's the query timeout
Thanks, when I went looking I discovered that too and made the correction. Now it's purring along again with several gigs of images to process.
Reply With Quote
  #213  
Old 30 May 2011, 00:54
sticky sticky is offline
 
Join Date: Sep 2003
This modification has been working beautifully for me and has become an essential part of my forum.

Unfortunately, for whatever reason, it has stopped, yet the cron job remains there.

Any idea what could cause this? I have been having cron database errors but cronimage is in place and other cron jobs are working.

I just can't figure out the problem.
Reply With Quote
  #214  
Old 30 May 2011, 01:03
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Is there an exceptionally large image it may be getting stuck on?
__________________
-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
  #215  
Old 30 May 2011, 03:55
sticky sticky is offline
 
Join Date: Sep 2003
Originally Posted by BirdOPrey5 View Post
Is there an exceptionally large image it may be getting stuck on?
I don't think so and it has imported some huge ones before.

My recent posts widget stopped populating as well so I'm pulling my hair out trying to fix this.
Reply With Quote
  #216  
Old 30 May 2011, 04:33
sticky sticky is offline
 
Join Date: Sep 2003
Originally Posted by BirdOPrey5 View Post
Is there an exceptionally large image it may be getting stuck on?
You know what? That was it I believe. I removed a 3 meg image from being imported and as well as emptied the table and now it works.
Reply With Quote
  #217  
Old 30 May 2011, 07:05
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Sounds like space or memory limits to me ...
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #218  
Old 01 Jun 2011, 09:19
Baitona Baitona is offline
 
Join Date: May 2005
Hi,

It is working fine and i am happy with it, but there is something strange.
After few months i have discovered that imprted images are completely deleted from the imported folder. in some cases the whole month folder is deleted.. :s
i am the only root on the server, i didnot delete any thing, any idea?
__________________
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
  #219  
Old 01 Jun 2011, 09:37
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
There is no unlink (file delete) in this script.

Maybe you have a service which cleans up unknown vbulletin files?
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #220  
Old 01 Jun 2011, 09:43
Baitona Baitona is offline
 
Join Date: May 2005
thanks

I am really lost of and lot of members are complaining losing their images,
the whole monthly folders are delted too not only files ....

okay what is the best way to move the imparted folder outside of the vbulletin directory?

right now it is in the basic format
images/imported -------as a result---------> domain.com/vb/images/imported

can i do it
../imported ------as a result--------> domain.com/imported
__________________
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
  #221  
Old 03 Jun 2011, 03:51
TundraSoul TundraSoul is offline
 
Join Date: Mar 2002
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?
Reply With Quote
  #222  
Old 03 Jun 2011, 11:11
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by TundraSoul View Post
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?
It seems some places will put the question-mark and an id number or such after some images. They probably due this to better track where images are being viewed.

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.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.

Last edited by BirdOPrey5; 03 Jun 2011 at 12:25.
Reply With Quote
  #223  
Old 03 Jun 2011, 12:01
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Real name: Doug
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
Reply With Quote
  #224  
Old 03 Jun 2011, 12:23
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by BadgerDog View Post
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
It appears it wasn't the "first function" in that file but it's still there...

The relevant function included in that file is:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

My change to this function is as follows (in red):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Just add those lines in red to your existing file.
__________________
-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
  #225  
Old 03 Jun 2011, 15:08
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Real name: Doug
Originally Posted by BirdOPrey5 View Post
It appears it wasn't the "first function" in that file but it's still there...

Just add those lines in red to your existing file.
Thanks ..

Made that change ....

Regards,
Doug
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 02:47.

Layout Options | Width: Wide Color: