vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=253309

Import External Images
by y2ksw
07 Nov 2010 16:58

5 Attachment(s)
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.

gagan007 07 Nov 2010 17:07

Gotta install it now... :)
Thanks...MAI

LuisManson 07 Nov 2010 18:01

tagged, thanks,
it uses the forum as referer or the image domain?

Manoel Júnior 07 Nov 2010 18:03

Thanks a lot!

yahooooh 07 Nov 2010 18:29

thank you

BadgerDog 07 Nov 2010 18:35

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

[email protected] 08 Nov 2010 01:02

Tagged! Great mod. I'll try it out later, ;)

Thanks!

sticky 08 Nov 2010 01:13

So will it go through all past posts and replace those images?

Wajdan 08 Nov 2010 05:13

I snap shot would be highly appreciated....!

YankForum 08 Nov 2010 06:11

Quote:

Originally Posted by Wajdan (Post 2119339)
I snap shot would be highly appreciated....!

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 :)

y2ksw 08 Nov 2010 09:29

Quote:

Originally Posted by LuisManson (Post 2119114)
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 (Post 2119128)
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 (Post 2119294)
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 (Post 2119339)
I snap shot would be highly appreciated....!

It has not much to show off - maybe the options window? :)

Veer 08 Nov 2010 10:50

Quote:

Originally Posted by YankForum (Post 2119361)
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.

BadgerDog 08 Nov 2010 10:56

Quote:

Originally Posted by y2ksw (Post 2119401)
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

y2ksw 08 Nov 2010 13:28

Quote:

Originally Posted by BadgerDog (Post 2119416)
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.

BadgerDog 08 Nov 2010 13:42

Quote:

Originally Posted by y2ksw (Post 2119451)
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


All times are GMT. The time now is 04:47.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.