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
  #512  
Old 09-05-2013, 08:03 PM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am attempting to find out where it stalled out at using phpmyadmin, when I noticed something strange...

The replacement url for missing images looks like this,.. (sometimes, not all instances)

h ttp://www.mysite.com//images/misc/BrokenImage.gif
(I added a space in http to prevent this url from parsing here)

edit... figured it out, my bad, I had added a leading / to the broken image image url in acp

now just to figure out how to correctly convert it without having to edit each and every field lol
Reply With Quote
  #513  
Old 09-08-2013, 09:15 PM
tommythejoat's Avatar
tommythejoat tommythejoat is offline
 
Join Date: Apr 2008
Location: Boston
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My moderators are reporting problems with this feature. It appears that images are being replaced with the wrong, seemingly random image.

I spent some time looking at the iei_img table and the post table with the following results.

We have 798,156 posts.
23,105 of the posts contain at least one IMG bbcode.
25,859 are marked iei_parsed.

In the iei_img table we have 34,257 records.
Of these 20,420 saved images are mapping unique external images.
We have 11,015 records with our web root (forum) directory as the saved entry (no jpg)
The big problem is 911 of the save images map multiple external images with as many as 204 references down to 2 references.

Other than restoring my backups from before I installed iei, I do not know how to recover the erroneous image mappings.

I do not really understand how the batches are managed while importing images. It appears that it is not working correctly.

We are running 4.2.1 with iei 1.0.5
Reply With Quote
  #514  
Old 09-09-2013, 03:09 AM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I too have reservations on a reverse-implentation plan. Is there a method of reversing ones way out of this mod in the event it becomes undesirable in the end?

But most importantly, I wish to make this mod fully implementable as the concept is important to me.
Reply With Quote
  #515  
Old 09-09-2013, 02:39 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 tommythejoat View Post
My moderators are reporting problems with this feature. It appears that images are being replaced with the wrong, seemingly random image.

I spent some time looking at the iei_img table and the post table with the following results.

We have 798,156 posts.
23,105 of the posts contain at least one IMG bbcode.
25,859 are marked iei_parsed.

In the iei_img table we have 34,257 records.
Of these 20,420 saved images are mapping unique external images.
We have 11,015 records with our web root (forum) directory as the saved entry (no jpg)
The big problem is 911 of the save images map multiple external images with as many as 204 references down to 2 references.

Other than restoring my backups from before I installed iei, I do not know how to recover the erroneous image mappings.

I do not really understand how the batches are managed while importing images. It appears that it is not working correctly.

We are running 4.2.1 with iei 1.0.5
If the "missing/invalid" image replacement is disabled, the original links are maintained, when this product is unable to import an image. For this reason it is most probable that random images are still within the img tags, since those are unlikely to work, ever. For example, some sites don't allow hot linking, and thus put junk redirects on line. Then this product wants to import them and sees, it can't. If missing images are replaced, it will typically use clear.gif or something alike to replace the missing image. Else, it will leave the link intact, and it may work for a while, until this kind of images disappear from source.

There is nothing I can do about it, this is how Internet works.

You may reparse all or part of the posts setting the iei_parsed flag to 0. Some sites do allow hot linking after a while and so you may get them later. I've been using this product over many years now on large production sites and we have had a number of problems, which were all related to remote images. Some of which were WORM infected, some where hotlink protected and others just would not conform to the standards. But these are few exceptions out of thousands of imported images every month.
Reply With Quote
  #516  
Old 09-09-2013, 02:46 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 smirkley View Post
I too have reservations on a reverse-implentation plan. Is there a method of reversing ones way out of this mod in the event it becomes undesirable in the end?

But most importantly, I wish to make this mod fully implementable as the concept is important to me.
Eventually you could parse the old/new urls from the iei_parsed table and attempt to replace with global queries the links. On large forums this could be however a very time and resource consuming operation. And in any case, it is the only one you could use, since posts may be copied to any place and it is impossible to tell if the contained links came from your site or anywhere else.
Reply With Quote
  #517  
Old 09-09-2013, 03:20 PM
tommythejoat's Avatar
tommythejoat tommythejoat is offline
 
Join Date: Apr 2008
Location: Boston
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think perhaps you missed my point on the multiples. I just searched my forum posts for "/2007/01/1.jpg" which should yield at most a few copies of the same image in related posts. Instead it returns 558 hits in a total of 371 posts.

I don't see any way for this to occur without an indexing error in the software. I think it is at least worth a look at the arbitrary name generator and where it stores its counter.
Reply With Quote
  #518  
Old 09-09-2013, 04:24 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 tommythejoat View Post
I think perhaps you missed my point on the multiples. I just searched my forum posts for "/2007/01/1.jpg" which should yield at most a few copies of the same image in related posts. Instead it returns 558 hits in a total of 371 posts.

I don't see any way for this to occur without an indexing error in the software. I think it is at least worth a look at the arbitrary name generator and where it stores its counter.
Double or more hits in a single post is possible, if for instance somebody has pasted an image N times. This happens often in my forums, where people copy their preferred smilie instead of asking me to add them to the stock items. Similarily, you'll find underlines, page separators, signatures and all kinds of graphical additions people just paste on the fly without even knowing it.

In the case of having 2 or more hits of an image in a single post, it would be interesting to see if there are actually two or more copies of that image. If it isn't, then maybe something strange is going on.
Reply With Quote
  #519  
Old 09-09-2013, 08:50 PM
tommythejoat's Avatar
tommythejoat tommythejoat is offline
 
Join Date: Apr 2008
Location: Boston
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You did notice that I said 558 copies of the same image in a total of 371 posts.

Yes it would be perfectly reasonable to see several instances of an image. It can happen when a post is quoted for example or a person might even refer to the same image in two or three different posts. When it gets to the hundreds it cannot be due to random selection by users, it can only be a bug.

If one has left the replacement image value blank as I have done, what should we expect to see? We have lots of entries in the replacement image of http://mysite/ with no file reference in the URL. I have been reading those as meaning the image was missing from the source site.
Reply With Quote
  #520  
Old 09-10-2013, 02:28 AM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have fixed my first problem extra "/" in replacement url,... caused when I added incorrectly the leading slash in my replacement image.

Need help with my second problem.

Operation has hung and I cannot figure out how to identify the image that it is hung on.
Reply With Quote
  #521  
Old 09-10-2013, 07:24 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 smirkley View Post
I have fixed my first problem extra "/" in replacement url,... caused when I added incorrectly the leading slash in my replacement image.

Need help with my second problem.

Operation has hung and I cannot figure out how to identify the image that it is hung on.
It is the first post with an img tag which has not the iei_parsed flag set to 1.

Code:
SELECT * FROM post WHERE iei_parsed=0 AND pagetext LIKE '%[img%' ORDER BY postid LIMIT 1
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 12:17 PM.


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.05878 seconds
  • Memory Usage 2,365KB
  • 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
  • (1)bbcode_code
  • (4)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
  • (4)pagenav_pagelink
  • (3)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