Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Image Cache Details »
Image Cache
Mod Version: 1.0.3.0, by y2ksw (Coder) y2ksw is offline
Developer Last Online: Jun 2019 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.4 Rating: (11 votes - 4.73 average) Installs: 78
Released: 07 Aug 2006 Last Update: 21 Aug 2007 Downloads: 578
Supported DB Changes Uses Plugins Additional Files  

Y2K Software Image Cache

Compatible at least with vBulletin 3.5.4 and 3.6.4

Please click here for the product Import External Images for vBulletin 4

This product caches images from external sites to a local board folder (including signatures) located at:

http://www.domain.tld/[forum/]imgcache

Installation
  1. Please create at your vBulletin board directory a folder called: imgcache and give it the following access rights: CHMOD 777 (read/write/modify to all users)
  2. Create an empty index.html file in this folder to avoid file exploring and direct download on some systems.
  3. Copy the y2kswimgcache.php file to your vBulletin board (forum home) directory.
  4. Close your forum temporarily to the public.
  5. Install the product product-y2kswimagecache.xml to your board (allow overwrite if already present).
    The installer will add a table called '[prefix]y2ksw_imgcache' with one field (int ID AUTOINCREMENT) to your board database.
    Please note: Although the uninstaller is provided, it is commented out. By removing the table, and reinstalling the plugin later, the cached images would be overwritten, because of the field counter restarting from 1.
    By leaving the table in your database, you may reinstall the plugin later without collision problems.
  6. Test the product: New thread, reply, edit. If errors occur (or white pages), make sure your imgcache/ folder has the required access rights.
  7. Reopen your forum to the public.
  8. DONE!
How it works

When a board user opens a new thread or message, or edits an existing one (all advanced, quick-reply and ajax), and pastes an image from all but the local cache directory (or by copy and paste, or by specifying [IMG] tags), upon submission the image is read from the external url and written to the local (server) image cache folder.
This avoids to show a placeholder image when the source link is dead or temporarily unavailable.

The link to the image is accordingly replaced.

The script scans first all image references and creates a table of unique images in the current message. It creates a new database table entry in y2ksw_imgcache for each image, reads the new ID and creates a sequence of new images for each url it happens to be readable, and creates for each successful read an imgcache/<id>.png file.

After this sequence, the files are cached locally and may disappear from their sources without leaving an unreferenced image pointer at the local board.

Known bugs

When an image link contains dynamic data, vBulletin would show the image in preview, but change also the IMG tags to URL.
This causes to loose the reference and the plugin will not attempt to recover. A possible solution is to allow dynamic contents for IMG tags on your board.

Version history

1.0.3.0 2007-08-19 Repaired browser (IE 7) issue for images of a different file extension than the officially recognized types. For this issue, newly cached files have now the *.png extension.
1.0.2.0 2006-08-27 Image caching of signatures ([IMG] tags for signatures must be enabled); added a donation button inside readme.htm for specific user requests, which will help us to keep this product always up-to-date.
1.0.1.2 2006-08-07 Release changes for vbulletin.org
1.0.1.1 2006-08-06 Image size verification to avoid caching of invalid images
1.0.1.0 2006-07-17 Collision-free unique cache ID's
1.0.0.0 2006-07-17 Product creation

Download Now

Only licensed members can download files, Click Here for more information.

Addons

Supporters / CoAuthors

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.
Comments
  #2  
Old 07 Aug 2006, 23:10
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
this looks amazing, good work!!
__________________
Think Hype Networks | MeandIsis
Reply With Quote
  #3  
Old 08 Aug 2006, 02:16
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Sounds great!

But isn't this a great increase of your bandwith? I asked my members to user sites like imageshack to upload their pictures.
When I'm going to cache it all, they can just upload it as an attachment. Can't they?
__________________
http://www.nucia.nl/forum/
The best way to kill malware; is to kill it together.
I love vBulletin http://www.vbulletin.org/forum/images/newsm/bunny.gif
Reply With Quote
  #4  
Old 08 Aug 2006, 03:31
hotma1l hotma1l is offline
 
Join Date: Sep 2004
What If i have an upload script for members, So they can upload their images and files, when they upload they get the link, then they will post the new topic, and the images are already on my server,it be uploaded again to the cache image ,,

So is there is away to exclude links for example any images that have been uploaded to http://up.domain.com/uploads/ should be excluded,

if there is an option in the admin control page to exclude links that would be great.

anyway thanks for the great work
Reply With Quote
  #5  
Old 08 Aug 2006, 10:59
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by Eagle Creek
Sounds great!

But isn't this a great increase of your bandwith? I asked my members to user sites like imageshack to upload their pictures.
When I'm going to cache it all, they can just upload it as an attachment. Can't they?
It increases the bandwidth quite a lot, and members can make attachments.

However, over the years, we experienced that most forum members don't like attachments, and prefer to insert the pictures in their messages as required. Not much an issue for just one image, but quite some if you have to tell about mathematic, scientific or medical research. And specifically in these areas a missing image source may void the whole discussion.
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #6  
Old 08 Aug 2006, 11:02
KoC KoC is offline
 
Join Date: May 2005
The New Version is 3.6.0
__________________
http://www.payidar.net

More and more..
Reply With Quote
  #7  
Old 08 Aug 2006, 11:04
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by hotma1l
What If i have an upload script for members, So they can upload their images and files, when they upload they get the link, then they will post the new topic, and the images are already on my server,it be uploaded again to the cache image ,,

So is there is away to exclude links for example any images that have been uploaded to http://up.domain.com/uploads/ should be excluded,

if there is an option in the admin control page to exclude links that would be great.

anyway thanks for the great work
The script is intended to use where other scripts aren't available, or image sources are too slow, as most of the free image hosting sites.

Loading images from the own site has been always the best solution, although it has a cost: bandwidth and web space.
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #8  
Old 08 Aug 2006, 19:06
kether1 kether1 is offline
 
Join Date: Jun 2006
Real name: Kether
This looks great! I wonder if it will work with the Lightbox mod? I was thinking of installing that mod and using thumbnails on my forum. Would there be a conflict with 'Image Cache'? I am guessing no, but let me know if you think their might be.

Thanks so much.

Kether
Reply With Quote
  #9  
Old 09 Aug 2006, 02:27
Cole2026 Cole2026 is offline
 
Join Date: Feb 2004
Real name: Cole
Originally Posted by kether1
This looks great! I wonder if it will work with the Lightbox mod? I was thinking of installing that mod and using thumbnails on my forum. Would there be a conflict with 'Image Cache'? I am guessing no, but let me know if you think their might be.

Thanks so much.

Kether
It will not.
Reply With Quote
  #10  
Old 09 Aug 2006, 10:09
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by kether1
This looks great! I wonder if it will work with the Lightbox mod? I was thinking of installing that mod and using thumbnails on my forum. Would there be a conflict with 'Image Cache'? I am guessing no, but let me know if you think their might be.

Thanks so much.

Kether
I don't have any experience with the Lightbox mod. However I would assume it would not conflict, since the Image Cache catches the image contents and redirects the URL's to the local server. So even if there is another plugin or modification to elaborate further (like vBulletin does itself, after caching), there should be really no problem.
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #11  
Old 25 Aug 2006, 02:22
gamebrink gamebrink is offline
 
Join Date: Jul 2005
I love you.

Would you consider adding an option that will rezise the image in the post and link it to the full size image?
Reply With Quote
  #12  
Old 25 Aug 2006, 16:37
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by gamebrink
I love you.

Would you consider adding an option that will rezise the image in the post and link it to the full size image?
You mean thumbnailing?

I've been thinking about it, actually it isn't that big job, but it's also a question of reputation; just 5 installs mean, it isn't that great plugin and needed only from a few forum holders, of course, the quality-over-quantity-oriented ones

I think if this plugin becomes more widely used, it also would become standard part of vBulletin itself, since it would be only a natural evolution of the actual attachments - dynamically attached items.

It is quite some time people are asking this feature at the official boards and sooner or later it will happen - only a question of time, and as far as I remember, was already working in some of the early beta versions of 3.0.x.

So generally spoken I don't mind to see deeper into the problem but will also wait a little, to see if this pugin becomes more used after the summer holidays
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #13  
Old 26 Aug 2006, 20:15
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Real name: Tim Eason
Could this be made to work in the user's signatures also? I have a lot of members putting userbars (www.userbars.com) in their sig. The problem is, when userbars.com goes down it slows my pages down. I'd love to be able to cache those userbars...
Reply With Quote
  #14  
Old 27 Aug 2006, 01:33
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by ChurchMedia
Could this be made to work in the user's signatures also? I have a lot of members putting userbars (www.userbars.com) in their sig. The problem is, when userbars.com goes down it slows my pages down. I'd love to be able to cache those userbars...
vBulletin 3.6.0 allows to save the signature picture as long as it is only one. I will think about it
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #15  
Old 27 Aug 2006, 04:23
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Real name: Tim Eason
Originally Posted by y2ksw
vBulletin 3.6.0 allows to save the signature picture as long as it is only one. I will think about it
These are multiple images that would need to be cached. I'm not ready to upgrade to 3.6 until more hacks have been ported.

I'm willing to pay for the plug-in.
Reply With Quote
Reply


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 07:56.

Layout Options | Width: Wide Color: