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

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

Name:	02-02-2011-22.06.39.jpg
Views:	2805
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.
  #331  
Old 15 Mar 2012, 22:05
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by mescalin View Post
Perfect plugin and a great idea! This plugin can also have a cron to delee unused images anymore. In example it can run cron to check if there is a link to that pic in db and if not it deletes them. Its a great plugin.
Originally Posted by BadgerDog View Post
That would be a great add-on.... can anyone write something like that?

Regards,
Doug
I took note. This suggestion also contains the perfect solution
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #332  
Old 15 Mar 2012, 22:07
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by BadgerDog View Post
Reference post #326 ....

Problem fixed ....

Thanks ...

Regards,
Doug
Okay
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #333  
Old 15 Mar 2012, 23:33
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Real name: Doug
Originally Posted by y2ksw View Post
Okay
Conflict with Autolinker mod, which is doing something to filenames as it reads them in from server.

Your import mod is working just fine... great mod and in my opinion, one of the most useful I've ever installed for vBulletin ... glad I donated PayPal to you to say thanks ... love to see the auto cleanup of pics that aren't in database, if you get some time.

I'd donate again to add that capability, even as s separate cron job....

Regards,
Doug
Reply With Quote
  #334  
Old 18 Mar 2012, 14:53
Kenas Kenas is offline
 
Join Date: Mar 2011
Hi i installed this addonon 15th and some of my images till that day have been parsed successfully but when i get back to my ftp i cant see any new image being parsed since that day. And there are many images that havent been parsed.
this is my site http://www.gsmforum.es/
Reply With Quote
  #335  
Old 19 Mar 2012, 01:45
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by Kenas View Post
Hi i installed this addonon 15th and some of my images till that day have been parsed successfully but when i get back to my ftp i cant see any new image being parsed since that day. And there are many images that havent been parsed.
this is my site http://www.gsmforum.es/
The images which can't be found are not imported. Some sites block hot-linking or have URL's which can't be read properly as an image and remain untouched.

However it sounds more like a permission issue. If you have for example cPanel, please check that there is no automatism such as changing rights to files and folders. Also, it is likely you have changed the permissions by coincidence
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #336  
Old 23 Mar 2012, 00:54
Kenas Kenas is offline
 
Join Date: Mar 2011
Originally Posted by y2ksw View Post
The images which can't be found are not imported. Some sites block hot-linking or have URL's which can't be read properly as an image and remain untouched.

However it sounds more like a permission issue. If you have for example cPanel, please check that there is no automatism such as changing rights to files and folders. Also, it is likely you have changed the permissions by coincidence
It only happens with one site that my rss feeds are importing. is there anyway to import those hot-linking ?
If i open the image in the browser i can see that image in my forum (but only in my pc & only on the same browser) i dont mind to import that image to my forum/host.
Tyvm for your reply really very usefull

At first i did thought it was permission issues so i checked with a different site and was working perfectly and ur mod too ^^ Good Job !
Reply With Quote
  #337  
Old 23 Mar 2012, 11:36
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by Kenas View Post
It only happens with one site that my rss feeds are importing. is there anyway to import those hot-linking ?
If i open the image in the browser i can see that image in my forum (but only in my pc & only on the same browser) i dont mind to import that image to my forum/host.
Tyvm for your reply really very usefull

At first i did thought it was permission issues so i checked with a different site and was working perfectly and ur mod too ^^ Good Job !
There is no way to predict how hot-linking is detected. The current system does a good job, but it can't try all possible ways, because it esentially doesn't know to which site it connects, and still, it can't guess which domain and/or page must be refferred in order to see the images.
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #338  
Old 05 Apr 2012, 11:36
yousefz yousefz is offline
 
Join Date: Nov 2006
Hello,

Can not download the file ?!
Reply With Quote
  #339  
Old 05 Apr 2012, 13:33
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by yousefz View Post
Hello,

Can not download the file ?!
Please try again. It may have been a temporary forum issue.
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #340  
Old 06 Apr 2012, 00:25
oldlock oldlock is offline
 
Join Date: Jul 2009
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 ?
Reply With Quote
  #341  
Old 06 Apr 2012, 03:34
mescalin mescalin is offline
 
Join Date: Oct 2006
I there a planned update for a cronjob for deleting unused files?
__________________
Tekne Kiralama, estanbul
Reply With Quote
  #342  
Old 06 Apr 2012, 14:36
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
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.

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.
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #343  
Old 06 Apr 2012, 15:42
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Lightbulb The Magic of Linux FTP File System

*** 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:[email protected]/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:[email protected]/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:[email protected]/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.
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #344  
Old 21 Apr 2012, 01:43
mescalin mescalin is offline
 
Join Date: Oct 2006
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..
__________________
Tekne Kiralama, estanbul

Last edited by mescalin; 21 Apr 2012 at 11:21.
Reply With Quote
  #345  
Old 21 Apr 2012, 11:35
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
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.
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
Reply

Tags
lisansdevir


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


New To Site? Need Help?

All times are GMT. The time now is 03:44.

Layout Options | Width: Wide Color: