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
  #342  
Old 04-06-2012, 01:34 AM
mescalin mescalin is offline
 
Join Date: Oct 2006
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I there a planned update for a cronjob for deleting unused files?
Reply With Quote
  #343  
Old 04-06-2012, 12:36 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 oldlock View Post
Does the resize function in the mod force the creation of thumbnails in the normal vb manner ? If not is there anyway to create thumbnails and place them in the posts as the importation takes place ?
No. This plugin imports only images and stores them on the file system instead of hot-linking.

Quote:
Originally Posted by mescalin View Post
I there a planned update for a cronjob for deleting unused files?
Yes. But I have no idea when.
Reply With Quote
  #344  
Old 04-06-2012, 01:42 PM
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Location: Italy
Posts: 1,418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*** FOR LINUX EXPERTS ONLY ***

WARNING: If you don't trust me (you shouldn't) or yourself, please try this first in a virtual box or fail-proof test environment. It is entirely up to you to verify this working properly. If you are not a Linux expert, you probably are better off with asking some help!

Many users of this plugin have asked, how to move their images from one place to another, preferably by using a FTP connection to their media server. This guide will show you how to install a local mount point to a remote server via FTP. I have tried this on two Linux Ubuntu 10.04 LTS production boxes, one holding the mount and the other keeping the images and, mainly, large videos.

All you need is a media server (may be a Windows server, as well) at some place with a FTP connection, and a Linux web server. On Linux Ubuntu you would issue a:

# aptitude install curlftpfs

but on other systems you may use apt-get, yum or rpm. All what matters is installing curlftpfs.

Once installed, you would create typically a new directory, but for moving files from one place to another, you would use just "the one" folder you already have, for example:

/var/www/domain.tld/htdocs/images/imported

The imported folder would typically hold hundreds or thousands of large files, which you would like to move elsewhere. First, you would now move or copy all files to the new server destination, and then create the FTP mount point as follows:

# curlftpfs -o allow_other,nonempty ftp_user:ftp_password@your.media.server/anywhere/you/want/ /var/www/domain.tld/htdocs/images/imported

If you have an empty folder now, you would not need to specify nonempty, thus issue:

# curlftpfs -o allow_other ftp_user:ftp_password@your.media.server/anywhere/you/want/ /var/www/domain.tld/htdocs/images/imported

ftp_user is the username and ftp_password the password to connect to your media server. Since passwords are clear, make sure to use passwords different from your root account "here" and/or "there". your.media.server would be your host name for all the files and folders, and an optional /anywhere/you/want/ would indicate a subfolder on the "other" machine. /var/www/domain.tld/htdocs/images/imported indicates the mount point. It makes no difference with or without a leading slash of your folders.

If everything went right, you are now able to play with your FTP connection, which essentially behaves as a normal folder:

# cd /var/www/domain.tld/htdocs/images/imported
# ls -lA
# mkdir abc
# touch abc.txt
# ls -lA
# df -h
# umount /var/www/domain.tld/htdocs/images/imported
# mount /var/www/domain.tld/htdocs/images/imported

and so on. Somebody now starts to dream ... what a great connection

Now, we have to add this feature to the fstab in order to have this feature always available. If the remote server isn't available at (re)boot time of this server, obviously the mount will not work. We open /etc/fstab and add this line at the end:

curlftpfs#ftp://ftp_user:ftp_password@your.med...here/you/want/ /var/www/domain.tld/htdocs/images/imported fuse defaults 0 0

Now, you would typically add a redirect to your .htaccess file from your normal image folder to your media server. Of course, it must have a web server, too, eventually at the specified location:

RedirectMatch ^/images/imported/(.*) http://your.media.server/anywhere/you/want/$1

At your media server you may monitor the new function by watching your log, for example:

# tail -f /var/www/your.media.server/weblogs/access.log

curlftpfs offers a whole lot of additional features, including SSH, proxy and write protection, which may e useful in come contexts. Also, please make sure to exclude the mount point from your round-robin rsync or your backup, since rsync and backup may pull in a lot more traffic than expected.
Reply With Quote
  #345  
Old 04-20-2012, 11:43 PM
mescalin mescalin is offline
 
Join Date: Oct 2006
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My users are adding some links like 11234.jpg?uuygyug

This question mark after the variable prevents mod from importing. it seems as imported but no such file found. So images goes missing. Any idea about fixing this?

Edit: ? in filename becomes .jpg%3 but in the post link to image is still like .jpg?

Thank you..
Reply With Quote
  #346  
Old 04-21-2012, 09:35 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 mescalin View Post
My users are adding some links like 11234.jpg?uuygyug

This question mark after the variable prevents mod from importing. it seems as imported but no such file found. So images goes missing. Any idea about fixing this?


Edit: ? in filename becomes .jpg%3 but in the post link to image is still like .jpg?

Thank you..
Enable the "Always Convert Images" option. This way, all images are converted to jpg files and accordingly renamed.

How filenames are translated depend on the operating system. On Linux for example, the ? symbol remains, but still could not be found, because ? is a HTML query on most systems.
Reply With Quote
  #347  
Old 04-21-2012, 11:00 AM
mescalin mescalin is offline
 
Join Date: Oct 2006
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i thought about renaming and converting options but if i convert all images animated gifs will not work i guess?

if i enable rename files option only, can it fix that problem?
Reply With Quote
  #348  
Old 04-21-2012, 12:09 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 mescalin View Post
i thought about renaming and converting options but if i convert all images animated gifs will not work i guess?

if i enable rename files option only, can it fix that problem?
This will do (= Use Original File Names: No)
Reply With Quote
  #349  
Old 05-10-2012, 09:42 PM
mescalin mescalin is offline
 
Join Date: Oct 2006
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its me again..

in my forums some pics are replaced with wrong images that are allready in imported folder. Product does not import these images but replaces them with nonrelated existing pics.

i tried several different settings but couldnt prevent that behaviour. Any idea what can i do?

Ps its a rare behaviour. I have about 1,5m posts but it doesnt happen very often..
Reply With Quote
  #350  
Old 05-12-2012, 11:55 PM
rgreene1971 rgreene1971 is offline
 
Join Date: Mar 2012
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would it be possible to use this to import images from an old smf 2.0.2 forum? The old forum is still on my server at location www.mysite.com/forums with my new running vb4 forum at www.mysite.com/vbforum

This would be a great way to slowly import all my images from the old site
Reply With Quote
  #351  
Old 05-14-2012, 06:19 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 mescalin View Post
its me again..

in my forums some pics are replaced with wrong images that are allready in imported folder. Product does not import these images but replaces them with nonrelated existing pics.

i tried several different settings but couldnt prevent that behaviour. Any idea what can i do?

Ps its a rare behaviour. I have about 1,5m posts but it doesnt happen very often..
I believe this may be a DNS related 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 10:59 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.09481 seconds
  • Memory Usage 2,376KB
  • 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
  • (5)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
  • (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