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.
  #151  
Old 14 Apr 2010, 14:24
Focus2 Focus2 is offline
 
Join Date: Apr 2003
Originally Posted by Bill from Cleve View Post
Is there a way I can make it NOT cache images in the .PNG format? The problem is, it caches them as .PNG's, but they are actually JPG's and GIF's. This causes watermarking apps to fail because they don't understand the format.
I have tried pretty much every single option for watermarking including the .HTACCESS, but non work with this option enabled. I really love the image cache and do not want to disable it.

Is there any easy way to convert the PNG's back to the original formats without killing anything?
Further edit of file will keep the original extension:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #152  
Old 14 Apr 2010, 14:40
ThomasR ThomasR is offline
 
Join Date: Mar 2005
Focus2: thanks a lot for your edits!!
Reply With Quote
  #153  
Old 15 Apr 2010, 08:58
rubke rubke is offline
 
Join Date: Nov 2006
feature request(s):

- exclude some (sub)forums from caching.
- a scan and remove of unused images
- a scan and update of images
Reply With Quote
  #154  
Old 05 Nov 2010, 06:58
home9000 home9000 is offline
 
Join Date: Aug 2005
Originally Posted by Bill from Cleve View Post
Is there a way I can make it NOT cache images in the .PNG format? The problem is, it caches them as .PNG's, but they are actually JPG's and GIF's. This causes watermarking apps to fail because they don't understand the format.
I have tried pretty much every single option for watermarking including the .HTACCESS, but non work with this option enabled. I really love the image cache and do not want to disable it.

Is there any easy way to convert the PNG's back to the original formats without killing anything?
What is the watermarking apps that you use
Reply With Quote
  #155  
Old 06 Nov 2010, 17:36
Manoel Júnior's Avatar
Manoel Júnior Manoel Júnior is offline
 
Join Date: Feb 2009
Real name: Manoel Júnior
Please,

Watermark!!!
Reply With Quote
  #156  
Old 07 Nov 2010, 18:10
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Lightbulb

For all users who have asked for an equivalent of this product for vBulletin 4, here it is.

Please try and enjoy
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #157  
Old 07 Nov 2010, 18:45
Manoel Júnior's Avatar
Manoel Júnior Manoel Júnior is offline
 
Join Date: Feb 2009
Real name: Manoel Júnior
@y2ksw:

I have vB 3.6.8 wor for me!!! But, you can implement watermark this version?
Reply With Quote
  #158  
Old 08 Nov 2010, 10:22
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by Manoel Júnior View Post
@y2ksw:

I have vB 3.6.8 wor for me!!! But, you can implement watermark this version?
I suggest to download the images, watermark and upload them back.

Watermarking is beyond the features of image caching
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #159  
Old 09 Nov 2010, 00:13
Manoel Júnior's Avatar
Manoel Júnior Manoel Júnior is offline
 
Join Date: Feb 2009
Real name: Manoel Júnior
Originally Posted by y2ksw View Post
I suggest to download the images, watermark and upload them back.

Watermarking is beyond the features of image caching
Thanks, for feedback!
Reply With Quote
  #160  
Old 14 Nov 2010, 18:40
home9000 home9000 is offline
 
Join Date: Aug 2005
Is it possible to put the userId or member name part of the file name of the image
Reply With Quote
  #161  
Old 15 Nov 2010, 09:09
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by home9000 View Post
Is it possible to put the userId or member name part of the file name of the image
I don't believe so ... in theory yes, but it would add more problems than it solves, since images (links) could be copied and then they would not match the users.
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #162  
Old 15 Nov 2010, 17:29
home9000 home9000 is offline
 
Join Date: Aug 2005
Originally Posted by y2ksw View Post
I don't believe so ... in theory yes, but it would add more problems than it solves, since images (links) could be copied and then they would not match the users.

Yes but I can ignore any link inside the domain so if any one use the image then the original member id will be the same


If you can help I will be appreciated
Reply With Quote
  #163  
Old 18 Mar 2011, 17:35
Baitona Baitona is offline
 
Join Date: May 2005
script working 100%
however, i have a little question,

if there was an artilce in my forum, which contanis images
all images are hyperlinked to external sites/threads

when the image is imported it will still have the url after the import...

my question is there any chance to strip the forign url, in the thread?

regards
__________________
Baitona.com - Always One Step Ahead
ASP, JSP, PHP, SQL - Programming, Hosting and Design
Web: http://www.baitona.com
Email: Alex@baitona.com
Reply With Quote
  #164  
Old 19 Mar 2011, 11:13
Baitona Baitona is offline
 
Join Date: May 2005
is it also possible to import the images to other domain?
__________________
Baitona.com - Always One Step Ahead
ASP, JSP, PHP, SQL - Programming, Hosting and Design
Web: http://www.baitona.com
Email: Alex@baitona.com
Reply With Quote
  #165  
Old 19 Mar 2011, 12:16
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by Baitona View Post
script working 100%
however, i have a little question,

if there was an artilce in my forum, which contanis images
all images are hyperlinked to external sites/threads

when the image is imported it will still have the url after the import...

my question is there any chance to strip the forign url, in the thread?

regards
"Wrapping" URL's are not removed yet and maybe never will.
__________________
Giovanni
Italian support: http://www.vbulletin.it/
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 21:17.

Layout Options | Width: Wide Color: