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
  #652  
Old 09-04-2015, 04:58 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 majjed2008 View Post
can we import the CMS image ? that it post inside articals there ?

Thank you
No, it works only for forum posts.
Reply With Quote
  #653  
Old 09-04-2015, 05:02 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 hivitro View Post
Hi y2ksw, ty for this great mod, It has served me well these years.

I have a question before making a modification.

I am interested in taking a new .com domain and use images only, like a gallery.

My question is this. If I make a change in Forum URL replacement, and put a new domain, all new and old images will automatically move there?

Currently, my domain is http://www.nivelextremo.com the forum is inside / post / and the images are in / post / imgbackup /

If I for example, bought the domain like www.imgbackup.com or anything else and set

Forum URL replacement -> http://www.imgbackup.com/images

The old and new images, will move to the external domain? Or just new? or what would happen?


Thanks in advance
Only the new images are moved. the old images can be moved, if you change the URL in all posts accordingly (with a REPLACE query on post.pagetext). The short term cheaper solution is a redirect, but it may add quite some load to your server, if you have a lot of images.
Reply With Quote
  #654  
Old 09-04-2015, 05:57 AM
hivitro hivitro is offline
 
Join Date: Jun 2011
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by y2ksw View Post
Only the new images are moved. the old images can be moved, if you change the URL in all posts accordingly (with a REPLACE query on post.pagetext). The short term cheaper solution is a redirect, but it may add quite some load to your server, if you have a lot of images.
OK I understand. Time to work

Thank you.

Edit II > 1st Step Done:

1 - I move all images from inside my forum to another URL, i choose http://www.imageslocker.com and there put all from 2007 to 2015
2 - I Use Mysql UPDATE/REPLACE in post.pagetext and then, do al full Clear system cache.. table repairs, Forums Cache... and then all works ok.

Finally. New images, goes to the forum URL, the next year i will move in bulk again.

In the options IGNORE site i must write with/and not http and www, if not the mod copy again the images to the forum.

I just have a question.. I start to make some order/renames of files, in categories. How does this affect the table iei_img?

Becouse the old URL, will be the same, but the new URL it will not be because I moved / renamed.
Reply With Quote
  #655  
Old 09-06-2015, 05:55 PM
majjed2008 majjed2008 is offline
 
Join Date: Dec 2011
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello

after it import the image it dont show up in post I edited the post and i see the link point correctly to site./images/imported but the picture totally gone from all thread how to fix that please ?

Thank you
Reply With Quote
  #656  
Old 09-06-2015, 07:03 PM
hivitro hivitro is offline
 
Join Date: Jun 2011
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by majjed2008 View Post
Hello

after it import the image it dont show up in post I edited the post and i see the link point correctly to site./images/imported but the picture totally gone from all thread how to fix that please ?

Thank you

Firefox dont show your images if the URL is incorrect or the image is not where you think it is.

Use Chrome or IE to check. Make a test post, and link and external image. Go Administrator panel and run scheduled tasks > vB4 Import External Images

Go again to your test and check if it load the image imported or if show a broken avatar, do a right click in there and open in another windows, check the URL and you will see the error. Fix it in config and clear Cache in your navigator (CTRL+F5) and check again.
Reply With Quote
Благодарность от:
y2ksw
  #657  
Old 09-06-2015, 08:31 PM
majjed2008 majjed2008 is offline
 
Join Date: Dec 2011
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you very much i am going to do that , but i fined the the picture use wrong URL how to change it please ? do i have to thread and edited it manually i have very big forum more than 300K thread ?
Reply With Quote
  #658  
Old 09-07-2015, 12:22 AM
hivitro hivitro is offline
 
Join Date: Jun 2011
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by majjed2008 View Post
thank you very much i am going to do that , but i fined the the picture use wrong URL how to change it please ? do i have to thread and edited it manually i have very big forum more than 300K thread ?
Sure, once you run this mod, it will start to get a copy of all post/images inside your forum path.

Try to be sure when you make the config. IDK if the vbulletin cache, browser cache.. if you run the vb import, and you need to change anything, you need to clean all cache to be efective.

If you summit a mistake, like me, and write "galerry" and not, "gallery" you can fix with sql sentence inside of you db, iei_img table.

And remember to set a image for "noimage" pictures, its will reemplace a lost linked image if you want.
Reply With Quote
  #659  
Old 09-07-2015, 08:06 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 majjed2008 View Post
thank you very much i am going to do that , but i fined the the picture use wrong URL how to change it please ? do i have to thread and edited it manually i have very big forum more than 300K thread ?
If you have made a mistake, or simply moved the forum or the images to another place, you may use phpmyadmin and craft a query, like:

Code:
UPDATE post SET pagetext=REPLACE(pagetext, 'old', 'new')
e.g.:
Code:
UPDATE post SET pagetext=REPLACE(pagetext, 'http://www.abc.com/', 'http://www.def.net/')
or:
Code:
UPDATE post SET pagetext=REPLACE(pagetext, '/imported/', '/images/new-site/')
It is unavoidable to make first a backup of the involved table, then a few tests, and if everything is ok, issue the final query.
Reply With Quote
  #660  
Old 09-07-2015, 03:44 PM
Manoel J?nior Manoel J?nior is offline
 
Join Date: Feb 2009
Location: SP / Brasil
Posts: 778
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by y2ksw View Post
If you have made a mistake, or simply moved the forum or the images to another place, you may use phpmyadmin and craft a query, like:

Code:
UPDATE post SET pagetext=REPLACE(pagetext, 'old', 'new')
e.g.:
Code:
UPDATE post SET pagetext=REPLACE(pagetext, 'http://www.abc.com/', 'http://www.def.net/')
or:
Code:
UPDATE post SET pagetext=REPLACE(pagetext, '/imported/', '/images/new-site/')
It is unavoidable to make first a backup of the involved table, then a few tests, and if everything is ok, issue the final query.
This may be something common, it could not be implemented in the product?
Reply With Quote
  #661  
Old 09-08-2015, 05:19 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 Manoel J?nior View Post
This may be something common, it could not be implemented in the product?
It is too dangerous to handle by ordinary forum owners. Who knows a little about MySQL eventually will do it with no harm, but a complete noob is capable to destroy the message base with one click. I can't be fund of such a problem.
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 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.07294 seconds
  • Memory Usage 2,377KB
  • 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
  • (6)bbcode_code
  • (8)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
  • (21)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)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