Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Import External Images Details »»
Import External Images
Version: 1.0.5, by y2ksw y2ksw is offline
Developer Last Online: Feb 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.x.x Rating:
Released: 11-06-2010 Last Update: 02-13-2011 Installs: 300
DB Changes Uses Plugins
Additional Files Translations  
No support by the author.

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

File Type: zip 1.0.2.iei4.zip (80.0 KB, 477 views)
File Type: zip 1.0.4.iei4.zip (84.5 KB, 185 views)
File Type: zip 1.0.5.iei4.zip (87.5 KB, 2158 views)

Screenshots

File Type: jpg 08-11-2010-11.32.53.jpg (112.4 KB, 0 views)
File Type: jpg 02-02-2011-22.06.39.jpg (126.0 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 11-08-2010, 08:29 AM
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Location: Italy
Posts: 1,418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LuisManson View Post
tagged, thanks,
it uses the forum as referer or the image domain?
Internally, it skips all images containing $vbulletin->options['bburl'], and, if specified (options), the bburl replacement. Additionally, you may add (options) more folders and/or domains to skip.
Quote:
Originally Posted by BadgerDog View Post
Thanks for coding this as I think it's very useful ...

I don't have a development board capability, just a live site with 13,000 members and lots of IMG externally hosted pics, so I'd love to get feedback from folks who install and test this before I try it on our live site ... just in case ...

ps: does it go back and bring in externally hosted pics from OLD existing posts, or just new ones posted from the time forward after the mod is installed?

Regards,
Badger
Quote:
Originally Posted by sticky View Post
So will it go through all past posts and replace those images?
Yes, it parses all posts from the beginning.
Quote:
Originally Posted by Wajdan View Post
I snap shot would be highly appreciated....!
It has not much to show off - maybe the options window?
Reply With Quote
  #13  
Old 11-08-2010, 09:50 AM
Veer Veer is offline
 
Join Date: Feb 2006
Posts: 733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by YankForum View Post
check this thread , on his own boards
it seems every single image will be hosted on his own server in /imported folder , nice hack , but i really need to switch to dedicated servers before installing this
Why dedicated server? I think it can be run on any normal server.
Reply With Quote
  #14  
Old 11-08-2010, 09:56 AM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by y2ksw View Post
Internally, it skips all images containing $vbulletin->options['bburl'], and, if specified (options), the bburl replacement. Additionally, you may add (options) more folders and/or domains to skip.


Yes, it parses all posts from the beginning.

It has not much to show off - maybe the options window?
Thanks ...

Two clarifications ...

1. If the image is not longer available on the remote external site, where the poster has moved or deleted it, how does it handle those circumstances?

2. We use a special external reference that ties back to a Highslide display of images we store off-site on a separate special server. The syntax is [HSURL]http://www.pic.jog[/HSURL]. I believe it's BBCode triggered and displays those external pics as pop-ups. We would NOT want those references changes, so does your mod skip those because there are not IMG type tags and it will work fine for us with the HSURL internal code?

Thanks again for your efforts....

Regards,
Badger
Reply With Quote
  #15  
Old 11-08-2010, 12:28 PM
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Location: Italy
Posts: 1,418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BadgerDog View Post
Thanks ...

Two clarifications ...

1. If the image is not longer available on the remote external site, where the poster has moved or deleted it, how does it handle those circumstances?

2. We use a special external reference that ties back to a Highslide display of images we store off-site on a separate special server. The syntax is [HSURL]http://www.pic.jog[/HSURL]. I believe it's BBCode triggered and displays those external pics as pop-ups. We would NOT want those references changes, so does your mod skip those because there are not IMG type tags and it will work fine for us with the HSURL internal code?

Thanks again for your efforts....

Regards,
Badger
1. This depends on your 'Remove Invalid Images' settings (options). Invalid images are also courtesy pages, invalid images (scripts) or anything else which can't be loaded by the image* functions of the GD image library.
2. Please add "www.pic.jog/" to the "Ignore" settings (options) in order to skip all possible image URLs containing this string. If it is BBCode wrapped differently from [IMG] tags, it won't get imported anyway.
Reply With Quote
  #16  
Old 11-08-2010, 12:42 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by y2ksw View Post
2. Please add "www.pic.jog/" to the "Ignore" settings (options) in order to skip all possible image URLs containing this string. If it is BBCode wrapped differently from [IMG] tags, it won't get imported anyway.
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]http://photos.imageevent.com/badgerdog/canadianservicerifles/1915rossmkiiisniper223/icons/DSC01967.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
Reply With Quote
  #17  
Old 11-08-2010, 01:23 PM
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Location: Italy
Posts: 1,418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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://vborg.vbsupport.ru/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.
Reply With Quote
  #18  
Old 11-08-2010, 01:26 PM
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Location: Italy
Posts: 1,418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PS: In order to scratch off the hsurl tag, you probably will need another filter. An URL around an image remains untouched.
Reply With Quote
  #19  
Old 11-08-2010, 02:22 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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]

Quote:
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
  #20  
Old 11-08-2010, 04:07 PM
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Location: Italy
Posts: 1,418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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://vborg.vbsupport.ru/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://vborg.vbsupport.ru/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
Reply With Quote
  #21  
Old 11-09-2010, 01:43 AM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply


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


All times are GMT. The time now is 06:52 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05332 seconds
  • Memory Usage 2,387KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (12)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (20)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete