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: Nov 2017 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (38 votes - 4.68 average) Installs: 294
Released: 07 Nov 2010 Last Update: 14 Feb 2011 Downloads: 1788
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:	3807
Size:	112.4 KB
ID:	123480   Click image for larger version

Name:	02-02-2011-22.06.39.jpg
Views:	2625
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.
  #16  
Old 08 Nov 2010, 15:23
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by BadgerDog View Post
Thank you Sir ..

So, to the "Ignore" settings I would add "http://photos.imageevent.com" to IGNORE this HIGHSLIDE java script BBCode statement below, which appears in a lot of our posts?

[hsurl=http://photos.imageevent.com/badgerdog/canadianservicerifles/1915rossmkiiisniper223/DSC01967.JPG][img]https://www.vbulletin.org/forum/external/2010/11/33.jpg[/img][/hsurl]

Note: there is an IMG reference in that string for the small icon to support the larger pop-up highlside pic, but would it get ignored too, which is important and what we'd need..

Regards,
Badger
The [hsurl] tag won't get parsed, thus you don't have to worry about this tag.

However, if your users are copying and pasting the image contained in [hsurl] in some way, vbulletin would wrap it with a standard [img] tag. For this you should add photos.imageevent.com/to the ignore list, just to make sure it never gets imported, no matter which tag is used.
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #17  
Old 08 Nov 2010, 15:26
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
PS: In order to scratch off the hsurl tag, you probably will need another filter. An URL around an image remains untouched.
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #18  
Old 08 Nov 2010, 16:22
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Real name: Doug
Originally Posted by y2ksw View Post
The [hsurl] tag won't get parsed, thus you don't have to worry about this tag.

However, if your users are copying and pasting the image contained in [hsurl] in some way, vbulletin would wrap it with a standard [img] tag. For this you should add photos.imageevent.com/to the ignore list, just to make sure it never gets imported, no matter which tag is used.
Sorry for being so dense ....

So, this line of code (or any part of it) on the site would NEVER get touched by your mod when it executes .. correct?

[hsurl=http://photos.imageevent.com/badgerdog/canadianservicerifles/1915rossmkiiisniper223/DSC01967.JPG][IMG]http://photos.imageevent.com/badgerdog/canadianservicerifles/1915rossmkiiisniper223/icons/DSC01967.JPG[/IMG][/hsurl]

Originally Posted by y2ksw View Post
PS: In order to scratch off the hsurl tag, you probably will need another filter. An URL around an image remains untouched.
Another filter? Such as?

I wish there was some way I could test what this mod does and view it's impact, restricting it's cron execution to just a specific "Test Forum" ID, so it didn't act on any other data in the databse. In that way, we could make sure we didn't mess up 4 years of posts without a test. Is that possible to have a test forum ID mode that one can turn ON and OFF?

Thanks again ...

Regards,
Badger
Reply With Quote
  #19  
Old 08 Nov 2010, 18:07
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by BadgerDog View Post
Sorry for being so dense ....

So, this line of code (or any part of it) on the site would NEVER get touched by your mod when it executes .. correct?

[hsurl=http://photos.imageevent.com/badgerdog/canadianservicerifles/1915rossmkiiisniper223/DSC01967.JPG][img]https://www.vbulletin.org/forum/external/2010/11/33.jpg[/img][/hsurl]



Another filter? Such as?

I wish there was some way I could test what this mod does and view it's impact, restricting it's cron execution to just a specific "Test Forum" ID, so it didn't act on any other data in the databse. In that way, we could make sure we didn't mess up 4 years of posts without a test. Is that possible to have a test forum ID mode that one can turn ON and OFF?

Thanks again ...

Regards,
Badger
If photos.imageevent.com/ is in the Ignore settings,

[hsurl=http://photos.imageevent.com/badgerdog/canadianservicerifles/1915rossmkiiisniper223/DSC01967.JPG][img]https://www.vbulletin.org/forum/external/2010/11/33.jpg[/img][/hsurl]

is not touched at all. If it isn't, it is touched this way:

[hsurl=http://photos.imageevent.com/badgerdog/canadianservicerifles/1915rossmkiiisniper223/DSC01967.JPG][IMG]http://www.forum.tld/images/imported/2010/11/1234.jpg[/IMG][/hsurl]

Assuming you have already 1233 JPEG images in your .../2010/11/ folder and the post comes from today.

For testing, I suggest to use it on a test board first

There is no such filter as forum sections, threads and so on, but if you really must filter, then you may change the query in file iei_cron.php on line 229 from:

$SQL = "SELECT postid, dateline, pagetext
FROM " . TABLE_PREFIX . "post
WHERE iei_parsed=0
AND pagetext LIKE '%[/IMG]%'
ORDER BY postid";

to:

$SQL = "SELECT postid, dateline, pagetext
FROM " . TABLE_PREFIX . "post
WHERE iei_parsed=0
AND threadid=XXX
AND pagetext LIKE '%[/IMG]%'
ORDER BY postid";

where XXX is your thread id.

At this point, please enable also the cronjob logging (modify task), in order to see in your logs which posts have been touched.

Last not least, don't forget to undo the changes after testing
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #20  
Old 09 Nov 2010, 03:43
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Real name: Dr.osama
thanxx

installed but not working at all

you can try it here alra7ba.info

user:vBulletin
pass:123456

can i translate it to Arabic lang. and add it here plzz ?
__________________
Reply With Quote
  #21  
Old 09 Nov 2010, 09:55
sticky sticky is offline
 
Join Date: Sep 2003
Installed but for some reason not working. I uploaded the file, created the folder set to 755, enabled the product, not sure what is up.
Reply With Quote
  #22  
Old 09 Nov 2010, 10:03
sticky sticky is offline
 
Join Date: Sep 2003
Originally Posted by sticky View Post
Installed but for some reason not working. I uploaded the file, created the folder set to 755, enabled the product, not sure what is up.
Changed it to 777 and it works, awesome
Reply With Quote
  #23  
Old 09 Nov 2010, 10:31
doopz doopz is offline
 
Join Date: Feb 2003
Does this also convert images posted in articles on the CMS?
Reply With Quote
  #24  
Old 09 Nov 2010, 11:10
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by Dr.osamA View Post
thanxx

installed but not working at all

you can try it here alra7ba.info

user:vBulletin
pass:123456

can i translate it to Arabic lang. and add it here plzz ?
Maybe the imported folder needs chmod 777, as stated from a user after your question.

If the plugin creates subfolders and files in the imported folder, it works. Eventually, it will need a long time to catch up to the current posts. On our production board, it took about a week to run through 800.000+ posts, with setting Maximum Post Count: 1000. Please remember, it needs a very powerful server and a long script timeout to run through 1000 posts at each time. Our timeout was set to 5 minutes in the starting phase.

After the plugin had catched up, we set the Maximum Post Count: 10, which suffices for a board with about 1000 new posts each day.

Please feel free and translate/publish the product on your site
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #25  
Old 09 Nov 2010, 11:11
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by sticky View Post
Changed it to 777 and it works, awesome
Thanks for testing. I'll update the help files accordingly.
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #26  
Old 10 Nov 2010, 00:16
sticky sticky is offline
 
Join Date: Sep 2003
Are these changes permanent btw? If I uninstall, does it go back to how it was?
Reply With Quote
  #27  
Old 10 Nov 2010, 00:22
sticky sticky is offline
 
Join Date: Sep 2003
Originally Posted by doopz View Post
Does this also convert images posted in articles on the CMS?
Good question, would like to know as well.
Reply With Quote
  #28  
Old 10 Nov 2010, 10:41
sticky sticky is offline
 
Join Date: Sep 2003
This seems to be causing a good amount of database errors.
Reply With Quote
  #29  
Old 10 Nov 2010, 13:48
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Real name: Dr.osama
Originally Posted by y2ksw View Post
Maybe the imported folder needs chmod 777, as stated from a user after your question.

If the plugin creates subfolders and files in the imported folder, it works. Eventually, it will need a long time to catch up to the current posts. On our production board, it took about a week to run through 800.000+ posts, with setting Maximum Post Count: 1000. Please remember, it needs a very powerful server and a long script timeout to run through 1000 posts at each time. Our timeout was set to 5 minutes in the starting phase.

After the plugin had catched up, we set the Maximum Post Count: 10, which suffices for a board with about 1000 new posts each day.

Please feel free and translate/publish the product on your site
thank you for your help

i have chmod 777 for folder and i had old version in my vb3.x.x and no new images

that main don't need more time for import images to my site only new posts and that not much
__________________
Reply With Quote
  #30  
Old 10 Nov 2010, 16:41
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by sticky View Post
Are these changes permanent btw? If I uninstall, does it go back to how it was?
Changes made to posts and the images stored to the file system are permanent.
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
Reply


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
Forum Jump


New To Site? Need Help?

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

Layout Options | Width: Wide Color: