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: Oct 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.
  #61  
Old 22 Aug 2007, 16:53
KingPin6's Avatar
KingPin6 KingPin6 is offline
 
Join Date: Sep 2006
17 was a typo which I fixed before your post but you read it already thank you, I will debug my setup further and will reply back with anything I come up with.
__________________
Reply With Quote
  #62  
Old 25 Aug 2007, 21:06
Lethe Lethe is offline
 
Join Date: Aug 2007
actually nice mod..thx..
i used it for 1 week but i just have to much images on my users posts so i uninstalled it.. in one week i got nearly 100 mb in the imgcache folder. i cant delete them couse all links are automaticly rewritten to the imgcache folder..
the question is ; is there a way to rewrite them back ?
Reply With Quote
  #63  
Old 26 Aug 2007, 11:00
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by Lethe View Post
actually nice mod..thx..
i used it for 1 week but i just have to much images on my users posts so i uninstalled it.. in one week i got nearly 100 mb in the imgcache folder. i cant delete them couse all links are automaticly rewritten to the imgcache folder..
the question is ; is there a way to rewrite them back ?
Sorry, there is no way, since the original URL is not stored anywhere.
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #64  
Old 06 Oct 2007, 10:29
Njm's Avatar
Njm Njm is offline
 
Join Date: Jun 2007
Real name: Njm Alryiadh
thanx 4 the hack

some user have issue with it

when i put manny image in my post and add it .. it will take long time to show

and some time it give me server Busy ?
HTTP 408/409 Server Busy

how can i fix it ?


thanx agin my frined


vBulletin Version 3.6.8
__________________
Vist My Site : www.alskon.com
Saudi Arabia
contact me : Njm-Alryiadh(at)hotmail.com

Last edited by Njm; 06 Oct 2007 at 13:41.
Reply With Quote
  #65  
Old 07 Oct 2007, 00:53
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Every image is downloaded form the source as-is, and thus may take quite some time to download. The message will not show up before all images are downloaded.

If you host on a fast server, this should not be an issue, but on shared systems it may be a problem.
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #66  
Old 13 Oct 2007, 18:53
hilfe-forum hilfe-forum is offline
 
Join Date: Oct 2005
Location: http://www.alpha-board.eu
Real name: http://www.alpha-board.eu
Hmm dont work wen Pic URL is not hard-Postet....
__________________
Alpha-Board
Reply With Quote
  #67  
Old 14 Oct 2007, 07:00
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Well, sure, an image link is always an URL and thus handled just as that.
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #68  
Old 14 Oct 2007, 09:43
yahoooh yahoooh is offline
 
Join Date: Oct 2002
there is an error should be fixed:


i have gallery for images and also hosting images service
when a member use images already in my gallery on on my server it will be also copied and go to imgcache and i think this is not needed so


how to exclude images that already present on my site folders ?
Reply With Quote
  #69  
Old 14 Oct 2007, 21:11
hilfe-forum hilfe-forum is offline
 
Join Date: Oct 2005
Location: http://www.alpha-board.eu
Real name: http://www.alpha-board.eu
Originally Posted by y2ksw View Post
Well, sure, an image link is always an URL and thus handled just as that.

no change to work with revite URLīs?

in my Board a plugin revite this url: "www.abc.de" to this "pic.abc.de/fg.jpg"

So in post i see the picture but your plugin only see www.abc.deī...
__________________
Alpha-Board
Reply With Quote
  #70  
Old 15 Oct 2007, 05:32
booktoweb booktoweb is offline
 
Join Date: Oct 2005
its not work with me in 3.6.8
Reply With Quote
  #71  
Old 16 Oct 2007, 07:55
yahoooh yahoooh is offline
 
Join Date: Oct 2002
Originally Posted by booktoweb View Post
its not work with me in 3.6.8
it works with me
Reply With Quote
  #72  
Old 21 Oct 2007, 02:56
booktoweb booktoweb is offline
 
Join Date: Oct 2005
i dont know why its not works with me
i am using it from version 3.0.8 without any problem

========
open directory imgcache and make its CHMOD 777
upload y2kswimgcache.php
Install the product (product-y2kswimagecache.xml)
========

used old version and latest version
Reply With Quote
  #73  
Old 21 Oct 2007, 23:33
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Do you have any other hacks installed? If yes, which?
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #74  
Old 22 Oct 2007, 21:30
booktoweb booktoweb is offline
 
Join Date: Oct 2005
i installed new test forum and try hack
but its not works
Reply With Quote
  #75  
Old 30 Oct 2007, 20:31
yahoooh yahoooh is offline
 
Join Date: Oct 2002
still i need : to not cache images that already in mu server

any update
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 10:56.

Layout Options | Width: Wide Color: